JSConf.eu opening song - JavaScript Will Listen - Bella Morningstar
- Plask - Dean McNamee
- Plask
| var lib = require("./manifest.js"); | |
| lib.mkmanifest({ | |
| filename : "cache" | |
| ,path : "../coffee" | |
| ,version : "02" | |
| ,exclude : ['/.DS_Store', '/.htaccess', '/cache.manifest'] | |
| /* | |
| ,network : ['/connect.php','/read.php'] | |
| ,fallback : ['/offline.html'] |
| ;; This are setting for nice tabbar items | |
| ;; to have an idea of what it looks like http://imgur.com/b0SNN | |
| ;; inspired by Amit Patel screenshot http://www.emacswiki.org/pics/static/NyanModeWithCustomBackground.png | |
| ;; Tabbar | |
| (require 'tabbar) | |
| ;; Tabbar settings | |
| (set-face-attribute | |
| 'tabbar-default nil | |
| :background "gray20" |
| require 'zmq' | |
| context = ZMQ::Context.new | |
| pub = context.socket ZMQ::PUB | |
| pub.setsockopt ZMQ::IDENTITY, 'ping-pinger' | |
| pub.bind 'tcp://*:5555' | |
| i=0 | |
| loop do | |
| pub.send "ping pinger #{i+=1}" ; sleep 1 | |
| end |
| BREW_HOME=$HOME/.homebrew | |
| $ brew install libxml2 | |
| $ brew link libxml2 | |
| $ brew install https://github.com/adamv/homebrew-alt/raw/master/duplicates/libxslt.rb | |
| $ brew link libxslt | |
| $ brew install libiconv | |
| $ brew link libiconv | |
| $ gem install nokogiri -- --with-xml2-dir=$BREW_HOME/Cellar/libxml2/2.7.8 --with-xslt-dir=$BREW_HOME/Cellar/libxslt/1.1.26 --with-iconv-dir=$BREW_HOME/Cellar/libiconv/1.13.1/ |
| # polling interval (in seconds) | |
| set daemon 60 | |
| set logfile <%= your_path %>/log/monit.log | |
| set pidfile <%= your_path %>/tmp/pids/monit.pid | |
| set statefile <%= your_path %>/tmp/monit/monit.state | |
| set mailserver localhost | |
| set mail-format { from: sender@yourdomain.com } | |
| set alert recipient@yourdomain.com |
| !!! 5 | |
| html(class='no-js') | |
| head | |
| meta(charset='utf-8') | |
| meta(http-equiv='X-UA-Compatible', content='IE=edge') | |
| title | |
| meta(name='description', content='') | |
| meta(name='viewport', content='width=device-width, initial-scale=1') |
| #!/bin/bash | |
| # have to hand install this one sorry http://www.cmake.org/files/v2.8/cmake-2.8.3-Darwin-universal.tar.gz | |
| if [ "$1" == "cleanup" ]; then | |
| echo "Cleaning up old luajit install" | |
| cd /usr/local/share | |
| sudo rm -rf lua luajit-2.0.0-beta6 |
| function find(root, obj) { | |
| var seen = []; | |
| function search(root, name, depth) { | |
| if (root === obj) { | |
| console.log(name); | |
| return; | |
| } | |
| if (!depth) { return; } | |
| if (seen.indexOf(root) >= 0) { return; } | |
| if (typeof root !== "object") { return; } |