Skip to content

Instantly share code, notes, and snippets.


Joe Sak joemsak

View GitHub Profile
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') + "." +
View .vimrc
" Leader
let mapleader = " "
set backspace=2 " Backspace deletes like most programs in insert mode
set nobackup
set nowritebackup
set noswapfile "
set history=50
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
View touch.html
(function () {
View app.js
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");
View spec.rb
scenario "Upload 2 .jpg screenshots" do
within(".screenshots.incomplete") do
click_link "Upload screenshots of your app"
"Select up to 6 screenshots",
Rails.root + "spec/support/fixtures/screenshot.jpg"
View 1home.js
import { h, Component } from 'preact';
import style from './style';
export default class Home extends Component {
constructor() {
this.instructions = {
"B,s1": ["X", "R", "s2"],
"B,s2": ["B", "L", "s3"],
joemsak / turing-ish.js
Last active Aug 19, 2017
turing-ish machine in js
View turing-ish.js
const X_B = {
"B,s1": ["X", "R", "s2"],
"B,s2": ["B", "L", "s3"],
"X,s3": ["B", "R", "s4"],
"B,s4": ["B", "L", "s1"],
var tape = ["B", "B"],
head = 0,
state = "s1";
View form.html
<form action="" method="GET">
<label for="s">Search:</label>
<input name="s" type="text" />
<input type="submit" value="Search" />