Skip to content

Instantly share code, notes, and snippets.

➤ cat ~/.config/fish/functions/fish_prompt.fish
function fish_prompt --description 'Write out the prompt'
set -l last_status $status
# User
set_color $fish_color_user
echo -n (whoami)
set_color normal
echo -n '@'
@temas
temas / gist:1121424
Created August 2, 2011 22:45 — forked from ctide/gist:1121392
synclet return structure
{
"config" : {
"knownIds":[1, 2, 3, 4, 5, 6, 7],
"lastKnownId":45
},
"data" : [
{
"obj": {
"dataFromProvider": "isAllUpInHere"
},
@temas
temas / gist:1138409
Created August 10, 2011 22:08
Playing with node-lucene and locker data
--($)-- node twitter-test.js "lockerproject^5 jeremy~"
Searching for lockerproject^5 jeremy~
score(0.5266494750976562) Wed May 18 21:28:18 +0000 2011 - Y U NO @lockerproject DESIGN!
score(0.4608182907104492) Tue Feb 22 22:21:43 +0000 2011 - @lockerproject lunch wisdom http://yfrog.com/gyc32zvj
score(0.3949871063232422) Mon May 02 16:03:32 +0000 2011 - Spent the weekend looking at different data stores to use for @lockerproject collections. Opinions are forming,will blog soon.
score(0.3949871063232422) Fri May 06 21:03:46 +0000 2011 - Fantastic job by @sixwing carrying the brunt of a new website for @lockerproject http://t.co/FlYDCaX
score(0.3949871063232422) Thu May 12 01:01:55 +0000 2011 - @sixwing so many apps are just waiting to be built on @lockerproject & #telehash. It will be game changing.
score(0.3949871063232422) Thu Jun 02 16:06:26 +0000 2011 - Kicking off a weekly tech update blog post for @lockerproject, give it a read http://t.co/2Oif8eA
score(0.32915592193603516) Sat May 07 05:01:25 +0000 2011
@temas
temas / gist:1150646
Created August 17, 2011 02:04
lsearch non vows test
require.paths.push("./Common/node");
var lsearch = require("lsearch");
var lconfig = require("lconfig");
lconfig.load("config.json");
lsearch.setIndexPath("tmp/test.index");
lsearch.setEngine(lsearch.engines.CLucene);
console.log("Going to index");
lsearch.indexType("contact",
{"_id":1234, "name":"Thomas Muldowney", "nickname":"temas", "email":[{"type":"work", "value":"temas@singly.com"}]},
@temas
temas / gist:1201424
Created September 7, 2011 19:09
Migration fail log
7 Sep 14:06:39 - error: [Locker] failed to run migration, bailing hard! null:{ socket:
{ bufferSize: 0,
fd: null,
type: 'tcp4',
allowHalfOpen: false,
_writeImpl: [Function],
_readImpl: [Function],
_shutdownImpl: [Function],
_readWatcher: null,
destroyed: true,
✓ OK » 231 honored (28.895s)
Reader setup
Reader setup
Reader setup
Reader setup
Reader setup
Reader setup
Reader setup
Reader setup
--( (integrationtests)$)-- bundle install
Using mime-types (1.17.2)
Using nokogiri (1.5.0)
Using rack (1.3.5)
Using rack-test (0.6.1)
Using ffi (1.0.9)
Using childprocess (0.2.2)
Using json_pure (1.6.1)
Using rubyzip (0.9.4)
Using selenium-webdriver (2.10.0)
Reader setup
Reader setup
Reader setup
Reader setup
Reader setup
Reader setup
Reader setup
Reader setup
Reader setup
Reader setup
#!/bin/sh
if [ "$TRAVIS" != "true" ]; then
echo "This script is for configuring the Travis-CI environment only."
exit 1
fi
ldconfig -v | grep clucene
if [ "$?" == "1" ]; then
sudo apt-get install -qy cmake
#!/bin/sh
if [ "$TRAVIS" != "true" ]; then
echo "This script is for configuring the Travis-CI environment only."
exit 1
fi
ldconfig -v | grep clucene
if [ "$?" == "1" ]; then
sudo apt-get install -qy cmake