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
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/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
# 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
// 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
source "https://rubygems.org" | |
gem 'sinatra' |
Quale Linux?
Distributor ID: Ubuntu
Description: Ubuntu 12.10
Release: 12.10
Codename: quantal
env
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
wget https://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-i686.tar.bz2 # currently latest | |
tar xjf phantomjs-1.9.1-linux-i686.tar.bz2 | |
cd /usr/local/share/ | |
ln -s phantomjs-1.9.1-linux-i686 phantomjs | |
sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/bin/phantomjs |