Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
var browserify = require('browserify'); | |
var watchify = require('watchify'); | |
var gutil = require('gulp-util'); | |
var fs = require('fs') | |
var files = { | |
js: { | |
src: 'path to src', | |
dst: 'path to dst' | |
} |
/* | |
Swift Programming Language Guide | |
"A Swift Tour" Solutions | |
https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTour.html#//apple_ref/doc/uid/TP40014097-CH2-XID_1 | |
These are the solutions to all the "experiments" in the pre-release Swift Programming Guide | |
(released on the same day Apple announced Swift). A couple of things worth noting: | |
1. Swift syntax, e.g. array declarations, has changed since I releasd these. So this code will | |
probably cause some errors when you paste it into a playground. Should be easy enough to fix |
// ABC - a generic, native JS (A)scii(B)inary(C)onverter. | |
// (c) 2013 Stephan Schmitz <eyecatchup@gmail.com> | |
// License: MIT, http://eyecatchup.mit-license.org | |
// URL: https://gist.github.com/eyecatchup/6742657 | |
var ABC = { | |
toAscii: function(bin) { | |
return bin.replace(/\s*[01]{8}\s*/g, function(bin) { | |
return String.fromCharCode(parseInt(bin, 2)) | |
}) | |
}, |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.