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!
# unregister broken GHC packages. Run this a few times to resolve dependency rot in installed packages. | |
# ghc-pkg-clean -f cabal/dev/packages*.conf also works. | |
function ghc-pkg-clean() { | |
for p in `ghc-pkg check $* 2>&1 | grep problems | awk '{print $6}' | sed -e 's/:$//'` | |
do | |
echo unregistering $p; ghc-pkg $* unregister $p | |
done | |
} | |
# remove all installed GHC/cabal packages, leaving ~/.cabal binaries and docs in place. |
(defun scala-beginning-of-defun (&optional arg) | |
(re-search-backward "\\(\\(case\\s*\\)?class\\|def\\)" nil t arg)) | |
(defun scala-end-of-defun (&optional arg) | |
(scala-beginning-of-defun) | |
(goto-char (- (search-forward "{") 1)) | |
(forward-sexp)) | |
(eval-after-load "scala-mode" | |
(add-hook 'scala-mode-hook |
import scala.reflect.api._ | |
import scala.reflect.runtime._ | |
import scala.reflect.runtime.Mirror._ | |
object Pimps{ | |
implicit def pimp(str:String) = new { | |
def test = println("hello") | |
} | |
} |
;; Example implementation of Norvig's Spellchecker in Clojure, | |
;; using core.async | |
;; | |
;; There are probably some bugs in this. | |
;; | |
;; Original problem: https://github.com/ericnormand/spelling-jam | |
;; from Lambda Jam, Chicago, 2013: http://lambdajam.com/ | |
;; | |
;; Clojure core.async introduction: | |
;; http://clojure.com/blog/2013/06/28/clojure-core-async-channels.html |
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!
# assumes you've done a pretty basic 7.4 install, I used http://cdimage.debian.org/debian-cd/7.4.0/amd64/bt-cd/ | |
# add wheezy-backports repo, http://backports.debian.org/Instructions/ | |
sudo sh -c "echo deb http://ftp.us.debian.org/debian wheezy-backports main > /etc/apt/sources.list.d/wheezy-backports.list" | |
sudo apt-get update -y | |
sudo apt-get -t wheezy-backports install linux-image-amd64 -y | |
sudo reboot |
These instructions are based on Mistobaan's gist but expanded and updated to work with the latest tensorflow OSX CUDA PR.
set isdate to (display dialog "When are you traveling?" default answer (current date)'s date string)'s text returned | |
tell date isdate to set travelDate to date (((its month as integer) & "/" & day & "/" & year) as text) | |
set lastOf to {} | |
tell application "OmniOutliner" | |
set theDoc to front document | |
-- Find the When and Context column numbers | |
set contextColumnNum to 0 |
6 PARTITAS (HILARY HAHN, ANTÓN GARCÍA ABRIL) | |
A GOOD TIME (DAVIDO) | |
ABSOLUTE ZERO (BRUCE HORNSBY) | |
AFTER ITS OWN DEATH / WALKING IN A SPIRAL TOWARDS THE HOUSE (NIVHEK) | |
AGORA (FENNESZ) | |
AKRASIA (DJ SPORTS) | |
ALL MIRRORS (ANGEL OLSEN) | |
BASKING IN THE GLOW (OSO OSO) | |
BECOME DESERT (JOHN LUTHER ADAMS) | |
C.1300-C.2000 (JEREMY DENK) |