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
(ns prototype.web | |
(:require [clojure.contrib.logging :as log] | |
[ring.adapter.jetty :as ring-jetty] | |
[ring.middleware.reload :as ring-reload] | |
[ring.middleware.stacktrace :as ring-stacktrace] | |
[ring.middleware.session :as ring-session] | |
[hiccup.core :as hi])) | |
(defn handler | |
[req] |
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
diff --git a/wscript b/wscript | |
index 3a3df4d..5ec39a5 100644 | |
--- a/wscript | |
+++ b/wscript | |
@@ -28,12 +28,14 @@ def configure(conf): | |
conf.env.append_unique('CXXFLAGS', ["-Wall"]) | |
conf.env.append_unique('CXXFLAGS', Utils.cmd_output(Options.options.mysql_config + ' --include').split()) | |
+ | |
+ # link flags are needed to find the libraries |
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
continuity:node ben$ curl http://npmjs.org/install.sh | sh | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 338 100 338 0 0 1695 0 --:--:-- --:--:-- --:--:-- 6145 | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 572k 100 572k 0 0 236k 0 0:00:02 0:00:02 --:--:-- 409k | |
node cli.js cache clean | |
npm info it worked if it ends with ok | |
npm info using npm@0.2.3-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
map: function(object, fn) { | |
var rv = '' ; | |
// enumerate keys so that we can tell first and last | |
var keys = [] ; | |
for (k in object) keys[keys.length] = k ; | |
// invoke the block with each key/value pair (and first/last) | |
for (var i = 0 ; i < keys.length ; i++) { | |
rv += fn({ |
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
var compile = require('/klout/amphetamine/client/js/external/handlebars.js').compile ; | |
var puts = require('sys').puts ; | |
var source = "<ol>{{#tabs}}<li>{{>a}}</li>{{/tabs}}</ol>"; | |
var a = compile("<a href='{{href}}' {{#map data}}data-{{k}}='{{v}}'{{^last}} {{/last}}{{/map}}>{{content}}</a>") ; | |
var helpers = { | |
map: function(object, fn) { |
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
continuity:~ ben$ mysql_config | |
Usage: /usr/local/mysql/bin/mysql_config [OPTIONS] | |
Options: | |
--cflags [-I/usr/local/mysql/include/mysql -g -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL] | |
--include [-I/usr/local/mysql/include/mysql] | |
--libs [-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm] | |
--libs_r [-L/usr/local/mysql/lib/mysql -lmysqlclient_r -lz -lm] | |
--plugindir [/usr/local/mysql/lib/mysql/plugin] | |
--socket [/tmp/mysql.sock] | |
--port [0] |