I hereby claim:
- I am yurikoval on github.
- I am yurik (https://keybase.io/yurik) on keybase.
- I have a public key ASCzecHfS9Is-DjuUelCP2aJI6mpTpsbWPOR2ppz-Nappwo
To claim this, I am signing this object:
| #!/bin/bash | |
| # This script accepts one argument, which is the name of the your new project | |
| if [ "$#" -ne 1 ]; then | |
| echo "Usage: $0 generate new rails app" | |
| exit 1 | |
| fi | |
| app=$1 |
| '.source.elixir': | |
| 'exunit': | |
| 'prefix': 'exunit' | |
| 'body': 'use ExUnit.Case, async: ${1:true}$2' | |
| 'IO.inspect': | |
| 'prefix': 'io' | |
| 'body': 'IO.inspect(${1:}, label: "${2:inspecting}")$3' | |
| '|> IO.inspect': | |
| 'prefix': 'iop' | |
| 'body': '|> IO.inspect(label: "${1:inspecting}")$2' |
| def | |
| puts "spooky!" | |
| end | |
| puts "Indeed!" |
| #!/usr/bin/env ruby | |
| require 'benchmark' | |
| require 'active_support' | |
| require 'active_support/all' | |
| require 'set' | |
| BENCHMARK_TIMES = 1_000_000 | |
| def find_array(array, find_me) | |
| array.any?{ |id, sku| id == find_me && sku.present? } |
| #!/bin/sh | |
| # http://uberblo.gs/2010/12/git-lol-the-other-git-log | |
| git config --global --add alias.lol "log --graph --decorate --pretty=oneline --abbrev-commit" | |
| git config --global --add alias.lola "log --graph --decorate --pretty=oneline --abbrev-commit --all" | |
| git config --global --add alias.m "merge --no-ff --log" | |
| git config --global --add alias.st "status" | |
| git config --global --add alias.br "branch" | |
| git config --global --add alias.bra "branch --all" | |
| git config --global --add alias.sweep "!git branch --merged master | grep -v 'master$' | xargs git branch -d && git remote prune origin" |
| # ~/.atom/keymap.cson | |
| # Your keymap | |
| # | |
| # Atom keymaps work similarly to style sheets. Just as style sheets use | |
| # selectors to apply styles to elements, Atom keymaps use selectors to associate | |
| # keystrokes with events in specific contexts. Unlike style sheets however, | |
| # each selector can only be declared once. | |
| # | |
| # You can create a new keybinding in this file by typing "key" and then hitting | |
| # tab. |
I hereby claim:
To claim this, I am signing this object:
| <html> | |
| <body> | |
| <img src="http://i.imgur.com/0jWrSmF.jpg" width="300" height="234"> | |
| <canvas id="canvas" width=50></canvas> | |
| <script> | |
| var canvas = document.getElementById("canvas"); | |
| var ctx = canvas.getContext("2d"); | |
| img = new Image(); | |
| img.crossOrigin = 'http://profile.ak.fbcdn.net/crossdomain.xml'; |
| grep -ohR 'ENV\[.[a-zA-Z_]*.]' ./* | uniq |
| class Capybara::Session | |
| %i(visit click_on fill_in).each do |method_name| | |
| original_method_name = "old_#{method_name}".to_sym | |
| alias_method original_method_name, method_name | |
| define_method method_name do |*args| | |
| return_value = send original_method_name, *args | |
| save_screenshot(save_path) | |
| increment_counter | |
| return_value | |
| end |