start new:
tmux
start new with session name:
tmux new -s myname
| " Motion for "next/last object". For example, "din(" would go to the next "()" pair | |
| " and delete its contents. | |
| onoremap an :<c-u>call <SID>NextTextObject('a', 'f')<cr> | |
| xnoremap an :<c-u>call <SID>NextTextObject('a', 'f')<cr> | |
| onoremap in :<c-u>call <SID>NextTextObject('i', 'f')<cr> | |
| xnoremap in :<c-u>call <SID>NextTextObject('i', 'f')<cr> | |
| onoremap al :<c-u>call <SID>NextTextObject('a', 'F')<cr> | |
| xnoremap al :<c-u>call <SID>NextTextObject('a', 'F')<cr> |
| # Credit http://stackoverflow.com/a/2514279 | |
| for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
| = intro | |
| - what is sinatra | |
| - history | |
| - about this book | |
| -- books history | |
| -- contributing | |
| -- getting help | |
| - getting started | |
| -- installation | |
| -- hello world |
| import com.twitter.scalding._ | |
| import scala.util.parsing.json._ | |
| class ParseJsonJob(args: Args) extends Job(args) { | |
| TextLine(args("input")) | |
| .map(('line) -> ('parseStatus, 'uri)) { | |
| line: String => { | |
| JSON.parseFull(line) match { | |
| case Some(data: Map[String, String]) => ("success", data("uri")) | |
| case None => ("failed", "") |
| guard 'bundler' do | |
| watch('Gemfile') | |
| end | |
| guard 'livereload' do | |
| watch(%r{app/views/.+\.(erb|haml|md|builder|jbuilder)}) | |
| watch(%r{app/helpers/.+\.rb}) | |
| watch(%r{public/.+\.(css|js|html)}) | |
| watch(%r{config/locales/.+\.yml}) | |
| watch(%r{(app|vendor)/assets/\w+/(.+\.(css|js|html)).*}) { |m| "/assets/#{m[2]}" } |
| import com.twitter.scalding._ | |
| import com.twitter.algebird.{ MinHasher, MinHasher32, MinHashSignature } | |
| /** | |
| * Computes similar items (with a string itemId), based on approximate | |
| * Jaccard similarity, using LSH. | |
| * | |
| * Assumes an input data TSV file of the following format: | |
| * | |
| * itemId userId |
| # add a curry method to symbol for evil/awesome symbol to proc powers. | |
| class Symbol | |
| def curry(n=nil) | |
| ->(*args) { | |
| ->(obj) {obj.send self, *args} | |
| }.curry(n) | |
| end | |
| def call(*n) | |
| curry.(*n) |
The Boulder Haskell Group is going to start working on a shared project to enhance the HSQML library on Hackage, which binds to the QT library for cross-platform GUI development.
This doc is a braindump currently. Please send pull requests w/ any more found out information as we go. It will probably be edited down and become a real README at somepoint for our new project.
| Average Semigroup | |
| ================= | |
| > {-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
| > | |
| > module Average where | |
| > | |
| > import Data.Semigroup | |
| > import Data.Ratio (Ratio, (%)) |