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:3443032
Created August 23, 2012 22:55
Remove .DS_Store from git repository
# Navigate to your repo
$ find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch
$ git config --global core.excludesfile ~/.gitignore
$ echo .DS_Store >> ~/.gitignore
@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
@ryanlindsey
ryanlindsey / bootstrap_vars_sass.css.sass
Created November 20, 2012 04:21
Bootstrap Variables (sass)
//
// Variables
// --------------------------------------------------
// Global values
// --------------------------------------------------
// Grays
{
"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": "<",
# 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
@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
@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 / gist:5120705
Created March 8, 2013 22:59
Example of jQuery Event Bubbling
$('body').on 'click', '.my-selector', (e) ->
# Do something here
e.preventDefault()
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 / artists.sh
Last active December 17, 2015 08:19
Example requesting all artists from Music API
GET http://music.ryanlindsey.me/api/artists