-
download_slides
: get the photos of the unit -
essence
: remove noise, while keeping only unit specific details
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
<html> | |
<head> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> | |
<script> | |
$(function() { | |
$(".video").click(function () { | |
var theModal = $(this).data("target"), | |
videoSRC = $(this).attr("data-video"), |
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
┃ Gem::Ext::BuildError: ERROR: Failed to build gem native extension. | |
┃ | |
┃ /usr/local/Cellar/shopify-ruby/2.2.3-shopify_2/bin/ruby -r ./siteconf20160823-27222-1ml83gd.rb extconf.rb | |
┃ checking for libgda/sql-parser/gda-sql-parser.h... no | |
┃ libgda is missing. Try 'brew install libgda' | |
┃ *** extconf.rb failed *** | |
┃ Could not create Makefile due to some reason, probably lack of necessary | |
┃ libraries and/or headers. Check the mkmf.log file for more details. You may | |
┃ need configuration options. | |
┃ |
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 'carmen' | |
include Carmen | |
us = Country.named('United States’) | |
states = us.subregions.select { |subregion| subregion.type == 'state' }.map(&:name).sort | |
# => ["Alabama", | |
# "Alaska", | |
# "Arizona", | |
# "Arkansas", | |
# "California", |
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
export GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWSTASHSTATE=1 GIT_PS1_SHOWUNTRACKEDFILES=1 | |
export PROMPT_COMMAND='__git_ps1 "\t \u@\h:\w" " \\\$ "' | |
export GIT_PS1_SHOWCOLORHINTS=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
source 'https://rubygems.org' | |
gem 'minitest' | |
gem 'pry-byebug' |
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
class Cache | |
attr_accessor :data | |
def initialize(data: {}) | |
@data = data | |
end | |
def get(key) | |
return if data.fetch(key, {}).fetch(:expires_at, nil) <= now |
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
class Rover | |
class InvalidDirection < StandardError | |
def message | |
'Vertigoooooo!' | |
end | |
end | |
VALID_DIRECTIONS = %i(north south east west).freeze | |
attr_accessor :ns_coordinates, :ew_coordinates, :direction |
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
# … | |
VCR.configure do |c| | |
c.hook_into :webmock | |
c.cassette_library_dir = 'spec/cassettes' | |
c.default_cassette_options = { :record => :new_episodes } | |
## Ignore some requests based on the hosts involved. | |
c.ignore_hosts 'localhost', '8.8.8.8', 'our.local.test.server.org' |
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
Rails.application.routes.draw do | |
# The priority is based upon order of creation: first created -> highest priority. | |
# See how all your routes lay out with "rake routes". | |
# You can have the root of your site routed with "root" | |
# root 'welcome#index' | |
# Example of regular route: | |
# get 'products/:id' => 'catalog#view' |