Skip to content

Instantly share code, notes, and snippets.

View minardimedia's full-sized avatar

Emmanuel Medina Garcia minardimedia

  • Mexico, DF
View GitHub Profile
# Load DSL and set up stages
require "capistrano/setup"
# Include default deployment tasks
require "capistrano/deploy"
require "capistrano/rails"
require "capistrano/scm/git"
install_plugin Capistrano::SCM::Git
# Include tasks from other gems included in your Gemfile
@minardimedia
minardimedia / React Native: Animated - Code
Created October 6, 2015 06:11 — forked from sahrens/React Native: Animated - Code
Example code from ReactEurope 2015 talk - React Native: Animated
/**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
* FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
@minardimedia
minardimedia / gist:3610889
Created September 3, 2012 17:06
String Functions for Javascript – trim, to camel case, to dashed, and to underscore
Trim String
String.prototype.trim = function(){
return this.replace(/^\s+|\s+$/g, "");
};
To Camel Case
String.prototype.toCamel = function(){
return this.replace(/(\-[a-z])/g, function($1){return $1.toUpperCase().replace('-','');});
@minardimedia
minardimedia / gist:3106161
Created July 13, 2012 17:32
The Hit List Shortcuts
Return Add a new Task
Tab Edit a Task
WASD Move tasks around
HJKL Move around
Space Mark as completed
Delete Delete a Task
1-9 Priority
⇧⌘N New List
⌃⌘N New Folder
rvm use 1.9.2@projectname --create
"rvm use 1.9.2@projectname" >> .rvmrc
@minardimedia
minardimedia / gist:1810811
Created February 12, 2012 20:56
TRY GIST
def hellow
puts "HELLOW"
end