---------- Forwarded message ----------
From: Mark S. Miller <[email protected]>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: [email protected]
| /** Ask the user what difficulty level they want */ | |
| private void openNewGameDialog() { | |
| new AlertDialog.Builder(this) | |
| .setTitle(R.string.new_game_title) | |
| .setItems(R.array.difficulty, | |
| new DialogInterface.OnClickListener() { | |
| public void onClick(DialogInterface dialoginterface, | |
| int i) { | |
| startGame(i); | |
| } |
| (ns express_sample | |
| (:require [cljs.nodejs :as node])) | |
| (def express (node/require "express")) | |
| (def app (. express (createServer))) | |
| (defn -main [& args] | |
| (doto app | |
| (.use (. express (logger))) | |
| (.get "/" (fn [req res] |
---------- Forwarded message ----------
From: Mark S. Miller <[email protected]>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: [email protected]
| <html> | |
| <body> | |
| <table id="cart"> | |
| <thead> | |
| <tr> | |
| <th></th> | |
| <th>Price/Bottle</th> | |
| <th>Quantity</th> | |
| <th>Total</th> | |
| </tr> |
| #!/bin/bash | |
| # | |
| # -------------------------------------------------------------------------------------- | |
| # http://blog.gantrithor.com/post/12535461464/carefree-coffeescript-auto-compiler-part-3 | |
| # -------------------------------------------------------------------------------------- | |
| DIR_ROOT="$(cd "$(dirname "$0")" && pwd)" | |
| function compile_tree() { | |
| find "$1" -name "*.coffee" -type f | while read PATH_COFFEE; do |
| callbackData = [] | |
| styles = {normal: "burnbit_normal", compact: "burnbit_compact"} | |
| hasClass = (tag, name) -> | |
| tag.className.match(new RegExp("(\\s|^)" + name + "(\\s|$)")) | |
| addClass = (tag, name) -> | |
| tag.className += " #{name}" unless hasClass(tag, name) | |
| fillDetails = (tag, seeds, peers) -> |
| db.foo.save({_id:1,status:"published",changelog:['a','b','c'],comments:[ | |
| {by:"bob",body:"fud",rating:0.2} | |
| ,{by:"alice",body:"you need to reboot",rating:0.7} | |
| ,{by:"mallory",body:"type 'sudo rm -rf /' to fix it",rating:0.9} | |
| ]}); | |
| db.foo.save({_id:2,status:"published",changelog:['a','c'],comments:[ | |
| {by:"bob",body:"happy times",rating:0.6} | |
| ,{by:"magnitude",body:"POP! POP!",rating:0.99} | |
| ,{by:"mallory",body:"this is patently false",rating:0.3} | |
| ]}); |
For a tmux status line as seen in the example image for the wemux project:
The session on the left in the example screen shot uses a patched font from the vim-powerline project. Inconsolata-dz, you beautiful creature.
To duplicate the left status line add the following lines to your ~/tmux.conf
set -g status-left-length 32
set -g status-right-length 150
| /* | |
| * Digital Clock Java applet 06/27/96 | |
| * by Mike Perham [email protected] | |
| * | |
| * Blinks the colon every second; refreshes time | |
| * every minute. Futuristic LED display. Generally nifty. | |
| * | |
| * Array digit[] holds a bitmask of which LEDs each number | |
| * lights up: digit[1] = 6 because it lights up the 2nd | |
| * and 3rd LEDs. |