This file contains 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
all: install | |
install: | |
@echo Installing the basic structure | |
@mkdir -p _includes _layouts _posts _site | |
@touch _layouts/default.html _layouts/post.html | |
@touch _posts/2007-10-29-why-every-programmer-should-play-nethack.md | |
@touch _posts/2009-04-26-barcamp-boston-4-roundup.md | |
@touch index.html _config.yml | |
@echo Done |
This file contains 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
<div class=""> | |
<div class="entry"> | |
<h2 class="title"><a href="{{ post.url }}">{{ post.title }}</a></h2> | |
<div class="byline">Escrito el {{ post.date | date:"%d/%m/%Y" }}</div> | |
<div class="body"> | |
{% if hide_extended %} | |
{% if post.readmore %} | |
{{ post.content | truncate }} | |
<a href="{{ post.url }}/#more" class="more-link"><span class="readmore">Read more»</span></a> |
This file contains 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
find ./ -name filename | xargs sed -i 0 "s/original/replace/g" |
This file contains 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
#! /bin/bash | |
clear | |
echo "Running the rspec sorted correctly" | |
find spec -type f -name '*_spec.rb' | sort | xargs rspec |
This file contains 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
# This file is copied to spec/ when you run 'rails generate rspec:install' | |
ENV["RAILS_ENV"] ||= 'test' | |
require File.expand_path("../dummy/config/environment", __FILE__) | |
require 'rspec/rails' | |
require 'rspec/autorun' | |
require 'factory_girl_rails' | |
require 'database_cleaner' | |
require 'shoulda/matchers/integrations/rspec' | |
ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../') |
This file contains 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
git ls-files --deleted -z | xargs -0 git rm |
This file contains 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
call pathogen#infect() | |
" Tabs | |
set shiftwidth=2 | |
set tabstop=2 | |
set vb | |
" Highlight | |
set hlsearch! |
This file contains 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
.vim | |
├── autoload | |
│ └── pathogen.vim | |
├── bundle | |
│ ├── ctrlp.vim | |
│ ├── gundo | |
│ ├── nerdcommenter | |
│ ├── nerdtree | |
│ ├── quicktask | |
│ ├── scss-syntax.vim |
This file contains 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 publisher = { | |
subscribers: { | |
any: [] // Event type: subscribers | |
}, | |
subscribe: function (fn, type) { | |
type = type || 'any'; | |
if (typeof this.subscribers[type] === 'undefined') { | |
this.subscribers[type] = []; | |
} |
OlderNewer