- CLI
- cd
- pwd
- rm
- git
- github
- fronetend
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
Plug 'mattn/gist-vim' | |
" gist | |
if has("mac") | |
let g:gist_clip_command = 'pbcopy' | |
elseif has("unix") | |
let g:gist_clip_command = 'xclip -selection clipboard' | |
endif | |
let g:gist_detect_filetype = 1 |
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
RSpec.describe UserController, type: :controller do | |
include ControllerSpecHelper | |
describe '#create' do | |
before { sign_in } | |
it 'delegates to the correct endpoint' do | |
attributes = { name: 'name', email: 'the-email' } | |
expect_controller_to_perform_with(attributes: attributes.stringify_keys) |
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
# Single responsibility | |
# Creates a DB connection | |
class UserRegistration | |
EMAIL_REGEXP = /some regexp/ | |
def initialize | |
@connection = Database.new(username: 'root', password: '123', database: 'my_app') | |
end | |
def perform(params) |
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 strict'; | |
/** global: google */ | |
// https://developers.google.com/maps/documentation/javascript/examples/polygon-hole | |
// https://developers.google.com/maps/documentation/javascript/examples/polygon-arrays | |
// https://developers.google.com/maps/documentation/javascript/examples/control-custom | |
// https://gist.github.com/christophercliff/1380958 | |
class TerritoryMap { |
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 'pair/version' | |
require 'uri' | |
require 'json' | |
require 'net/http' | |
require 'base64' | |
class CommandRunner | |
def run(command) | |
`#{command}` | |
end |
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
#!/usr/bin/env bash | |
action=$1 | |
user=$2 | |
if [ $action == 'add' ]; then | |
gh-auth add --users=${user} --command="/usr/local/bin/tmux attach" | |
elif [ $action == 'remove' ]; then | |
gh-auth remove --users=${user} | |
else |
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 'rake' | |
require 'rake/tasklib' | |
desc 'oo stuff' | |
task 'stuff' do | |
end | |
class MyTask < Rake::TaskLib | |
attr_reader :name |
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
Palavra de Deus guiava os representantes dele. A Bíblia chama a Lei que Deus deu a Israel de “Lei de Moisés”. (1 Reis 2:3) Mas a Bíblia deixa claro que foi Jeová quem deu a Lei a Moisés, tanto que o próprio Moisés tinha que obedecer a ela. (2 Crô. 34:14) Por exemplo, depois de receber instruções de Jeová sobre como montar o tabernáculo, “Moisés fez tudo o que Jeová lhe havia ordenado. Fez exatamente assim”. — Êxo. 40:1-16. |
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
XING_CONSUMER_KEY=6cb979e8c309106a2d7f | |
XING_CONSUMER_SECRET=56949ef0e19410424d5acb846cbd9ac2f38e0133 |