This file contains hidden or 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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or 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
| ////////////////////// | |
| //Static Node Server// | |
| ////////////////////// | |
| var http = require("http"), | |
| url = require("url"), | |
| path = require("path"), | |
| fs = require("fs") | |
| port = process.argv[2] || 8888; |
This file contains hidden or 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
| time dd if=/dev/zero of=/Volumes/mount/testfile bs=1048576k count=4 |
This file contains hidden or 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
| sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -configure -allowAccessFor -allUsers -configure -restart -agent -privs -all |
This file contains hidden or 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
| //http://stackoverflow.com/questions/2177548/load-json-into-variable | |
| var json = (function () { | |
| var json = null; | |
| $.ajax({ | |
| 'async': false, | |
| 'global': false, | |
| 'url': my_url, | |
| 'dataType': "json", | |
| 'success': function (data) { |
This file contains hidden or 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
| <!-- load foundation & colorbox jquery --> | |
| <script type="text/javascript" src="js/jquery.js"></script> | |
| <script type="text/javascript"> | |
| var jQuery_1_8_2 = $.noConflict(true); | |
| </script> | |
| <!-- load timeline jquery --> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
| <script type="text/javascript"> | |
| var jQuery_1_7_2 = $.noConflict(true); |
This file contains hidden or 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
| <script type="text/javascript"> | |
| $(window).scroll(function() { | |
| $('.whiteout').css('top', $(this).scrollTop() + "px"); | |
| $('.whiteout').css('position', 'absolute'); | |
| if($(this).scrollTop() < 100){ | |
| $('.whiteout').css('position', 'static'); | |
| } | |
| }); | |
| </script> |
This file contains hidden or 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 ddf.minim.*; | |
| Minim minim; | |
| AudioSample kick; | |
| AudioSample snare; | |
| int val1 = 0; | |
| void setup() { | |
| minim = new Minim(this); | |
| kick = minim.loadSample( "BD.mp3", 512); |
NewerOlder