This file contains 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
scala> def gt[A](x : A)(implicit m:Manifest[A]) = m | |
gt: [A](x: A)(implicit m: scala.reflect.Manifest[A])scala.reflect.Manifest[A] |
This file contains 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
use netselect to update your /etc/apt/sources.list file | |
apt-get install netselect | |
apt-get install netselect-apt | |
sudo netselect-apt -n -s stable |
This file contains 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
(into {} (System/getProperties)) |
This file contains 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
def subtract(i: Int, j: Int): Int = { | |
require(i > 4 && j > 4) | |
(i - j).ensuring(_ > 4) | |
} |
This file contains 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
osascript -e 'tell app "TextMate" to reload bundles' |
This file contains 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
LoadModule passenger_module /Applications/MAMP/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/ext/apache2/mod_passenger.so | |
PassengerRoot /Applications/MAMP/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15 | |
PassengerRuby /Applications/MAMP/ruby-enterprise-1.8.7-2010.02/bin/passenger_ruby | |
PassengerTempDir /Applications/MAMP/tmp/passenger | |
# PassengerUploadBufferDir /Applications/MAMP/tmp/passenger | |
PassengerLogLevel 3 | |
# make a symlink from docroot to the public folder in your rails app | |
# cd /Applications/MAMP/htdoc; ln -s /wherever/your/appname/public appname | |
<VirtualHost *:8443> |
This file contains 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
/* vim: set expandtab sw=4 ts=4 sts=4: */ |
This file contains 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
<domain type='kvm'> | |
<name>encore-dev</name> | |
<uuid>c8bbf2df-c68b-63d9-6cad-cec7aa27b536</uuid> | |
<memory>4194304</memory> | |
<currentMemory>4194304</currentMemory> | |
<vcpu>2</vcpu> | |
<os> | |
<type arch='x86_64' machine='pc'>hvm</type> | |
<boot dev='hd'/> | |
</os> |
This file contains 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
SCRIPT="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")" | |
BASEDIR=$(cd `dirname $0` && pwd) | |
BASEDIRNAME=$(basename $BASEDIR | tr \\n \ | sed -e 's/ $//' ) | |
# BASEDIRNAME can now be used e.g. to create a tarball | |
tar cvzf "${BASEDIRNAME}.tgz" target/* | |
This file contains 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
From a48ffde5191e65e4bcbb5ccf65be27e2ea32026c Mon Sep 17 00:00:00 2001 | |
From: Amitava Shee <[email protected]> | |
Date: Mon, 14 Feb 2011 14:49:34 -0500 | |
Subject: [PATCH] Inference Error | |
--- | |
dubious.gemspec | 2 +- | |
lib/dubious/cli.rb | 1 + | |
2 files changed, 2 insertions(+), 1 deletions(-) |
OlderNewer