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 l = 17; | |
var toDegrees = function( radians ) { | |
return radians * ( 180 / Math.PI ); | |
} | |
var toRadians = function( degrees ) { | |
return degrees * ( Math.PI / 180 ); | |
} | |
// Polar magnitude |
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 body = $("html, body"); | |
body.animate({scrollTop:0}, '500', 'swing', function() { | |
alert("Finished animating"); | |
}); |
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
{ | |
"name": "http-server-app", | |
"version": "0.0.1", | |
"description": "", | |
"scripts": { | |
"start": "./node_modules/.bin/http-server" | |
}, | |
"dependencies": { | |
"http-server": "*" | |
}, |
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
$(document).ready(function(){ | |
var hash = window.location.hash.replace('#!', '' ); | |
var locale = window.location.pathname.replace('/wiki/', ''); | |
var github = 'https://github.com/KidsHackDay/wiki/edit/gh-pages/'; | |
var link = $( '<a/>', { | |
href: github + locale + hash, | |
text: 'Edit this page' | |
}); | |
var container = $( '<div/>', { | |
'class': 'container' |
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 | |
git add -A && git commit -m "yolo" && git push $1 $2 |
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
console.sailing = function () { | |
var pos = 0; | |
setInterval( function() { | |
clear(); | |
var line1 = ''; | |
var line2 = ''; | |
for( var i = 0; i < pos; i++ ) { | |
line1 += ' '; | |
line2 += ' '; | |
} |
NewerOlder