This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #if arch(i386) || arch(x86_64) | |
| let documentsPath = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0] as! NSString | |
| NSLog("Document Path: %@", documentsPath) | |
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [youtube url="http://www.youtube.com/watch?v=07ds8iv1XPM" width="480" height=“320"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Router with no optoins | |
| SiteRouter = new Router(); | |
| SiteRouter.route('/', {name: 'site.index'}); | |
| SiteRouter.route('/page/:pageId', { | |
| name: 'site.page', // automatically looks for a template named "site.page" and loads it | |
| subs: Meteor.subscribe('pageById', this.params.pageId) | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| heroku config:add METEOR_SETTINGS="$(cat settings.json)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| title: My First Post | |
| date: 2014-04-15 | |
| tags: life, photos | |
| type: post | |
| This is my first post! Hooray! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var os = require('os'); | |
| var cluster = require('cluster'); | |
| var zmq = require('zmq'); | |
| if(cluster.isMaster) { | |
| var cpuCount = os.cpus().length; | |
| for(var i = 0; i < cpuCount; i++) cluster.fork(); | |
| } else { | |
| var socket = zmq.socket('pull') | |
| socket.identity = 'consumer' + process.pid; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get update | |
| sudo apt-get install libxml2 | |
| sudo apt-get install libxslt1.1 | |
| sudo apt-get install libxml2-dev | |
| sudo apt-get install libxslt1-dev | |
| sudo apt-get install python-libxml2 | |
| sudo apt-get install python-libxslt1 | |
| sudo apt-get install python-dev | |
| sudo apt-get install python-setuptools |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title> | |
| {% if is_home %} | |
| {{ site.author }} | |
| {% elif is_post %} | |
| {{ post.title }} | |
| {% elif is_link %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [codepen url="http://codepen.io/brandonb927/pen/hkBsd" height="500" type="result"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [aboutme url="http://about.me/gavinvickery"] |