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
| form { | |
| } | |
| form input[type="text"] { | |
| background: url(images/search.png) no-repeat 10px 6px #fcfcfc; | |
| border: 1px solid #d1d1d1; | |
| font: bold 12px Arial,Helvetica,Sans-serif; | |
| color: #bebebe; | |
| width: 150px; |
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
| source /home/heron/.vim/vimrc | |
| "Shortcut to rapidly toggle `set list` | |
| nmap <leader>l :set list!<CR> | |
| "Map \s as show git status | |
| nmap <leader>s :Gstatus<CR> | |
| " Use the same symbols as TextMate for tabstops and EOLs | |
| set listchars=tab:▸\ ,eol:¬,trail:- |
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
| $stack, $draws = [], {} | |
| def method_missing *args | |
| return if args[0][/^to_/] | |
| $stack << args.map { |a| a or $stack.pop } | |
| $draws[$stack.pop(2)[0][0]] = args[1] if args[0] == :< | |
| end | |
| class Array | |
| def +@ |
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 Klass | |
| def self.foo | |
| File.open "filename", "w" do |file| | |
| file.write("text") | |
| end | |
| end | |
| end | |
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
| # set C-a as PREFIX | |
| set -g prefix C-a | |
| # set delay for other programs | |
| set -s escape-time 1 | |
| #set index start by 1 for window | |
| set -g base-index 1 | |
| #set index start by 1 for panes |
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
| (defn plus [alpha beta] (+ alpha beta)) | |
| (plus 3 4) ;; 7 | |
| (plus 3 [4 5]) ;; Exception | |
| (reduce plus 3 [4 5] ) ;; 12 | |
| ;;yay |
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
| /* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011 | |
| * http://benalman.com/ | |
| * Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */ | |
| (function($) { | |
| var o = $({}); | |
| $.subscribe = function() { | |
| o.on.apply(o, arguments); |
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
| Ext.define('Book', { | |
| extend: 'Ext.data.Model', | |
| fields: [ | |
| {name: 'id', type: 'int'}, | |
| {name: 'title', type: 'string'}, | |
| {name: 'thumb_image_path', type: 'string'}, | |
| {name: 'user_id', type: 'int'} | |
| ], | |
| proxy: { url: "/books", type: 'rest', format: "json" } | |
| }); |
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
| var a = "teste" | |
| , b = 10 | |
| , variable = new Something() | |
| ; |
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 apt-add-repository ppa:relan/exfat | |
| sudo apt-get update | |
| sudo apt-get install fuse-exfat |