Create a Meteor app and put the client_/server_ files in a client/server directories. Also, create a public dir to save the uploaded files.
This file contains 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
// Module pattern test | |
function show(string) {console.log(string);} | |
function MyMod (){ | |
// constructor | |
var c = 0; | |
function priv(){ |
Create a Meteor app and put the client_/server_ files in a client/server directories. Also, create a public dir to save the uploaded files.
This file contains 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
# essential | |
sudo apt-get install git-core sudo vim curl tree screen zsh smartmontools apparmor-utils xsel ssmtp mailutils | |
# cli | |
sudo apt-get install espeak ethtool powerwake sshfs | |
# gui | |
sudo apt-get install dconf-tools xbacklight | |
This file contains 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
#!/bin/bash | |
# Filename catc | |
# Description print files to stdout with syntax highlighting (using python-pygments) | |
# Author Drew Fradette <http://www.github.com/drewfradette> | |
# Version 0.6 | |
# Last Updated 2012-09-26 | |
# Usage catc file.sh | |
# bash_version 4.2.10(1)-release | |
####################################################### |
This file contains 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
class TaxCode | |
GENERATORS = { | |
:us => lambda { |id| "US-#{id}" }, | |
:br => lambda { |id| "#{id + 9}-BRA" } | |
} | |
def self.generate(code, id) | |
gen = GENERATORS[code] || (raise ArgumentError "No generator for country #{code}") | |
gen.call(id) | |
end |
This file contains 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
#!/bin/sh | |
set -u | |
function error () { printf >&2 "%s\n\nPlease see README.md for build instructions.\n" "$1"; exit; } | |
# ================================================= | |
# = Fallback build directory and signing identity = | |
# ================================================= | |
: ${builddir:=$HOME/build/TextMate} | |
: ${identity:=-} |
This file contains 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
➜ myapp git:(master) heroku pg:psql | |
psql (9.1.3, server 9.1.4) | |
SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256) | |
Type "help" for help. | |
d7342gd34r=> | |
d7342gd34r=> select count(*) from coords; | |
count | |
-------- | |
188980 |
This file contains 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
# | |
# OpenSSL example configuration file. | |
# This is mostly being used for generation of certificate requests. | |
# | |
# This definition stops the following lines choking if HOME isn't | |
# defined. | |
HOME = . | |
RANDFILE = $ENV::HOME/.rnd |