This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var current = window.location.href; | |
| var party_url = "";//Typ hier je Feest url | |
| var base_url = "https://www.ticketswap.nl"; | |
| $( document ).ready(function() { | |
| if (current.indexOf("event") > -1) { | |
| refreshPage(); | |
| } | |
| else if (current.indexOf("listing") > -1){ | |
| orderCard(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "encoding/json" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| ) | |
| var items = []string{} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package errorstore | |
| import "github.com/boltdb/bolt" | |
| var ( | |
| errName = []byte("error") | |
| ) | |
| type ErrorPersistance interface { | |
| SetError(key, value string) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module SVM.Interpreter | |
| type ProgramState = | |
| { | |
| ProgramCounter:int | |
| Memory: list<(int * SVMAST.Literal)> | |
| Registers: Map<string, SVMAST.Literal> | |
| Labels: Map<string, int> | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Exercise 1 | |
| let isLeap (year:int) :bool = | |
| year % 4 = 0 && year % 100 <> 0 || year % 400 = 0 | |
| // Exercise 3 | |
| let rec map mapFn list = | |
| match list with | |
| | [] -> [] | |
| | x::xs -> [mapFn x] @ map mapFn xs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package statistic | |
| import "math" | |
| type Vector []float64 | |
| func (v Vector) Equal(other Vector) bool { | |
| if other == nil || v == nil { | |
| return false | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| void merge(int *c, int *left, int *right, size_t leftL, size_t rightL) | |
| { | |
| int i = 0; | |
| int j = 0; | |
| int k = 0; | |
| while (i < leftL && j < rightL) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define MAXWORDLEN 20 // Maximum length of a word | |
| #define IN 1 // Inside a word | |
| #define OUT 0 // Outside a word | |
| int main(void) | |
| { | |
| int c; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| int strrindex(char *s, char *t); | |
| int main(void) | |
| { | |
| char items[] = "bartbartbart"; | |
| char items2[] = "rt"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" | |
| "os" |
OlderNewer