CoffeeScript 1.7 is shaping up to be a pretty kick-ass release with significant improvements. Here are the ones I'm most excited about, in order of my own excitement.
Years of being wished for, finally granted!
CoffeeScript 1.7 is shaping up to be a pretty kick-ass release with significant improvements. Here are the ones I'm most excited about, in order of my own excitement.
Years of being wished for, finally granted!
<p style="text-align: center">Click Start and begin speaking</p> | |
<canvas id="canvas" width="800" height="256" ></canvas> | |
<p id="controls"> | |
<input type="button" id="start_button" value="Start"> | |
| |
<input type="button" id="stop_button" value="Stop"> | |
</p> | |
<!-- ----------------------------------------------------- --> |
require 'json' | |
require 'set' | |
class ProfileConverter | |
def initialize(profile, io=$stdout, time_threshold=0.01) | |
@profile = profile | |
@io = io | |
@time_threshold = time_threshold | |
end |
#!/usr/bin/env ruby | |
require 'open3' | |
# Returns true if all files are EOF | |
# | |
def all_eof(files) | |
files.find { |f| !f.eof }.nil? | |
end |
function draw(ctx, f, width, height) { | |
var y; | |
var ch = height/2; | |
var cw = width/2; | |
ctx.beginPath(); | |
ctx.moveTo(0, ch-f(-width)); | |
for (var x=-width+1; x<width; x++) { | |
y = ch-f(x); | |
ctx.lineTo(x+cw, y); | |
} |
Make sure that you have the latest version of Xcode installed from the Mac App Store, and that you have the command line tools installed. To install the command line tools, open Xcode, click Xcode->Preferences->Downloads->Command Line Tools
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
scala> val x = null.asInstanceOf[Int] | |
x: Int = 0 | |
scala> Option(x) | |
res1: Option[Int] = Some(0) | |
scala> Option(null.asInstanceOf[Int]) | |
res2: Option[Int] = None |
function pomodoro { | |
case $1 in | |
start ) | |
echo 'terminal-notifier -title "🍅 Pomodoro Done" -message "Starting short break…"' | at + 25 minutes &> /dev/null | |
;; | |
break ) | |
echo 'terminal-notifier -title "⌛ Short Break Done" -message "Start your next Pomodoro."' | at + 5 minutes &> /dev/null | |
;; | |
esac |
#!/bin/sh | |
# | |
# Adam Sharp | |
# Aug 21, 2013 | |
# | |
# Usage: Add it to your PATH and `git remove-submodule path/to/submodule`. | |
# | |
# Does the inverse of `git submodule add`: | |
# 1) `deinit` the submodule | |
# 2) Remove the submodule from the index and working directory |
(defn selector | |
"Creates a selection process on list-el, a HTML list element. | |
Parameters | |
in: | |
a channel that should produce a number for the item to | |
highlight, :out to remove all highlighting, and :select to | |
signal user selection. | |
list-el: | |
a HTML list element. |