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
$ irb | |
irb(main):001:0> that | |
NameError: undefined local variable or method `that' for main:Object | |
from (irb):1 | |
from /Users/guiman/.rbenv/versions/2.1.4/bin/irb:11:in `<main>' | |
irb(main):002:0> (true) ? this = "a" : that = "b" | |
=> "a" | |
irb(main):003:0> that | |
=> nil |
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
FROM ruby:2.2 | |
MAINTAINER Alvaro F. Lara <[email protected]> | |
ENV HOME /home/app | |
ENV RAILS_ENV development | |
EXPOSE 8080 | |
RUN useradd -m -s /bin/bash app |
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
require 'mina/bundler' | |
require 'mina/rails' | |
require 'mina/git' | |
require 'mina/rbenv' | |
set :domain, 'your_server' | |
set :user, 'ubuntu' | |
set :deploy_to, '/path/to/app' | |
set :app_path, "#{deploy_to}/#{current_path}" | |
set :repository, 'repo' |
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
require 'mina/git' | |
require 'mina/nginx' | |
set :application, 'your_app_name' | |
set :domain, 'your_server' | |
set :user, 'ubuntu' | |
set :deploy_to, '/location/to/deploy' | |
set :app_path, "#{deploy_to}/#{current_path}" | |
set :repository, 'your_repo' | |
set :branch, 'master' |
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 demo.localhost { | |
server 127.0.0.1:3001; | |
} | |
server { | |
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; | |
server_name demo1.localhost; | |
location / { |
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
### Keybase proof | |
I hereby claim: | |
* I am guiman on github. | |
* I am guiman (https://keybase.io/guiman) on keybase. | |
* I have a public key whose fingerprint is 8547 0C03 E8F5 E653 6A69 5DD7 D450 C55E 104D 5903 | |
To claim this, I am signing this object: |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
# A sample Gemfile | |
source "https://rubygems.org" | |
gem 'data_mapper' | |
gem 'dm-sqlite-adapter' |
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
TMP_DIR="/tmp/installing_rails_4" | |
USER_BIN_DIR="~/bin" | |
curr=`pwd` | |
if [ -d "$TMP_DIR" ]; then | |
rm -rf $TMP_DIR | |
fi | |
mkdir $TMP_DIR | |
cd $TMP_DIR |
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
/* | |
Javascript Active area. | |
----------------------- | |
So this is pretty much what it does, you define areas and this code | |
allows you to verify if your data source is retreiving points | |
in any of the defined areas. | |
*/ |
NewerOlder