Skip to content

Instantly share code, notes, and snippets.

Joe Sak joemsak

Block or report user

Report or block joemsak

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View iteraptor.rb
query = "course"
original = {
"browse_courses"=>"Browse Courses",
joemsak / .gitignore
Created Feb 15, 2020
.gitignore for merge conflict backups
joemsak / .gitconfig
Created Feb 15, 2020
.gitconfig for rerere (Reuse Recorded Resolution)
View .gitconfig
enabled = true
joemsak / .gitconfig
Created Feb 15, 2020
.gitconfig for setting up pull with rebase
View .gitconfig
autosetuprebase = always
joemsak / .gitconfig
Last active Feb 15, 2020
.gitconfig for setting VS code as the merge conflict editor
View .gitconfig
tool = vscode
[mergetool "vscode"]
cmd = code --wait $MERGED
keepBackup = false
View app\controllers\application_controller.rb
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"
def current_user
@current_user ||= User.find_by!(auth_token: session[:user_auth_token])
# I am assuming that the details of storing
View 1_method_missing.rb
class Drink
def sip
puts "You drank with caution"
class Coffee < Drink
def method_missing(method_name, *args, &block)
if method_name == :gulp
puts "Please don't gulp your coffee!"
View firebase-debug.log
[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] [2018-04-03T13:10:15.951Z] > command requires scopes: ["email","openid","",""]
[debug] [2018-04-03T13:10:15.951Z] > authorizing via signed-in user
joemsak / 1_layout.html.erb
Last active Mar 20, 2018
v-select in rails 5.1 webpacker vue
View 1_layout.html.erb
<!DOCTYPE html>
<!-- other HEAD stuff omitted -->
<%= stylesheet_link_tag("//,400,500,700|Material+Icons") %>
<%= yield :css %>
<%= yield :js %>
View 1-main.js
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') + "." +
You can’t perform that action at this time.