Skip to content

Instantly share code, notes, and snippets.

@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
@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 / 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()
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@damionvega
damionvega / gist:b95003522814eb8224f2
Last active February 17, 2016 18:59
How much should a framework creator charge for a tutorial video set?

#Preface I'll start this by saying I'm not a framework developer. In fact, I have little to no experience in open source software. If you asked me to recreate Lo-Dash I would deliver something laughable, surely. I'm just a guy who enjoys learning & building things, am always looking for better ways to build them and I've grown to enjoy writing JavaScript on the front and back end along my journey. It's a happy place to be.

Now, with this said, I'm sure there are factors I'm not taking into account when I think about the cash value of a video tutorial set- I'm merely going off of what I've seen and paid for in the past. It could be that I'm thinking about it all wrong, in which case I will see to rectify this situation.

#Initial seeking When I think about learning a new framework I first look through the docs and the github issues to see what's to be expected. Typically there's a learning curve which involves a week or two of 'getting into the mindset' to how things are done with that particular framework, s

import UIKit
protocol YelpRequestDelegate {
func getYelpData() -> AnyObject
func processYelpData(data: NSData) -> NSData
}
class YelpAPI {
var delegate: YelpRequestDelegate?
@damionvega
damionvega / install-iojs-in-10s.sh
Last active September 15, 2015 02:05 — forked from izolate/install-iojs-in-10s.sh
Install io.js on Ubuntu in 10 seconds (no nvm)
IOJS_VERSION=v0.0.0
IOJS_DIR=$HOME/.iojs
iojs_install() {
iojs_setup
iojs_download
iojs_assemble
iojs_teardown
}
@damionvega
damionvega / FeedTableViewCell.swift
Last active January 20, 2016 05:13
iOS 9 / Swift Custom Dynamic TableViewCell height
//
// FeedTableViewCell.swift
// Created by Damion Nabarrete on 1/18/16.
//
import UIKit
import PureLayout
class FeedTableViewCell: UITableViewCell {
@damionvega
damionvega / .editorconfig
Created March 9, 2016 04:08
Editor config
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@damionvega
damionvega / settings.json
Last active February 6, 2019 21:41
VSCode settings
{
"window.zoomLevel": 0,
"bracketPairColorizer.consecutivePairColors": [
"()",
"[]",
"{}",
["Orange", "Orchid", "LightSkyBlue"],
"Red"
],
"breadcrumbs.enabled": true,