Skip to content

Instantly share code, notes, and snippets.

View zolzaya's full-sized avatar

Zolzaya Erdenebaatar zolzaya

View GitHub Profile
@zolzaya
zolzaya / Hello World
Created August 30, 2011 02:00
Hello World!
puts 'Hello World!' # Ruby
System.out.println("Hello World!") # Java
print('Hello World!') # Python
echo 'Hello World!' # PHP
@zolzaya
zolzaya / coffeescript
Created September 3, 2011 14:22
CoffeeScript overview
# CoffeeScript-н бичиглэл
# Assignment:
number = 42
opposite = true
# JavaScript-рүү хөрвүүлсэн байдал
var number = 42;
var opposite = true;
@zolzaya
zolzaya / required_libraries
Created September 5, 2011 01:47
required libraries
sudo apt-get update
# curl: command-line tool for transferring data
sudo apt-get install curl
# git version manager system
sudo apt-get install git-core git-gui git-doc
# posgresql-н сан
sudo apt-get install libpq-dev
# nodejs
sudo apt-get install node
@zolzaya
zolzaya / installing_rvm
Created September 5, 2011 02:14
Installing RVM
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
@zolzaya
zolzaya / .bashrc
Created September 5, 2011 02:20
.bashrc
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
@zolzaya
zolzaya / rvm_pkgs
Created September 5, 2011 02:35
RVM required packages
rvm pkg install readline
rvm pkg install iconv
rvm pkg install zlib
rvm pkg install openssl
rvm pkg install autoconf
@zolzaya
zolzaya / installing_ruby
Created September 5, 2011 02:42
Installing Ruby using RVM
# installing ruby
rvm install 1.9.2
# set default
rvm use --default 1.9.2
@zolzaya
zolzaya / installing_rails3.1
Created September 5, 2011 03:00
Installing Rails 3.1
rvm use 1.9.2@rails31 --create
rvm use 1.9.2@rails31 --default
# installing rails 3.1
gem install rails
@zolzaya
zolzaya / rails_project
Created September 5, 2011 03:16
Creating Rails project
rails new helloworld -d postgresql
@zolzaya
zolzaya / json_example.js
Created September 15, 2011 10:31
JSON example
{
"forename": "Peter"
, "surname": "Membrey"
, "phone_numbers": [
"+852 1234 5678"
, "+44 1234 565 555"
]
}