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
// 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
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
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
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
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(); |
NewerOlder