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
| class Class | |
| def where | |
| "in class Class" | |
| end | |
| end | |
| person = Class.new | |
| puts "person.where: #{person.where}" # => "in class Class" | |
| class << person |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <sys/socket.h> | |
| #include <sys/types.h> | |
| #include <unistd.h> | |
| #include <netinet/in.h> | |
| #include <arpa/inet.h> | |
| #include <string.h> | |
| #include <errno.h> | |
| #include <sys/wait.h> |
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
| #include <stdio.h> | |
| #include <stdlib.h> // for exit | |
| #include <sys/socket.h> // for socket | |
| #include <sys/types.h> | |
| #include <unistd.h> | |
| #include <netinet/in.h> | |
| #include <arpa/inet.h> | |
| #include <string.h> | |
| #include <errno.h> | |
| #include <sys/wait.h> |
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
| upstream thin { | |
| server 127.0.0.1:3000; | |
| } | |
| #server { | |
| # listen 80; | |
| # server_name example.com; | |
| # rewrite ^(.*)$ http://www.example.com$1 permanent; | |
| #} |
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
| deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted | |
| ## Major bug fix updates produced after the final release of the | |
| ## distribution. | |
| deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted | |
| deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted | |
| ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu | |
| ## team. Also, please note that software in universe WILL NOT receive any | |
| ## review or updates from the Ubuntu security team. |
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
| source "https://rubygems.org" | |
| gem 'eventmachine' | |
| #gem 'rubysl-stringio' | |
| gem 'sinatra' | |
| gem 'yajl-ruby', require: 'yajl' | |
| gem 'thin' | |
| gem 'em-websocket', :git=>'https://github.com/igrigorik/em-websocket.git' |
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 update | |
| sudo apt-get -y install \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo add-apt-repository \ | |
| "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
| $(lsb_release -cs) \ | |
| stable" |
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 \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo add-apt-repository \ | |
| "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
| $(lsb_release -cs) \ |
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
| " General | |
| set shell=/bin/zsh | |
| set nocompatible " Disable vi compatibility | |
| set history=256 " Number of things to remember | |
| set autowrite " Writes on make/shell commands | |
| set autoread | |
| "set timeoutlen=250 " Time to wait after ESC (default causes an annoying delay) | |
| set clipboard+=unnamed " Yanks go on clipboard instead | |
| set tags=./tags;$HOME " Walk directory tree up to $HOME looking for tags | |
| noremap <S-t> :! ctags -R --languages=Ruby --exclude=.git --exclude=log --exclude=node_modules -f tags<CR> |