Skip to content

Instantly share code, notes, and snippets.

View hcientist's full-sized avatar

Michael Stewart hcientist

View GitHub Profile
@hcientist
hcientist / infinityshark.js
Created July 9, 2012 18:15
set interval so that grooveshark doesn't ask you to click resume
javascript:(function(){$("[id^=playlistCapital]").hide();$("[id^=capitalAboveFoldHelper]").hide();setInterval(function(){$("#resumePlaybackButton").removeClass("disabled").click();$("#resumePlaybackButtonText").click();$("#resumePlaybackButtonText").parents("button.disabled").removeClass("disabled").removeAttr("disabled").find("span").click();$('button:contains("Yes, I\'m")').click();},2000);})();
angular.module('uitools.app', ['uitools.directives'])
.controller('AppointmentCtrl', ['$scope', function ($scope) {
$scope.appointment = {};
$scope.onDateSelect= function(newValue) {
$scope.appointment.startTime = newValue;
};
}]);
body {
font-family: Helvetica, Arial, sans-serif;
}
@hcientist
hcientist / keybase.md
Created April 11, 2014 16:47
proving keybase<-->github

Keybase proof

I hereby claim:

  • I am thegreatmichael on github.
  • I am tgm (https://keybase.io/tgm) on keybase.
  • I have a public key whose fingerprint is 3B89 4EBC 1369 E0CC 9965 82A9 01AB A789 79D2 EDD3

To claim this, I am signing this object:

@hcientist
hcientist / sillyname.js
Created August 14, 2014 18:25
Silly Name Generator
//got the lists for this from: http://stackoverflow.com/q/16826200/1449799
function getName() {
var firstName = ["Runny", "Buttercup", "Dinky", "Stinky", "Crusty",
"Greasy","Gidget", "Cheesypoof", "Lumpy", "Wacky", "Tiny", "Flunky",
"Fluffy", "Zippy", "Doofus", "Gobsmacked", "Slimy", "Grimy", "Salamander",
"Oily", "Burrito", "Bumpy", "Loopy", "Snotty", "Irving", "Egbert", "Waffer", "Lilly","Rugrat","Sand", "Fuzzy","Kitty",
"Puppy", "Snuggles","Rubber", "Stinky", "Lulu", "Lala", "Sparkle", "Glitter",
"Silver", "Golden", "Rainbow", "Cloud", "Rain", "Stormy", "Wink", "Sugar",
"Twinkle", "Star", "Halo", "Angel"];
@hcientist
hcientist / examples.js
Created February 16, 2015 21:43
working with recipes in mongo
var r = { //first i will show an example where i just store the value of the recipe key, because there were no other keys in the example you sent me
"publisher": "All Recipes",
"f2f_url": "http://food2fork.com/view/521",
"ingredients": [
"For Cupcakes:",
"1 (18.25 ounce) package white cake mix with pudding",
"1/3 cup vegetable oil",
"3 egg whites",
"1 1/4 cups water",
"6 ounces bittersweet chocolate, chopped fine",
@hcientist
hcientist / twitter-fresh.js
Created June 4, 2015 09:11
Bookmarklet to automatically load new tweets on a twitter search page
javascript:(function(){window.setInterval(function(){$('.new-tweets-bar').click();}, 500);})();
@hcientist
hcientist / Montage.py
Last active August 29, 2015 14:23 — forked from gbishop/Montage.py
#!/usr/bin/python
'''Yet another Montage experiment for desktop wallpaper
This version works with a variant on the "Pseudo-Poisson" dart throwing algorithms
that were popular in stochastic ray-tracing years ago. It throws darts at a rectangular
region ensuring that no darts are closer together than a minimum distance. It allows the
minimum distance to scale down so you can have some big pictues and some smaller pictures.
The help text was intended to be self explanatory...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.tgm.bright</string>
<!--<key>KeepAlive</key>
<true/>-->
<key>RunAtLoad</key>
<true/>
tell application "System Preferences"
activate
reveal anchor "displaysDisplayTab" of pane id "com.apple.preference.displays"
tell application "System Events"
delay 1
set value of slider 1 of group 1 of tab group 1 of window "Built-in Retina Display" of process "System Preferences" to 1
set value of slider 1 of group 1 of tab group 1 of window "LED Cinema Display" of process "System Preferences" to 1
set value of slider 1 of group 1 of tab group 1 of window "Thunderbolt Display" of process "System Preferences" to 1
end tell