Skip to content

Instantly share code, notes, and snippets.

View emukupa's full-sized avatar

Edward Manda emukupa

  • Oklahoma City, Oklahoma, USA
View GitHub Profile
@emukupa
emukupa / slim-redux.js
Created September 6, 2018 16:21 — forked from gaearon/slim-redux.js
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
}
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {
http://bigocheatsheet.com/
https://gist.github.com/TSiege/cbb0507082bb18ff7e4b
https://algs4.cs.princeton.edu/cheatsheet/
https://thejavacheatsheet.wordpress.com/category/sorting-algorithms/
http://cooervo.github.io/Algorithms-DataStructures-BigONotation/
from collections import deque
file = [
6,
{"N": 4, "K": 1, "V": 3,
"A": [ "LikeSign", "Arcade", "SweetStop", "SwagStore"]},
{"N": 4, "K": 4, "V": 100,
"A": [ "FoxGazebo", "MPK20Roof", "WoodenSculpture", "Biryani"]},

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
{
"name": "new",
"version": "1.0.0",
"description": "",
"keywords": [],
"main": "src/index.js",
"dependencies": {
"@fortawesome/fontawesome": "1.1.7",
"@fortawesome/fontawesome-free-brands": "5.0.12",
"@fortawesome/fontawesome-free-regular": "5.0.12",