This recipe yields 2 14" pizzas 🍕🍕
- 1 packet yeast
- 1 tsp sugar (or honey or whatever)
# config/routes.rb | |
resources :documents do | |
scope module: 'documents' do | |
resources :versions do | |
post :restore, on: :member | |
end | |
resource :lock | |
end | |
end |
INSERT INTO 'snippets' ('title', 'body') VALUES | |
(':+1:', '👍'), | |
(':-1:', '👎'), | |
(':100:', '💯'), | |
(':1234:', '🔢'), | |
(':8ball:', '🎱'), | |
(':a:', '🅰'), | |
(':ab:', '🆎'), | |
(':abc:', '🔤'), | |
(':abcd:', '🔡'), |
Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.
Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.
# http://www.linuxjournal.com/content/use-date-command-measure-elapsed-time | |
function timer() { | |
if [[ $# -eq 0 ]]; then | |
echo $(date '+%s') | |
else | |
local stime=$1 | |
etime=$(date '+%s') | |
if [[ -z "$stime" ]]; then stime=$etime; fi |
# | |
# Install mysql2 gem with local brew settings which normally fails during regular rails install | |
# | |
puts "Installing mysql2 gem" | |
run "gem install mysql2 -- --with-mysql-include=/usr/local/Cellar/mysql/5.5.27/include --with-mysql-lib=/usr/local/Cellar/mysql/5.5.27/lib" |
#!/usr/bin/env bash | |
for i in $(seq -f %02g 0 23); do echo $( echo -e "$i\t"; git shortlog -n --format='%ad %s' | grep " $i:" | wc -l); done |
#!/usr/bin/env bash | |
for i in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23; do echo $( echo -e "$i\t"; git shortlog -n --format='%ad %s' | grep " $i:" | wc -l); done |
require 'json' | |
require 'open-uri' | |
user = 'GITHUB_USERNAME' | |
pass = 'GITHUB_PASSWORD' | |
repo = 'user/repo' | |
pulls = JSON.parse(open("https://api.github.com/repos/#{repo}/pulls", :http_basic_authentication => [user, pass]).read) | |
pulls.each do |pull| |
ul.console { | |
font-size : 0.85em; | |
color : #FFF; | |
text-shadow : 0 1px #000; | |
position : fixed; | |
top : 70%; | |
right : 10px; | |
z-index : 10000; | |
width : 200px; | |
height : 25%; |