Skip to content

Instantly share code, notes, and snippets.

@chriswessels
chriswessels / Preferences.sublime-settings
Created July 17, 2013 14:04
My Sublime Text 3 User Preferences file.
{
// Makes tabs with modified files more visible
"highlight_modified_tabs": true,
// Set to true to ensure the last line of the file ends in a newline
// character when saving
"ensure_newline_at_eof_on_save": true,
// Set to true to removing trailing white space on save
"trim_trailing_white_space_on_save": true,
#!upstart
description "Leaderboard Upstart"
author "Chris Wessels"
env APP_NAME='leaderboard'
env PORT='2000'
env ROOT_URL='http://www.your-app.com'
env NODE_BIN='/home/meteor/.nvm/v0.8.24/bin/node'
env SCRIPT_FILE="bundle/main.js" # Entry point for the nodejs app
#worker_processes 2;
events {
worker_connections 1024;
}
http {
include mime.types;
gzip on;
@chriswessels
chriswessels / README.md
Created September 12, 2013 16:15
A guide to setting up self-hosted infrastructure for Meteor applications on Ubuntu Server 13.04.

#Meteor and Self-hosted Infrastructure

Meteor is an eye-opening JavaScript framework that runs on both the client and the server, giving developers a revolutionary take on software engineering. If you are not familiar with Meteor, I urge you to visit their website.

##An overview

In this brief gist, I am going to discuss the process of setting up a server (in my case, a VPS) to host Meteor applications.

My experience with Meteor has been brief, however it has not taken much demonstration for me to realise the significance of this stellar framework. Let's jump right in!

http://giant.gfycat.com/BlindPalatableIbis.gif
http://i.imgur.com/sHeSLiy.gif
http://i.imgur.com/4tNORTn.gif
http://i.imgur.com/5vzYDlB.gif
@chriswessels
chriswessels / Sizes.md
Last active August 29, 2015 14:16 — forked from jperl/Sizes.md
Meteor mobile (Cordova) icon and launch screen asset sizes and formats

#Icons

PNGs

Name Size
iphone 60x60
iphone_2x 120x120
iphone_3x 180x180
ipad 76x76

App client-side performance plan

Two pronged approach

  1. Create the illusion of speed
  2. Increase speed

Illusion of speed

Instead of issuing UI feedback after the rendering cycle, we should push feedback into the UI immediately and then begin the rendering cycle. This creates the illusion of speed as the satisfied that their input has been received. Patch UI directly with jQuery (no Tracker invalidations).

Keybase proof

I hereby claim:

  • I am chriswessels on github.
  • I am chriswessels (https://keybase.io/chriswessels) on keybase.
  • I have a public key ASCEyuVv-dDPgns6KA3sEVNeZhXLyB_oJK_Zn_KA3MGGygo

To claim this, I am signing this object: