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
/*global sforce:true */ | |
(function() { | |
function loadScript(url, callback) { | |
var script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.src = url; | |
if (callback) { | |
script.onload = callback; | |
script.onreadystatechange = function() { |
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
TODO: | |
- edit /opt/statsd/local.js | |
- correct the graphite host to localhost | |
- if desired, put 'debug: true' in there | |
- make the box accessible via the hostname 'graphite' | |
- patch graphite, like described in https://answers.launchpad.net/graphite/+question/152851 |
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
(ns friedman) | |
;; Inspired by ``A Grammar for a Subset of English'', PAIP by Norvig pp. 35-36 | |
(defn one-of [lst] | |
(nth lst (rand-int (count lst)))) | |
(defn common-occupation [] | |
(one-of '("barber" "cab driver" "teacher" "fisherman" "doctor"))) |
NewerOlder