With the support for ruby,git,rvm
Vim 7.3 or better Tested on MacOS and Linux
Introduction to Vim: http://blog.interlinked.org/tutorials/vim_tutorial.html
/* | |
* Smaller, Lighter, Faster, modular jQuery - include only the parts you want, strip the rest! | |
* inc. 80/20 useful parts of jQuery (rest should be plugins), small enough to drop-in as source. | |
* | |
* 7-8x Faster DOM traversal for <= IE7. (i.e. where there's no querySelector) | |
* Query Limitations: | |
* Requires an Id (i.e. #) or Tag Name (e.g. INPUT) in each child selector. | |
* | |
* Valid Examples: | |
* - TBODY TD.c1 INPUT |
//Adds $.xhr and jQuery-like $.ajax methods to the prescribed namespace. | |
//Inspired from David Flanagans excellent cross-platform utils http://www.davidflanagan.com/javascript5/display.php?n=20-1&f=20/01.js | |
//Includes underscore.js _.each and _.extend methods | |
//modified to behave like jQuery's $.ajax(), not complete. | |
(function($) { | |
var win=window, xhrs = [ | |
function () { return new XMLHttpRequest(); }, | |
function () { return new ActiveXObject("Microsoft.XMLHTTP"); }, | |
function () { return new ActiveXObject("MSXML2.XMLHTTP.3.0"); }, | |
function () { return new ActiveXObject("MSXML2.XMLHTTP"); } |
//Adds $.xhr and jQuery-like $.ajax methods to the prescribed namespace. | |
//Inspired from David Flanagans excellent cross-platform utils http://www.davidflanagan.com/javascript5/display.php?n=20-1&f=20/01.js | |
//Includes underscore.js _.each and _.extend methods | |
//modified to behave like jQuery's $.ajax(), not complete. | |
(function($) { | |
var win=window, xhrs = [ | |
function () { return new XMLHttpRequest(); }, | |
function () { return new ActiveXObject("Microsoft.XMLHTTP"); }, | |
function () { return new ActiveXObject("MSXML2.XMLHTTP.3.0"); }, | |
function () { return new ActiveXObject("MSXML2.XMLHTTP"); } |
# CoffeeScript With Mixins | |
$ -> | |
template = _.templateFor '#meal-template' | |
meal = new Meal | |
_.focusOn '#entry' | |
_.onSumbitOf '#entry_form', -> | |
meal.add new Dish _.valOf '#entry' | |
_.setHtmlOf 'ul#meal', template meal.toJSON() |
source "https://rubygems.org" | |
gem 'sprockets' | |
gem 'sprockets-sass' | |
gem 'sass' | |
gem 'compass' | |
gem 'bootstrap-sass' |
#gitback 0.1 | |
#usage: sudo ruby gitback.rb | |
#credits: walter white, minor changes: addy osmani | |
#!/usr/bin/env ruby | |
# dependencies | |
require "yaml" | |
require "open-uri" | |
time = Time.new |
With the support for ruby,git,rvm
Vim 7.3 or better Tested on MacOS and Linux
Introduction to Vim: http://blog.interlinked.org/tutorials/vim_tutorial.html
#Basic Stuff#
##Movements##
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
require 'minitest/autorun' | |
### | |
# Test to demonstrate TCO in Ruby. Tested in 1.9.2+ | |
class TestTCO < MiniTest::Unit::TestCase | |
code = <<-eocode | |
class Facts | |
def fact_helper(n, res) | |
if n == 1 | |
res |