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
RUBY_BUILD_BUILD_PATH="$HOME/.rbenv/source" RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl)" CONFIGURE_OPTS="--enable-shared --disable-install-doc --with-readline-dir=$(brew --prefix readline)" rbenv install 2.0.0-p0 |
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
#!/bin/sh | |
echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
read inputline | |
name=$inputline | |
echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
read inputline | |
url=$inputline |
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
$('body').on 'click', '.my-selector', (e) -> | |
# Do something here | |
e.preventDefault() |
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 org.json.*; | |
import java.util.Iterator; | |
import java.util.Map; | |
public static class MusicAPI { | |
// Setup API endpoints | |
protected String request_url = "http://music.ryanlindsey.me/api"; | |
protected String api_random_track = "/track/random"; | |
protected String api_latest_track = "/track/latest"; |
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
GET http://music.ryanlindsey.me/api/artists |
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
GET http://music.ryanlindsey.me/api/albums | |
{"album_count":959,"album_names":["(500) Days Of Summer: Music From The Motion Picture","(What's The Story) Morning Glory?","+ (Cross)","...And Justice For All","...And The Circus Leaves Town","...I Care Because You Do","...Was A Real Boy (Explicit)","2001 (Instrumentals)","39 Minutes Of Bliss (In An Otherwise Meaningless World)","4 AM","835","A Book Like This","A Bothered Mind","A Drowning (Radio Single)","A Heaping Helping Of Perspective","A Lesson In Crime","A Lot Like Love: Music From The Motion Picture","A Real Hero - EP","A Strange Education","A2G","ATLiens (Explicit)","Abbey Road","Above","Achtung Baby","Adore","Adventures In Foam","Aftermath","Alice In Chains","All Of This And Nothing","All That You Can't Leave Behind","All Time Greatest Hits","All Tomorrow's Parties 3.1","Alopecia","Alphabetical","American III: Solitary Man","American Teen: Music From The Motion Picture","American V: A Hundred Highways","Amnesiac","An Introduction To Ellie Goulding","And Al |
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
class ApplicationController < ActionController::Base | |
protect_from_forgery | |
before_filter :cors_preflight_check | |
after_filter :cors_set_access_control_headers | |
# For all responses in this controller, return the CORS access control headers. | |
def cors_set_access_control_headers | |
headers['Access-Control-Allow-Origin'] = '*' |
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 pmset hibernatemode 0 | |
sudo pmset standby 0 | |
sudo pmset autopoweroff 0 |
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
$ defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}' | |
$ killall Dock |
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
# dry run first | |
$ gem cleanup your_gem_name -d | |
$ gem cleanup your_gem_name -v |