Skip to content

Instantly share code, notes, and snippets.

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
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)
# 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)
'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 {
@mjacobus
mjacobus / pair.rb
Last active December 18, 2017 18:55
# require 'pair/version'
require 'uri'
require 'json'
require 'net/http'
require 'base64'
class CommandRunner
def run(command)
`#{command}`
end
#!/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
require 'rake'
require 'rake/tasklib'
desc 'oo stuff'
task 'stuff' do
end
class MyTask < Rake::TaskLib
attr_reader :name

Beginner agenda

  • CLI
    • cd
    • pwd
    • rm
  • git
  • github
  • fronetend
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.
XING_CONSUMER_KEY=6cb979e8c309106a2d7f
XING_CONSUMER_SECRET=56949ef0e19410424d5acb846cbd9ac2f38e0133