uploading template files

This commit is contained in:
Rick van Lieshout 2018-02-12 14:47:28 +01:00
parent 995b47f324
commit 714bd6d962
30 changed files with 305 additions and 0 deletions

0
templates/0 - Empty file Normal file
View File

View File

@ -0,0 +1 @@
#!/bin/bash

8
templates/C++/main.cxx Normal file
View File

@ -0,0 +1,8 @@
#include <iostream>
int main(int argc, char **argv)
{
return 0;
}

8
templates/C/main.c Normal file
View File

@ -0,0 +1,8 @@
#include <stdio.h>
int main(int argc, char **argv)
{
return 0;
}

View File

@ -0,0 +1 @@
Public class

View 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=

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

10
templates/Pascal/main.pas Normal file
View File

@ -0,0 +1,10 @@
program untitled;
uses crt;
var i : byte;
BEGIN
END.

6
templates/Python/main.py Normal file
View File

@ -0,0 +1,6 @@
def main(args):
return 0
if __name__ == '__main__':
import sys
sys.exit(main(sys.argv))

View 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()

View 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;

View File

@ -0,0 +1,13 @@
import React, { Component } from 'react';
class componentName extends Component {
render() {
return (
<div>
</div>
);
}
}
export default componentName;

View File

@ -0,0 +1,8 @@
import React from "react";
const FunctionBasedComponent = ({param}) => {
return <span>Function based component</span>;
};
export default FunctionBasedComponent;

View 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

View 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

View 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;

View File

@ -0,0 +1,4 @@
-- -----------------------------------------------------
-- Table `Template`
-- -----------------------------------------------------
INSERT INTO `Template` (`id`) VALUES ('1');

4
templates/Vala/main.vala Normal file
View File

@ -0,0 +1,4 @@
public static int main(string[] args){
return 0;
}

View File

@ -0,0 +1,3 @@
<?php
?>

View 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>

View 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>

View 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>