Skip to content

Instantly share code, notes, and snippets.

View ryanlindsey's full-sized avatar
🏠
Working from home

Ryan Lindsey ryanlindsey

🏠
Working from home
  • California
View GitHub Profile
@ryanlindsey
ryanlindsey / gist:5579630
Last active December 17, 2015 08:19
Music API Albums Example
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
@ryanlindsey
ryanlindsey / artists.sh
Last active December 17, 2015 08:19
Example requesting all artists from Music API
GET http://music.ryanlindsey.me/api/artists
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";
@ryanlindsey
ryanlindsey / gist:5120705
Created March 8, 2013 22:59
Example of jQuery Event Bubbling
$('body').on 'click', '.my-selector', (e) ->
# Do something here
e.preventDefault()
@ryanlindsey
ryanlindsey / make_app
Created March 5, 2013 18:51
Convert web app to native
#!/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
@ryanlindsey
ryanlindsey / rbenv_ruby-2.0.0-p0
Created February 25, 2013 21:33
Install Ruby 2.0 w/ Rbenv
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
# For a similar requirement, I just wrote myself a little Guardfile like this:
require 'guard/guard'
module ::Guard
class Middleman < ::Guard::Guard
def run_all
system("bundle exec middleman build --clean")
end
{
"auto_complete": false,
"auto_complete_commit_on_tab": false,
"auto_complete_delay": 50,
"auto_complete_selector": "source - comment",
"auto_complete_size_limit": 4194304,
"auto_complete_triggers":
[
{
"characters": "<",
@ryanlindsey
ryanlindsey / bootstrap_vars_sass.css.sass
Created November 20, 2012 04:21
Bootstrap Variables (sass)
//
// Variables
// --------------------------------------------------
// Global values
// --------------------------------------------------
// Grays
@ryanlindsey
ryanlindsey / gist:3960083
Created October 26, 2012 17:25
Flexslider 2.0 Properties
namespace: "flex-", //{NEW} String: Prefix string attached to the class of every element generated by the plugin
selector: ".slides > li", //{NEW} Selector: Must match a simple pattern. '{container} > {slide}' -- Ignore pattern at your own peril
animation: "fade", //String: Select your animation type, "fade" or "slide"
easing: "swing", //{NEW} String: Determines the easing method used in jQuery transitions. jQuery easing plugin is supported!
direction: "horizontal", //String: Select the sliding direction, "horizontal" or "vertical"
reverse: false, //{NEW} Boolean: Reverse the animation direction
animationLoop: true, //Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end
smoothHeight: false, //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode
startAt: 0, //Integer: The slide that the slider should start on. Array notati