Skip to content

Instantly share code, notes, and snippets.

View fayimora's full-sized avatar
🕺

Fayi FB fayimora

🕺
  • London, England
View GitHub Profile
@fayimora
fayimora / DotBuilder.scala
Created February 23, 2013 19:25
Code to generate an svg of a Huffman tree using http://www.graphviz.org/Gallery.php
package patmat
import common._
import patmat.Huffman._
object DotBuilder {
def name(node: CodeTree) : String = node match {
case Fork(_, _, chars, _) => chars.map(x => "" + x + " ").reduce(_ + _).dropRight(1)
case Leaf(chars, _) => chars.toString
@tpolecat
tpolecat / gist:4743224
Last active December 12, 2015 08:18
Inversions exercise from fayimora
import scala.io.Source
import System.{ currentTimeMillis => now }
object Inv extends App {
// An int set that knows how many members are greater than a given number.
sealed trait GSet {
def ngt(n: Int): Int // number greater than `n`
def +(n: Int): GSet
}
@fayimora
fayimora / gist:4137828
Created November 24, 2012 00:33 — forked from dahu/gist:4137807
ftplugin/help.vim
" help.vim - ftplugin for better Help navigation and operation
" Barry Arthur
" jump to links with CR
nmap <buffer> <CR> <C-]>
" jump back with BS
nmap <buffer> <BS> <C-T>
" skip to next option link
nmap <buffer> o /'[a-z]\{2,\}'<CR>
" skip to previous option link
@mikesmullin
mikesmullin / chromedriver.sh
Created May 8, 2012 16:08
easily install chromedriver on linux/osx
sudo apt-get install unzip;
wget -O /tmp/chromedriver.zip http://chromedriver.googlecode.com/files/chromedriver_linux64_19.0.1068.0.zip && sudo unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/;
@Gregg
Gregg / gist:968534
Created May 12, 2011 13:54
Code School Screencasting Framework

Screencasting Framework

The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.

Why you should care about screencasting?

You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.

  1. Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.