Setting up Dokku with DigitalOcean and Namecheap
..or how I made my own heroku in a few hours for $3.98.
| [alias] | |
| fixup = !sh -c 'REV=$(git rev-parse $1) && git commit --fixup $@ && git rebase -i --autosquash $REV^' - | |
| squash = !sh -c 'REV=$(git rev-parse $1) && git commit --squash $@ && git rebase -i --autosquash $REV^' - |
| # Requires ImageMagick | |
| # Converting the source from JPEG to PNG - if necessary | |
| convert my_src_image.jpg my_src_image.png | |
| # Option A | |
| # - Requires a temporary intermediate file | |
| # - Drill more than 10 might result in poor results |
| assets | |
| business | |
| accounts receivable | |
| bank | |
| personal | |
| accounts receivable | |
| bank | |
| cash | |
| gifts | |
| online |
(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.
| // | |
| // RBResizer.swift | |
| // Locker | |
| // | |
| // Created by Hampton Catlin on 6/20/14. | |
| // Copyright (c) 2014 rarebit. All rights reserved. | |
| // | |
| import UIKit |
| // | |
| // CollectionViewDataSource.swift | |
| // Khan Academy | |
| // | |
| // Created by Andy Matuschak on 10/14/14. | |
| // Copyright (c) 2014 Khan Academy. All rights reserved. | |
| // | |
| import UIKit |
| var mongoose = require('mongoose'); | |
| mongoose.connect('mongodb://localhost/foobar'); | |
| // bootstrap mongoose, because syntax. | |
| mongoose.createModel = function(name, options) { | |
| var schema = new mongoose.Schema(options.schema); | |
| for (key in options.self) { | |
| if (typeof options.self[key] !== 'function') continue; | |
| schema.statics[key] = options.self[key]; | |
| } |