This utility has now its own repo https://github.com/sroucheray/requestAnimationFrameRate
You can install it via npm
or bower
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
############################################################################### | |
# Development environment helper to set up project paths and other variables # | |
############################################################################### | |
# | |
# Copyright (C) 2012 Andrea Ratto <andrearatto at yahoo dot it>. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# * Redistributions of source code must retain the above copyright notice, this |
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
/** | |
* @param {Function} fn Function to curry. | |
* @param {Number} lenght The arguments required to invoke the function. Optional. By default is fn.length | |
* @returns {Function} The currified function. | |
*/ | |
function curry(fn, length) { | |
length = length || fn.length; | |
return function currified() { | |
var args = [].slice.call(arguments); |
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
############### | |
# Generate a time sheet entry | |
############### | |
#!/usr/bin/perl | |
# Formats for month names | |
@months = qw( Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec ); | |
@weekdays = qw( Mon Tue Wed Thurs Fri Sat Sun ); | |
# get todays date |
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
/******************** | |
* theLongWayOut.js * | |
******************** | |
* | |
* Well, it looks like they're on to us. The path isn't as | |
* clear as I thought it'd be. But no matter - four clever | |
* characters should be enough to erase all their tricks. | |
*/ | |
function startLevel(map) { |
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
"""This is an attempt at naively using a neural ODE for trajectory optimization | |
over a finite time horizon. This script shows that it fails miserably due to | |
issues recovering the initial conditions in reverse pass.""" | |
from operator import itemgetter | |
import time | |
import control | |
import matplotlib.pyplot as plt | |
import jax | |
from jax import random |
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
/* | |
* timsort Javascript | |
* | |
* Licensed under GPL 3 ( http://www.gnu.org/licenses/gpl.html ) license. | |
* | |
*/ | |
Array.prototype.timsort = function(comp){ | |
var global_a=this | |
var MIN_MERGE = 32; |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
OlderNewer