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
var game; | |
game = function (world) { | |
console.log('It works!'); | |
}; | |
Physics(game); |
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
var game, createRenderer; | |
createRenderer = function (width, height) { | |
return Physics.renderer('canvas', { | |
el: 'my-game', | |
width: width, | |
height: height, | |
meta: false, | |
autoResize: false, | |
styles: { |
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
var game, createRenderer, createAngryBird; | |
createRenderer = function (width, height) { | |
return Physics.renderer('canvas', { | |
el: 'my-game', | |
width: width, | |
height: height, | |
meta: false, | |
autoResize: false, | |
styles: { |
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
var game, createRenderer, createAngryBird; | |
createRenderer = function (width, height) { | |
return Physics.renderer('canvas', { | |
el: 'my-game', | |
width: width, | |
height: height, | |
meta: false, | |
autoResize: false, | |
styles: { |
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
var game, createRenderer, createAngryBird, createPlanks, createPigs; | |
createRenderer = function (width, height) { | |
return Physics.renderer('canvas', { | |
el: 'my-game', | |
width: width, | |
height: height, | |
meta: false, | |
autoResize: false, | |
styles: { |
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
var game, createRenderer, createAngryBird, createPlanks, createPigs; | |
createRenderer = function (width, height) { | |
return Physics.renderer('canvas', { | |
el: 'my-game', | |
width: width, | |
height: height, | |
meta: false, | |
autoResize: false, | |
styles: { |
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
import urllib | |
import base64 | |
from zlib import decompress, compress | |
from xml.dom.minidom import parseString | |
from lxml import etree | |
from saml2.server import Server | |
def base64_decode(encoded_XML): | |
print '\nDecoding base64...\n' | |
return base64.b64decode(encoded_XML) |
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
#!/bin/bash | |
# Remember to make this file executable and place it in .git/hooks with the name pre-push | |
protected_branch='master' | |
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,') | |
if [ $protected_branch = $current_branch ] | |
then | |
echo "You were going to push to master and I can't allow that. Disable this hook if you really want to continue." |
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
javascript:(function(){var%20iframes=document.getElementsByTagName('iframe');for(i%20in%20iframes){iframes[i].remove()}})() |
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
pkg load statistics; | |
function [rms] = mean_squared_distance(orthogonal_to_line, points) | |
numPoints = rows(points); | |
% Errors are projection in the direction orthogonal to the estimated line | |
errors = points * orthogonal_to_line; | |
rms = sqrt(errors' * errors / numPoints); | |
end | |
function regression_graph(points, sigma, direction) |
OlderNewer