mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2024-11-21 22:33:42 +01:00
uploading template files
This commit is contained in:
parent
995b47f324
commit
714bd6d962
0
templates/0 - Empty file
Normal file
0
templates/0 - Empty file
Normal file
1
templates/Bash/Empty Bash Script.sh
Normal file
1
templates/Bash/Empty Bash Script.sh
Normal file
@ -0,0 +1 @@
|
|||||||
|
#!/bin/bash
|
8
templates/C++/main.cxx
Normal file
8
templates/C++/main.cxx
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
8
templates/C/main.c
Normal file
8
templates/C/main.c
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
1
templates/Java/Class.class
Normal file
1
templates/Java/Class.class
Normal file
@ -0,0 +1 @@
|
|||||||
|
Public class
|
14
templates/Linux/Launcher.desktop
Normal file
14
templates/Linux/Launcher.desktop
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env xdg-open
|
||||||
|
|
||||||
|
[Desktop Entry]
|
||||||
|
Version=1.0
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Name=
|
||||||
|
Exec=
|
||||||
|
Icon=
|
||||||
|
StartupWMClass=
|
||||||
|
Comment=
|
||||||
|
Path=
|
||||||
|
StartupNotify=false
|
||||||
|
Categories=
|
BIN
templates/Office/Libre/Document.odt
Normal file
BIN
templates/Office/Libre/Document.odt
Normal file
Binary file not shown.
BIN
templates/Office/Libre/Drawing.odg
Normal file
BIN
templates/Office/Libre/Drawing.odg
Normal file
Binary file not shown.
BIN
templates/Office/Libre/Presentation.odp
Normal file
BIN
templates/Office/Libre/Presentation.odp
Normal file
Binary file not shown.
BIN
templates/Office/Libre/Spreadsheet.ods
Normal file
BIN
templates/Office/Libre/Spreadsheet.ods
Normal file
Binary file not shown.
BIN
templates/Office/Microsoft/Document.docx
Normal file
BIN
templates/Office/Microsoft/Document.docx
Normal file
Binary file not shown.
BIN
templates/Office/Microsoft/Office 2003/Document.doc
Normal file
BIN
templates/Office/Microsoft/Office 2003/Document.doc
Normal file
Binary file not shown.
BIN
templates/Office/Microsoft/Office 2003/Spreadsheet.xls
Normal file
BIN
templates/Office/Microsoft/Office 2003/Spreadsheet.xls
Normal file
Binary file not shown.
BIN
templates/Office/Microsoft/Presentation.pptx
Normal file
BIN
templates/Office/Microsoft/Presentation.pptx
Normal file
Binary file not shown.
BIN
templates/Office/Microsoft/Spreadsheet.xlsx
Normal file
BIN
templates/Office/Microsoft/Spreadsheet.xlsx
Normal file
Binary file not shown.
10
templates/Pascal/main.pas
Normal file
10
templates/Pascal/main.pas
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
program untitled;
|
||||||
|
|
||||||
|
uses crt;
|
||||||
|
var i : byte;
|
||||||
|
|
||||||
|
BEGIN
|
||||||
|
|
||||||
|
|
||||||
|
END.
|
||||||
|
|
6
templates/Python/main.py
Normal file
6
templates/Python/main.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
def main(args):
|
||||||
|
return 0
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
import sys
|
||||||
|
sys.exit(main(sys.argv))
|
45
templates/Python/pygame.py
Normal file
45
templates/Python/pygame.py
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
import sys, pygame
|
||||||
|
from pygame.locals import *
|
||||||
|
|
||||||
|
# het aantal frames per seconde.
|
||||||
|
# hoe hoger de waarde hoe sneller het balletje beweegt en hoe beter de animatie er uitziet.
|
||||||
|
FPS = 200
|
||||||
|
KLOK = pygame.time.Clock() # de interne pygame klok
|
||||||
|
|
||||||
|
# Scherm variabelen
|
||||||
|
SCHERM_BREEDTE = 600 # De breedte van het scherm
|
||||||
|
SCHERM_HOOGTE = 400 # De hoogte van het scherm
|
||||||
|
SCHERM = pygame.display # Het pygame venster
|
||||||
|
|
||||||
|
# Kleuren
|
||||||
|
ZWART = (0,0,0)
|
||||||
|
WIT = (255,255,255)
|
||||||
|
|
||||||
|
|
||||||
|
# Main
|
||||||
|
def main():
|
||||||
|
Initialisatie() # Roep de initialisatie methode aan
|
||||||
|
while True: # Start een oneindige loop
|
||||||
|
gameLoop() # Roep onze eigen gameloop aan
|
||||||
|
|
||||||
|
# Deze methode initialiseerd het scherm
|
||||||
|
def Initialisatie():
|
||||||
|
pygame.init() #initialiseer pygame
|
||||||
|
SCHERM.set_mode((SCHERM_BREEDTE, SCHERM_HOOGTE))
|
||||||
|
SCHERM.set_caption('Schermtitel')
|
||||||
|
|
||||||
|
# Deze methode wordt de gehele looptijd van het programma uitgevoerd
|
||||||
|
def gameLoop():
|
||||||
|
#hieronder starten we een game loop
|
||||||
|
for event in pygame.event.get():
|
||||||
|
#als het programma gestopt wil worden dan kan dat.
|
||||||
|
if event.type == QUIT:
|
||||||
|
pygame.quit()
|
||||||
|
sys.exit
|
||||||
|
#update het scherm en tik zovaak als het FPS is aangegeven
|
||||||
|
pygame.display.update()
|
||||||
|
KLOK.tick(FPS)
|
||||||
|
|
||||||
|
# start het programma
|
||||||
|
if __name__=='__main__':
|
||||||
|
main()
|
51
templates/React/component-lifecycle.jsx
Normal file
51
templates/React/component-lifecycle.jsx
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
import React, { Component } from 'react';
|
||||||
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
|
class componentName extends Component {
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
componentWillMount() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
componentWillReceiveProps(nextProps) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
shouldComponentUpdate(nextProps, nextState) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
componentWillUpdate(nextProps, nextState) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
componentDidUpdate(prevProps, prevState) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
componentWillUnmount() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
componentName.propTypes = {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
export default componentName;
|
13
templates/React/component.jsx
Normal file
13
templates/React/component.jsx
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import React, { Component } from 'react';
|
||||||
|
|
||||||
|
class componentName extends Component {
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default componentName;
|
8
templates/React/function-based-component.jsx
Normal file
8
templates/React/function-based-component.jsx
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import React from "react";
|
||||||
|
|
||||||
|
|
||||||
|
const FunctionBasedComponent = ({param}) => {
|
||||||
|
return <span>Function based component</span>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default FunctionBasedComponent;
|
32
templates/SQL/MsSQL/CREATE SCRIPT.sql
Normal file
32
templates/SQL/MsSQL/CREATE SCRIPT.sql
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
/* Replace XDATABASE with the DB name */
|
||||||
|
USE MASTER
|
||||||
|
GO
|
||||||
|
|
||||||
|
-- Function will delete a database even when in use.
|
||||||
|
BEGIN TRY
|
||||||
|
ALTER DATABASE XDATABASE SET SINGLE_USER WITH ROLLBACK IMMEDIATE
|
||||||
|
DROP DATABASE XDATABASE
|
||||||
|
END TRY
|
||||||
|
BEGIN CATCH
|
||||||
|
raiserror('XDATABASE doesn''t exist. Continuing....', 10, 1)
|
||||||
|
END CATCH;
|
||||||
|
GO
|
||||||
|
|
||||||
|
CREATE DATABASE XDATABASE
|
||||||
|
GO
|
||||||
|
|
||||||
|
USE XDATABASE
|
||||||
|
GO
|
||||||
|
|
||||||
|
-- -----------------------------------------------------
|
||||||
|
-- Table `Template`
|
||||||
|
-- -----------------------------------------------------
|
||||||
|
CREATE TABLE [Template] (
|
||||||
|
[Column1] INT NOT NULL,
|
||||||
|
[Column2] VARCHAR(30) NOT NULL,
|
||||||
|
[Column3] VARCHAR(30) NOT NULL,
|
||||||
|
CONSTRAINT pk_column1 PRIMARY KEY ([Column1]),
|
||||||
|
CONSTRAINT ck_column2 CHECK ([Column2] in ('M','V')),
|
||||||
|
CONSTRAINT fk_column3 FOREIGN KEY ([Column3]) REFERENCES Patient([Patientnr])
|
||||||
|
)
|
||||||
|
GO
|
15
templates/SQL/MsSQL/INSERT SCRIPT.sql
Normal file
15
templates/SQL/MsSQL/INSERT SCRIPT.sql
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/* Replace XDATABASE with the DB name */
|
||||||
|
USE XDATABASE
|
||||||
|
GO
|
||||||
|
-- SET LANGUAGE DUTCH /* ONLY USE WHEN WORKING WITH DUTCH DATES*/
|
||||||
|
GO
|
||||||
|
-- -----------------------------------------------------
|
||||||
|
-- Table `Template`
|
||||||
|
-- -----------------------------------------------------
|
||||||
|
INSERT INTO [Template]
|
||||||
|
([Column1] , [Column2] ,[Column3] ,[Geboortedatum]) VALUES
|
||||||
|
('1' , 'A' , 'a' , '03-02-1957'),
|
||||||
|
('2' , 'B' , 'a' , '22-08-1957')
|
||||||
|
GO
|
||||||
|
|
||||||
|
-- SET LANGUAGE ENGLISH
|
23
templates/SQL/MySQL/CREATE SCRIPT.sql
Normal file
23
templates/SQL/MySQL/CREATE SCRIPT.sql
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
-- -----------------------------------------------------
|
||||||
|
-- Table `Template`
|
||||||
|
-- -----------------------------------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS `Template` (
|
||||||
|
`id` INT NOT NULL AUTO_INCREMENT ,
|
||||||
|
`Title` VARCHAR(30) NOT NULL ,
|
||||||
|
PRIMARY KEY (`id`) )
|
||||||
|
ENGINE = InnoDB;
|
||||||
|
|
||||||
|
-- -----------------------------------------------------
|
||||||
|
-- Table `References`
|
||||||
|
-- -----------------------------------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS `References` (
|
||||||
|
`url` VARCHAR(400) NOT NULL ,
|
||||||
|
`Templates_id` INT NOT NULL ,
|
||||||
|
PRIMARY KEY (`url`, `Templates_id`) ,
|
||||||
|
INDEX `fk_References_Template_idx` (`Templates_id` ASC) ,
|
||||||
|
CONSTRAINT `fk_References_Template`
|
||||||
|
FOREIGN KEY (`Template_id`)
|
||||||
|
REFERENCES `Template` (`id`)
|
||||||
|
ON DELETE NO ACTION
|
||||||
|
ON UPDATE NO ACTION)
|
||||||
|
ENGINE = InnoDB;
|
4
templates/SQL/MySQL/INSERT SCRIPT.sql
Normal file
4
templates/SQL/MySQL/INSERT SCRIPT.sql
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-- -----------------------------------------------------
|
||||||
|
-- Table `Template`
|
||||||
|
-- -----------------------------------------------------
|
||||||
|
INSERT INTO `Template` (`id`) VALUES ('1');
|
4
templates/Vala/main.vala
Normal file
4
templates/Vala/main.vala
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
public static int main(string[] args){
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
3
templates/Web design/Index.php
Normal file
3
templates/Web design/Index.php
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
?>
|
21
templates/Web design/html5.html
Normal file
21
templates/Web design/html5.html
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
|
||||||
|
<title></title>
|
||||||
|
<meta name="description" content="">
|
||||||
|
<meta name="author" content="">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="css/styles.css">
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<script src="js/scripts.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
26
templates/Web design/php+html5.php
Normal file
26
templates/Web design/php+html5.php
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
|
||||||
|
<title></title>
|
||||||
|
<meta name="description" content="">
|
||||||
|
<meta name="author" content="">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="css/styles.css">
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<script src="js/scripts.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
|
|
12
templates/Web design/xhtml1.0-strict.html
Normal file
12
templates/Web design/xhtml1.0-strict.html
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<title>untitled</title>
|
||||||
|
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user