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 += ' '; | |
} |
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
$(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
{ | |
"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
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
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
if docker-machine status boot2docker | grep Running > /dev/null; then | |
eval "$(docker-machine env boot2docker)" | |
fi |
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 http.requests.*; | |
class Instagram { | |
private String accessToken = "508806944.c6cb753.2088e0733e0d432689efc5fcd15bb3b0"; | |
private String tag = "nofilter"; | |
private JSONArray posts; | |
private ArrayList<PImage> images; | |
private String imageFormat = "jpg"; | |
private int imageListSize = 100; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>The Fabulous Jibber Jabber Generator</title> | |
<script type="text/javascript"> | |
validchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz()_/!$"; | |
tab0 = new Array( | |
"Dear friends, ", |
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
pico-8 cartridge // http://www.pico-8.com | |
version 8 | |
__lua__ | |
-- game boilerplate | |
-- by murilo | |
-- Game states | |
game_mode = "splash" | |
-- Event manager |
OlderNewer