A dynamic, expressive, powerful language compiling to CSS.
SLIDE:
tj holowaychuk
| 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} | |
| ]}); |
| 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) -> |
| #!/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 |
| <html> | |
| <body> | |
| <table id="cart"> | |
| <thead> | |
| <tr> | |
| <th></th> | |
| <th>Price/Bottle</th> | |
| <th>Quantity</th> | |
| <th>Total</th> | |
| </tr> |
---------- 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]
| (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] |
| /** 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); | |
| } |
| server.all('/admin/content/add_article',function(req,res) | |
| { | |
| server.form('post',req,res,function(form) { | |
| form.required('title') | |
| form.optional('tags') | |
| form.required('slug') | |
| form.required('body') | |
| form.valid(function(form) { | |
| res.send('Creating blog post titled : ' + form.values.title) |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'bundler' | |
| Bundler.require(:default) | |
| require 'fileutils' | |
| include FileUtils | |
| # Delete any |