Skip to content

Instantly share code, notes, and snippets.

View HaQadosch's full-sized avatar
📓
Storybook

HaQadosch HaQadosch

📓
Storybook
View GitHub Profile
@HaQadosch
HaQadosch / init.txt
Last active August 14, 2018 14:26
Todo
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
@HaQadosch
HaQadosch / howto.org
Last active June 12, 2018 13:16
Git between local folders

Create a local repo

The repo

Welcome to the Emacs shell

d:/docs/OrgFiles $ mkdir project.git
d:/docs/OrgFiles $ cd project.git/
@HaQadosch
HaQadosch / redux.org
Last active June 11, 2018 16:04
redux.org

Chapter 1: Core Concepts of Flux and Redux

Penicillin, x-rays, and the pacemaker are famous examples of unintended discoveries. Redux, in a similar way, wasn’t meant to become a library, but turned out to be a great Flux implementation. In May 2015, one of its authors, Dan Abramov, submitted a talk to the ReactEurope conference about “hot reloading and time travel.” He admits he had no idea how to implement time travel at that point. With help from Andrew Clark and inspired by some elegant from the Elm language, Dan eventually came up with a very nice architerture. When people started catching on to be it, he decided to market it as a library. In less than half a year, that small (only 2 KB) library became the go-to framework for React

https://send.firefox.com/download/40f9c40566/#8-FDZdZ1IKqISLGbTwF5sg
@HaQadosch
HaQadosch / github verif
Created March 7, 2018 23:01
blockstack
1Q3qWC38pyq2kyQoHh3gAiM2oSeQpJ3e39 https://explorer.blockstack.org/address/1Q3qWC38pyq2kyQoHh3gAiM2oSeQpJ3e39
@HaQadosch
HaQadosch / list.txt
Last active March 7, 2018 11:45
Stuff to Follow
Start with Wes Bos, https://wesbos.com/courses/
Follow, Learn https://www.sitepoint.com/
Create an account: https://codepen.io/
Website to follow: http://alistapart.com/
Take your survey!, also good to have an idea of what's out there: https://medium.freecodecamp.org/launching-the-front-end-tooling-survey-2018-927bf975fdf0
News site you _have_ to follow: https://thehackernews.com
MDN is probably the go to for reference lookup: https://developer.mozilla.org/en-US/docs/Web
Site to follow: https://ponyfoo.com
Google has a good dev site too: https://developers.google.com/web/fundamentals/
Site with nice articles: https://www.smashingmagazine.com
@HaQadosch
HaQadosch / backgroundScript.js
Last active February 25, 2018 21:33
Find 33
/*
Log that we received the message.
Then display a notification. The notification contains the URL,
which we read from the message.
*/
const notify = _ => {
const now = new Date()
console.log("background script received message", now)
browser.notifications.create({
"type": "basic",
@HaQadosch
HaQadosch / combinators.js
Created February 21, 2018 10:19 — forked from Avaq/combinators.js
Common combinators in JavaScript
const I = x => x;
const K = x => y => x;
const A = f => x => f(x);
const T = x => f => f(x);
const W = f => x => f(x)(x);
const C = f => y => x => f(x)(y);
const B = f => g => x => f(g(x));
const S = f => g => x => f(x)(g(x));
const P = f => g => x => y => f(g(x))(g(y));
const Y = f => (g => g(g))(g => f(x => g(g)(x)));
@HaQadosch
HaQadosch / .babelrc
Created February 20, 2018 22:38
Config
{
"presets": [
[
"env",
{
"modules": false
}
]
],
"plugins": [
@HaQadosch
HaQadosch / setup.js
Created November 29, 2017 17:37
opConsoleVar1
// <script role="opConsoleSetup">
// Production steps of ECMA-262, Edition 5, 15.4.4.18
// Reference: http://es5.github.io/#x15.4.4.18
if (!Array.prototype.forEach) {
Array.prototype.forEach = function (callback /*, thisArg */) {
var T
var k
if (this == null) {
throw new TypeError('this is null or not defined')
}