I waited for years for a Homebrew formula for MOC. I finally found one today, but it didn't work for me. So I decided to try to compile it from source.
Here is a list of requirements, taken directly from the MOC README:
#!/usr/bin/env node | |
/** | |
* Transforms code from old-style requirejs modules into AMD sugared modules. | |
* | |
* define(['dep1','dep2'], function(arg1, arg2) {...}) | |
* | |
* becomes: | |
* | |
* define(function(require) { var arg1 = require('dep1'), arg2 = require('dep2'); ... }); | |
* |
\documentclass[pdftex, 12pt, a4paper, british, final]{article} | |
\usepackage[l2tabu,orthodox]{nag} | |
\usepackage{fixltx2e} | |
\usepackage{babel} | |
\usepackage[strict=true]{csquotes} | |
\usepackage{isodate} | |
\usepackage[T1]{fontenc} | |
\usepackage{lmodern} | |
\usepackage[protrusion=true, expansion=true]{microtype} |
#!/usr/bin/env bash | |
########################################################### | |
# create bootable tails usb-stick https://tails.boum.org/ # | |
# !!! Read the comments !!! CHANGE <diskN> placeholder # | |
########################################################### | |
# get iso | |
wget http://dl.amnesia.boum.org/tails/stable/tails-i386-0.21/tails-i386-0.21.iso |
javascript:(function()%7B(function()%7Bvar%20a%2Cb%2Cc%2Cd%2Ce%2Cf%3Ba%3D%22table%5Bdata-sortable%5D%22%2Cc%3D%2F%5E-%3F%5B%C2%A3%24%C2%A4%5D%3F%5B%5Cd%2C.%5D%2B%25%3F%24%2F%2Cf%3D%2F%5E%5Cs%2B%7C%5Cs%2B%24%2Fg%2Ce%3D%22ontouchstart%22in%20document.documentElement%2Cb%3De%3F%22touchstart%22%3A%22click%22%2Cd%3D%7Binit%3Afunction(b)%7Bvar%20c%2Ce%2Cf%2Cg%2Ch%3Bfor(null%3D%3Db%26%26(b%3D%7B%7D)%2Cnull%3D%3Db.selector%26%26(b.selector%3Da)%2Ce%3Ddocument.querySelectorAll(b.selector)%2Ch%3D%5B%5D%2Cf%3D0%2Cg%3De.length%3Bg%3Ef%3Bf%2B%2B)c%3De%5Bf%5D%2Ch.push(d.initTable(c))%3Breturn%20h%7D%2CinitTable%3Afunction(a)%7Bvar%20b%2Cc%2Ce%2Cf%2Cg%3Bif(1%3D%3D%3Da.tHead.rows.length%26%26%22true%22!%3D%3Da.getAttribute(%22data-sortable-initialized%22))%7Bfor(a.setAttribute(%22data-sortable-initialized%22%2C%22true%22)%2Ce%3Da.querySelectorAll(%22th%22)%2Cb%3Df%3D0%2Cg%3De.length%3Bg%3Ef%3Bb%3D%2B%2Bf)c%3De%5Bb%5D%2C%22false%22!%3D%3Dc.getAttribute(%22data-sortable%22)%26%26d.setupClickableTH(a%2Cc%2Cb)%3Breturn%20a%7D%7D |
;; Very quick hack to use `grasp` for searching js tokens in emacs. | |
;; Uses (compile) so when you get search results you can quickly step through them with (next-error) and (previous-error) | |
;; to install: | |
;; $ npm install -g grasp strip-ansi | |
(defun grasp-current-buffer (arg) | |
(interactive "MGrasp: ") | |
(compile (concat "grasp -H '" arg "' " (buffer-file-name) " | strip-ansi"))) |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
function audioContextCheck() { | |
if (typeof Services.appShell.hiddenDOMWindow.AudioContext !== 'undefined') { | |
return new Services.appShell.hiddenDOMWindow.AudioContext(); | |
} else if (typeof Services.appShell.hiddenDOMWindow.mozAudioContext !== 'undefined') { | |
return new Services.appShell.hiddenDOMWindow.mozAudioContext(); | |
} else { | |
throw new Error('AudioContext not supported'); | |
} | |
} |