Skip to content

Instantly share code, notes, and snippets.

@kt2
kt2 / gist:35bd04c383facd2b6a4664a4011893b8
Created April 13, 2018 10:41
JS simulate a C++ like game loop using async function
<script>
myReq = null;
root = [];
count = 0;
run_menu = 1;
requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;
cancelAnimationFrame = window.cancelAnimationFrame || window.mozCancelAnimationFrame;
c = {};
c.element = function() {
@kt2
kt2 / problem_solver.info
Created May 9, 2017 05:39 — forked from nigelheap/problem_solver.info
problem_solver module
name = Problem solver
description = The module that will solve all your drupal problems
package = Problems
version = 1.x
core = 7.x