The following steps facilitate remote pairing using:
- tmux which allows terminal sessions to be attached to different terminals, and
- ngrok which provides secure tunnels to your localhost
OS X: brew install tmux
| #include <Cocoa/Cocoa.h> | |
| #include <mono/metadata/appdomain.h> | |
| #include <mono/metadata/assembly.h> | |
| #include <mono/metadata/image.h> | |
| #include <mono/metadata/class.h> | |
| #include <mono/metadata/object.h> | |
| // http://www.jerrodputman.com/2010/01/10/the-unityobjective-c-divide/ | |
| MonoMethod *update_method; |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| require 'native' | |
| doc = Native(`document`) | |
| puts %Q[Object instance of #{doc.body.class} for "#{doc.title}"] | |
| puts %Q[Body DOM element class: "#{doc.body.className}"] | |
| # => Object instance of Native::Object for "Try Opal: Browser compiler and REPL" | |
| # => Body DOM element class: "try try_index" |
| *Problemas | |
| - Ensino x Aprendizado | |
| -- Faculdade: | |
| -- Os alunos não gostam de computação, não veem perspectivas | |
| -- Não sabe que caminho seguir (Area muito ampla) | |
| - As pessoas não compartilham os códigos | |
| - Não sabem compartilhar, ou contribuir com projetos | |
| - Falta de mão na massa | |
| - GURU - não desperta interesse em novas pessoas |
| source 'http://rubygems.org' | |
| gem 'mechanize' | |
| gem 'typhoeus' | |
| gem 'rmagick' | |
| gem 'prawn' | |
| gem 'fastimage' |
| # Git pre-commit hook to check all staged Ruby (*.rb/haml/coffee) files | |
| # for Pry binding references | |
| # | |
| # Installation | |
| # | |
| # ln -s /path/to/pre-commit.sh /path/to/project/.git/hooks/pre-commit | |
| # | |
| # Based on | |
| # | |
| # http://codeinthehole.com/writing/tips-for-using-a-git-pre-commit-hook/ |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
| sudo su postgres | |
| psql | |
| update pg_database set datistemplate=false where datname='template1'; | |
| drop database Template1; | |
| create database template1 with owner=postgres encoding='UTF-8' | |
| lc_collate='en_US.utf8' lc_ctype='en_US.utf8' template template0; | |
| update pg_database set datistemplate=true where datname='template1'; |