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
{ | |
"_id": "16082da4d4881adbdf6548012b000848", | |
"_rev": "1-aeed80105d238d26d5ba3685adbd7b6b", | |
"collection": "things", | |
"name": "Aardvark" | |
} |
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
{ | |
"foo" : "bar", | |
"baz" : "qux" | |
} |
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
/* Hierarchical PubSub for Extjs * Ext.ux.Sprocket.PubSub | |
* Version: 2.0 | |
* | |
* Copyright (c) 2008-2009 - David Davis, All Rights Reserved | |
* [email protected] | |
* http://xant.us/ | |
* | |
* License: BSD | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: |
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
type message = {author: string | |
; text: string} | |
room = Network.cloud("room"): Network.network(message) | |
user_update(x: message) = | |
line = <div class="line"> | |
<div class="user">{x.author}:</div> | |
<div class="message">{x.text}</div> | |
</div> |
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
var guid = function(){ | |
return 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'.replace(/[x]/g, function(c) { | |
var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8); | |
return v.toString(16); | |
}).toUpperCase(); | |
}; | |
console.log(guid()); |
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
# Note that *.coffee must be added to nodemon-ignore file | |
(coffee --compile --watch .&); nodemon app.js |
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
development: &global_settings | |
database: textual_development | |
host: 127.0.0.1 | |
port: 27017 | |
test: | |
database: textual_test | |
<<: *global_settings | |
production: |
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
#‘Twere installing Astrotrain, needed to update do_msql gem but receiving this error: | |
#Error installing do_mysql | |
#it needs some configuration option: | |
sudo gem install do_mysql --version='0.9.11' -- --with-mysql-config=/usr/local/mysql/bin/mysql_config |
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
#Find which version of Erlang you want: http://erlang.org/download.html | |
sudo apt-get build-dep erlang | |
sudo apt-get install java-gcj-compat java-gcj-compat-dev | |
wget http://erlang.org/download/otp_src_R13A.tar.gz | |
tar zxvf otp_src_R13A.tar.gz | |
cd otp_src_R13A | |
./configure | |
make && sudo make install | |
erl | |
#Eshell V5.6.5 (abort with ^G) |
NewerOlder