Skip to content

Instantly share code, notes, and snippets.

@sjkillen
sjkillen / file_init.js
Created January 2, 2014 08:07
Html5 Game Handy Framework
loadJavascript('html_event_listeners.js');
loadJavascript('main.js');
@sjkillen
sjkillen / core.html
Last active August 29, 2015 13:57
Spenjin
<script>
'use strict';
var createGameObjectConstructor = (function () {
var recent = function () {//every actual object constructor will share this method
return (this.instanceArray.length> 0) ? this.instanceArray[this.instanceArray.length - 1] :null;
};//add more functions like this to create methods for the "final constructor"
var countDescriptor={get: function() {return this.instanceArray.length; } };
@sjkillen
sjkillen / Subject verb Object.html
Last active August 29, 2015 13:58
Natural Language Programming
<script>
'use strict';
var SVO=(function(){//TODO: remove periods and punctuation, not case-sensitive
var subjects={},
verbs={},
objects={};
return {//verb gets called with this as subject passing object as parameter
@sjkillen
sjkillen / index.html
Created May 4, 2014 17:38
Tic Tac Toe
<script>
"use strict";
this.TicTacToe=(function(){
var Error=(function(){
var errors=new Map([
["error-not-found",new (function errorNotFound(){message:"error not found!"})]
["value-input",new TypeError(["Invalid GridSquare value"])],
# Short
https://dolftax.github.io/post/dismissing-gc-nodejs/
# Long
http://www.crashcourse.ca/introduction-linux-kernel-programming/lesson-17-your-first-character-device-driver
http://aspectjs.com/
ISBN 978-1-61620-462-4
http://www.blogologues.org/
@sjkillen
sjkillen / Touch Power Users
Last active February 4, 2017 03:10
Research regarding multi-touch screen interactions designed for advanced/power users
ACM search
http://dl.acm.org.ezproxy.macewan.ca/results.cfm?query=multi-touch%20multitouch%20multi%20touch%20advanced%20power%20users&start=20&filtered=&within=owners%2Eowner%3DHOSTED&dte=&bfr=&srt=_score
# Very relevant
::::Multitouch for data vis
http://dl.acm.org.ezproxy.macewan.ca/citation.cfm?id=2479625&CFID=896742868&CFTOKEN=48424619
Interesting, however doesn't give many (or any) details about specifics, maybe theyre elsewhere?
@sjkillen
sjkillen / Bloop Research
Created February 4, 2017 02:54
Research regarding Object based surround +
WFS
https://en.wikipedia.org/wiki/Wave_field_synthesis
Soundscape
multitouch
http://dl.acm.org.ezproxy.macewan.ca/citation.cfm?id=1385660&CFID=896742868&CFTOKEN=48424619
http://spatialaudio.net/ssr/
@sjkillen
sjkillen / mlfq.ts
Created February 4, 2017 15:11
MLFQ in typescript
class Job {
// Values the job is created with
init: {
// Time when job was created
readonly createTime: number;
// Total time job needs to spend on CPU to finish
readonly runTime: number;
}
// values collected once turing the jobs lifetime
perf: {
const express = require("express"),
Sequelize = require("sequelize"),
body = require("body-parser");
const { STRING, DATE, Model, Instance } = Sequelize;
// Connect to db
const db = new Sequelize("CONNECTION STRING GOES HERE", {
dialect: 'mysql',