This file contains 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
// Aoc 2015 Day 1, Not Quite Lisp, Part 1 | |
fun part1(ops: List<Int>) = ops.sum() | |
This file contains 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
const animationRate = 30; // 30 ms | |
let initialTime, elapsedTime; | |
function animate(deltaT) { | |
// calculate object positions based on deltaT | |
} | |
function onFrame() { | |
const currentTime = new Date().getTime(); |
NewerOlder