Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@damionvega
damionvega / vfl-for-loop.swift
Last active October 19, 2015 07:37
iOS Swift Auto layout - Visual Format Language - for-loop adding multiple constraints
// Resulting code: http://cl.ly/image/0z0H2C230H3R
// the superview, `self.statsView`, just a UIView in my storyboard with a
// trailing/leading constraint of 6, bottom/top constraint of 12 and 60pt height
var redView: UIView!
var blueView: UIView!
var yellowView: UIView!
redView = UIView()
blueView = UIView()
@damionvega
damionvega / gulpfile.js
Last active August 29, 2015 14:09
Gulp + browserify + watchify
var gulp = require('gulp')
var $ = require('gulp-load-plugins')()
var watching
gulp.task('server', function() {
return gulp.src('dist')
.pipe($.webserver({
livereload: true,
open: true,
@damionvega
damionvega / gist:5bd4fab1244d56c079b6
Last active August 29, 2015 14:06
JS Bin Editor Settings
jsbin.settings.font = 13
jsbin.settings.addons.vim = true
jsbin.settings.editor.theme = "ambiance"
jsbin.settings.editor.indentUnit = 2
jsbin.settings.editor.tabSize = 2
jsbin.settings.editor.indentWithTabs = true
jsbin.settings.editor.smartIndent = true
jsbin.settings.editor.autoClearEmptyLines = true
jsbin.settings.editor.lineWrapping = true
jsbin.settings.editor.lineNumbers = true