This file contains 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
[merge] | |
tool = vscode | |
[mergetool "vscode"] | |
cmd = code --wait $MERGED | |
[mergetool] | |
keepBackup = false |
This file contains 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 ApplicationController < ActionController::Base | |
rescue_from ActiveRecord::RecordNotFound, with: -> { | |
redirect_to root_path, alert: "We couldn't find that list or item on your account" | |
} | |
private | |
def current_user | |
begin | |
@current_user ||= User.find_by!(auth_token: session[:user_auth_token]) | |
# I am assuming that the details of storing |
This file contains 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 Drink | |
def sip | |
puts "You drank with caution" | |
end | |
end | |
class Coffee < Drink | |
def method_missing(method_name, *args, &block) | |
if method_name == :gulp | |
puts "Please don't gulp your coffee!" |
This file contains 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
[debug] [2018-04-03T13:10:15.938Z] ---------------------------------------------------------------------- | |
[debug] [2018-04-03T13:10:15.941Z] Command: /Users/joemsak/.asdf/installs/nodejs/9.9.0/bin/node /Users/joemsak/.asdf/installs/nodejs/9.9.0/.npm/bin/firebase auth:import db/export/accounts.json --hash-algo=BCRYPT --project technovation-ed789 --debug | |
[debug] [2018-04-03T13:10:15.942Z] CLI Version: 3.17.7 | |
[debug] [2018-04-03T13:10:15.942Z] Platform: darwin | |
[debug] [2018-04-03T13:10:15.942Z] Node Version: v9.9.0 | |
[debug] [2018-04-03T13:10:15.942Z] Time: Tue Apr 03 2018 08:10:15 GMT-0500 (CDT) | |
[debug] [2018-04-03T13:10:15.943Z] ---------------------------------------------------------------------- | |
[debug] | |
[debug] [2018-04-03T13:10:15.951Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase"] | |
[debug] [2018-04-03T13:10:15.951Z] > authorizing via signed-in user |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- other HEAD stuff omitted --> | |
<%= stylesheet_link_tag("//fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons") %> | |
<%= yield :css %> | |
<%= yield :js %> | |
</head> | |
<body> |
This file contains 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
import Vue from 'vue' | |
import App from './App.vue' | |
import Storage from './utils/Storage'; | |
import moment from 'moment'; | |
var halfDay = moment().date(15), | |
lastDay = moment().endOf("month"), | |
payDayStoragePrefix = moment().get('year') + "." + | |
moment().format("MM"); |
This file contains 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
" Leader | |
let mapleader = " " | |
set backspace=2 " Backspace deletes like most programs in insert mode | |
set nobackup | |
set nowritebackup | |
set noswapfile " http://robots.thoughtbot.com/post/18739402579/global-gitignore#comment-458413287 | |
set history=50 | |
set ruler " show the cursor position all the time | |
set showcmd " display incomplete commands |
This file contains 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
<img | |
class="photo" | |
alt="wide" | |
src="https://scontent.cdninstagram.com/t51.2885-15/s640x640/sh0.08/e35/23347411_108787423227862_4805896712906342400_n.jpg" | |
/> | |
<script> | |
(function () { | |
Array.prototype.forEach.call( | |
document.getElementsByClassName("photo"), |
This file contains 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
var express = require('express'); | |
var fetchUrl = require("fetch").fetchUrl; | |
var app = express(); | |
app.use(function(req, res, next) { | |
res.header("Access-Control-Allow-Origin", "*"); | |
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept"); | |
next(); | |
}); |
This file contains 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
scenario "Upload 2 .jpg screenshots" do | |
within(".screenshots.incomplete") do | |
click_link "Upload screenshots of your app" | |
end | |
attach_file( | |
"Select up to 6 screenshots", | |
Rails.root + "spec/support/fixtures/screenshot.jpg" | |
) |