This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat /etc/apt/sources.list | |
deb http://ftp.us.debian.org/debian/ squeeze main contrib non-free | |
deb-src http://ftp.us.debian.org/debian/ squeeze main contrib non-free | |
deb http://security.debian.org/ squeeze/updates main contrib non-free | |
deb-src http://security.debian.org/ squeeze/updates main contrib non-free | |
# squeeze-updates, previously known as 'volatile' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case class ListZipper[T](rev:List[T], fwd:List[T]){ | |
override def toString = rev.reverse.toString ++" " ++ fwd.toString | |
def read:T= fwd.head | |
def add(c:T)=ListZipper(rev,c::fwd) | |
def update(c:T)=ListZipper(rev,c::fwd.tail) | |
def remove()=ListZipper(rev,fwd.tail) | |
def back=ListZipper(rev.tail,rev.head::fwd) | |
def forward=ListZipper(fwd.head::rev,fwd.tail) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package akka.unfiltered | |
import akka.actor._ | |
import akka.dispatch.Future | |
import akka.pattern.ask | |
import akka.util.duration._ | |
import akka.util.Timeout | |
import unfiltered.Async | |
import unfiltered.request._ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sbt._ | |
import Keys._ | |
/** | |
* How in the world do I make bye depend on hello? | |
* And how do I depend on a task like test? | |
* I have not been able to make this work | |
goodbyeTask <<= goodbyeTask.dependsOn(helloTask) as in https://github.com/harrah/xsbt/wiki/Tasks | |
no matter where I stick it! | |
Halp! | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait Bind[M[_]] { | |
def fmap[A, B](ma: M[A], f: A => B): M[B] | |
def bind[A, B](ma: M[A], f: A => M[B]): M[B] | |
} | |
trait Monad[M[_]] extends Bind[M]{ | |
def unit[A](a: => A): M[A] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
require 'redis' | |
require 'json' | |
require 'date' | |
class String | |
def &(str) | |
result = '' | |
result.force_encoding("BINARY") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
libraryDependencies ++= Seq( | |
"net.databinder" %% "unfiltered-jetty" % "0.4.1", | |
"net.databinder" %% "unfiltered-filter" % "0.4.1", | |
"net.databinder" %% "unfiltered-json" % "0.4.1" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" pathogen | |
call pathogen#runtime_append_all_bundles() | |
call pathogen#helptags() | |
"""""""""""""""""""""""""""""""" | |
" => General | |
"""""""""""""""""""""""""""""""" | |
" require vim | |
set nocompatible |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f@omoikane:~$ scala | |
Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_31). | |
Type in expressions to have them evaluated. | |
Type :help for more information. | |
scala> :load Workshop/mine/scala-misc/voldemort.scala | |
Loading Workshop/mine/scala-misc/voldemort.scala... | |
defined module Dungeon | |
scala> val nemesis = Dungeon curse "fedesilva" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
require 'tmpdir' | |
class Handlersocket < Formula | |
url 'https://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL/tarball/1.0.6' | |
homepage 'https://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL' | |
md5 '57f5c131e3d29701b01dd92c35ed25fd' | |
MYSQL_VERSION = '5.5.10' |