(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.
(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.
// http://james.padolsey.com/snippets/cross-domain-requests-with-jquery/ | |
// enableCORS(); | |
var enableCORS = function() { | |
jQuery.ajax = (function(_ajax){ | |
var api = 'http://query.yahooapis.com/v1/public/yql', | |
query = 'select * from html where url="{URL}"'; | |
return function(o) { | |
var q = query.replace('{URL}', o.url); | |
o.url = api; | |
o.dataType = 'json'; |
var app = require('express')(); | |
var puzzle = require('./flipboard/maze'); | |
app.get('/maze/new', puzzle.init); | |
app.get('/maze/update/:id', puzzle.update); | |
app.listen(3000, 'localhost'); |
ðə 23038047 | |
ə 18735224 | |
ˈtu 12418461 | |
ˈænd 11260533 | |
ˈʌv 10968008 | |
ɪn 10738928 | |
li 5689929 | |
ˈðæt 5416929 | |
ˈaɪ 4683241 | |
ˈfɔr 4678692 |
for file in <DIR>/*.ogg; do | |
dest="converted/${file[@]/%ogg/mp3}" | |
ffmpeg -hide_banner -i "$file" -qscale:a 4 -acodec libmp3lame $dest | |
done |
(function($) { | |
if (!$ || typeof $.extend !== 'function') { | |
console.info("No jQuery found. Plugin did not mount."); | |
return; | |
} | |
var _cache = {}; | |
/** |
# 2 represents stderr | |
# 2> redirects stderr (to /dev/null mutes error output) | |
# || runs the second command only if the first one fails | |
alias gcm='git checkout maybe 2> /dev/null || git checkout master' |
// Add full screen wrapper | |
.box { | |
top: 50%; | |
left: 50%; | |
margin: 0; | |
position: absolute; | |
transform: translate(-50%, -50%); | |
} |
var element = $('#drop-area')[0]; | |
var callback = function onFileDrop() { | |
var filenames = event.target.result; | |
}; | |
function droppable(element, callback) { | |
element.addEventListener('dragover', function onDrag(event) { | |
event.stopPropagation(); | |
event.preventDefault(); |