I hereby claim:
- I am limeblast on github.
- I am limeblast (https://keybase.io/limeblast) on keybase.
- I have a public key whose fingerprint is C50A 94E2 29FC 7919 E7DA A631 0CEC E5EC BC74 0642
To claim this, I am signing this object:
[alias] | |
addr = add -A | |
ci = commit | |
co = checkout | |
lg = log --graph --decorate --branches --abbrev-commit | |
st = status -sb | |
ds = diff -- staged | |
graph = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset' | |
[color] | |
ui = true |
require 'spec_helper' | |
describe "Activation Email" do | |
it "confirms the email when user clicks the confirmation link on activation email" do | |
register_new_user("john.smith@example.com", "adobe password", "adobe password") | |
activation_token = User.last.activation_code | |
expect( open_last_email.default_part_body ).to have_link_with_ends_with(activation_token) | |
visit activation_path(activation_token) | |
expect(page).to have_content( "Your email has been confirmed.") | |
end |
I hereby claim:
To claim this, I am signing this object:
RSpec.configure do |config| | |
... | |
# changes the config on the backtrace display to ignore the /gems/ folder | |
config.backtrace_exclusion_patterns.push(/gems/) | |
... | |
end |
git checkout master
git pull
git checkout <branch>
git rebase master
git push --force
git checkout master
git merge --no-ff
#!/bin/bash | |
# ----------------------------------------------------------------------- | |
# Installs Ruby 2.3 using rbenv/ruby-build on the Raspberry Pi (Raspbian) | |
# | |
# Run from the web: | |
# bash <(curl -s raw_script_url_here) | |
# ----------------------------------------------------------------------- | |
# Set up variables |
Taken from Raspberry Pi 2 User Guide by Vilros
If you connect your Pi to a television using an HDMI cable, Raspbian automatically selects a screen size that it decides will be the best for your setup. However, this is not always the highest resolution.
The configuration setting that controls how Raspbian selects the screen size is in the file /boot/config.txt
and you can adjust this setting with a text editor:
On the Application Launcher, click LXTerminal.
Type the following command and then press Enter:
#!/usr/bin/env ruby | |
$:.unshift(File.expand_path('../../lib', __FILE__)) | |
require 'ws2812' | |
# Init | |
$hat = Ws2812::UnicornHAT.new | |
$hat.rotation = 90 | |
$hat.clear | |
l = Ws2812::Color.new(220, 220, 220) |
#!/usr/bin/env ruby | |
$:.unshift(File.expand_path('../../lib', __FILE__)) | |
require 'ws2812' | |
def display(array, colours) | |
$hat.clear false | |
array.each_with_index do |row, x| | |
row.each_with_index do |value, y| | |
$hat[x, y] = colours[value] | |
end |
Download NOOBS
Use ApplePi-Baker to Prepare SD card for NOOBS.
Copy the extracted contents of NOOBS download onto SD card.
Follow the instructions for an automatic install.
Insert the SD card into the Pi, attach an ethernet cable, plug it in.