Skip to content

Instantly share code, notes, and snippets.

@l15n
l15n / git-branches-by-commit-date.sh
Created Jul 13, 2012 — forked from jasonrudolph/git-branches-by-commit-date.sh
List remote Git branches and the last commit's author and author date for each branch. Sort by most recent commit's author date.
View git-branches-by-commit-date.sh
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ai %ar by %an" $branch | head -n 1` \\t$branch; done | sort -r
@l15n
l15n / Local Branches
Last active Apr 22, 2020 — forked from schacon/gist:942899
Delete all remote branches on your fork `mine` which have already been merged into upstream `origin/master`
View Local Branches
$ git branch --merged master |
grep -v '*' |
grep -v master |
xargs -L1 |
xargs git branch -d
@l15n
l15n / rails.ipynb.json
Last active May 22, 2018
Rails and Jupyter
View rails.ipynb.json
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
@l15n
l15n / # octave - 2016-08-10_17-09-27.txt
Created Aug 17, 2016
octave (homebrew/science/octave) on Mac OS X 10.11.6 - Homebrew build logs
View # octave - 2016-08-10_17-09-27.txt
Homebrew build logs for homebrew/science/octave on Mac OS X 10.11.6
Build date: 2016-08-10 17:09:27
@l15n
l15n / # arpack - 2016-08-10_16-18-01.txt
Created Aug 10, 2016
arpack (homebrew/science/arpack) on Mac OS X 10.11.6 - Homebrew build logs
View # arpack - 2016-08-10_16-18-01.txt
Homebrew build logs for homebrew/science/arpack on Mac OS X 10.11.6
Build date: 2016-08-10 16:18:01
@l15n
l15n / enumetric.rb
Created Jun 28, 2012
Roughly estimate usage of Enumerable methods
View enumetric.rb
#! /usr/bin/env ruby
#
# enumetric.rb
#
# Rough estimate of usage/non-usage of Enumerable methods
TRIVIAL_METHODS = [:first, :count, :to_a]
def count_usage(method, dir = '.')
method_delimiter = '[\s\.\{\(=]'
@l15n
l15n / RubyGems.ipynb.json
Created Oct 6, 2015
Ruby Gems available on Try Jupyter
View RubyGems.ipynb.json
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Ruby Gems available on Try Jupyter"
]
},
{
@l15n
l15n / gist:1007841
Created Jun 4, 2011
Apple Retail Stores by Country
View gist:1007841
Country Stores Population Population per Store
USA 236 308 million 1.3 million
UK 29 62 million 2.1 million
Canada 19 34 million 1.7 million
Australia 10 22 million 2.2 million
Japan 7 127 million 18 million
China 4 1,339 million 334 million
France 6 65 million 10.8 million
Germany 5 81 million 16 million
Italy 4 60 million 15 million
View devise.ja.yml
ja:
errors:
messages:
not_found: "は見つかりませんでした"
# not_found: "not found"
already_confirmed: "は既に登録済みです"
# already_confirmed: "was already confirmed"
not_locked: "は凍結されていません"
# not_locked: "was not locked"
not_saved:
@l15n
l15n / gist:917120
Created Apr 13, 2011
Using iconv/readline from RVM
View gist:917120
# In $HOME/.rvm/user/db
ruby_configure_flags=--enable-shared --with-readline-dir=$HOME/.rvm/usr --with-iconv-dir=$HOME/.rvm/usr
You can’t perform that action at this time.