View setupGitConfigAlias.bash
echo https://koukia.ca/personalizing-git-aliasing-commands-4dda73b54081 | |
echo https://thoughtbot.com/blog/streamline-your-git-workflow-with-aliases | |
git config --global alias.alias "! git config --get-regexp ^alias\. | sed -e s/^alias\.// -e s/\ /\ =\ /" | |
git config --global alias.cob "checkout -b" | |
git config --global alias.c "commit -m" | |
git config --global alias.a '!git add . && git status' | |
git config --global alias.p '!git push origin && git status' | |
git config --global alias.s "status" |
View .gitconfig
[filter "lfs"] | |
clean = git-lfs clean -- %f | |
smudge = git-lfs smudge -- %f | |
process = git-lfs filter-process | |
required = true | |
[user] | |
name = Kyle Rebstock | |
email = kjr247@gmail.com | |
[alias] | |
a = !git add . && git status |
View cloudSettings
{"lastUpload":"2018-05-11T15:29:16.654Z","extensionVersion":"v2.9.2"} |
View find deeply nested value of undefined
function filterDeep(humans) { | |
return humans.map((val, key) => { | |
if(Array.isArray(val)) { | |
filterDeep(val); | |
} else if(typeof val === "object") { | |
filterDeep(Object.values(val)); | |
} else if (val === undefined) { | |
console.log(typeof val, val, key); | |
return true; | |
} |
View redux saga boilerplate
import { call, put } from "redux-saga/es/effects"; | |
const RequestActionTypes = { | |
COMPLETED: "@REQUEST/COMPLETED", | |
PENDING: "@REQUEST/PENDING", | |
STARTED: "@REQUEST/STARTED" | |
}; | |
const isSuccessful = (result) => get(result, "data.status", false) && hasData(result); |
View gist:10503476
Kyle Rebstock <kjr247@gmail.com> Fri, Apr 11, 2014 at 1:10 PM | |
To : Kyle Rebstock <kjr247@gmail.com> | |
// ------------------------------------------- | |
// Program: pascomp.cc (Version 1.8)//modified since 1.8 This is compiler before val/ref feature | |
// | |
// Description: This is a pascal like compiler with low-level code implementation. | |
// Student: Kyle Jackson Rebstock | |
// ID: 713599 | |
// Date: February 8, 2014 |
View fibopthread.cpp
#include <pthread.h> | |
#include <stdio.h> | |
#include <iostream> | |
using namespace std; | |
int i, var1, var2; | |
int inputsize=0; | |
int fibarray[100]; |