Skip to content

Instantly share code, notes, and snippets.

View reggi's full-sized avatar
🪷

Tea Reggi reggi

🪷
View GitHub Profile
npm install --save-dev babel-cli babel-preset-env babel-plugin-transform-runtime
{
  "presets": ["env"],
  "plugins": ["transform-runtime"]
}
/*
Here's a bit of code demonstrating the cascade of usign `static` functions within a class.
From top to bottom each subsiquent function utilizes the next. This allows you to piece-meal
the functions needed by declaring the method names based on what they return i.e. `bool`, `throw`, and `middleware`.
Note, I'm intentionally not using a constructor here, and I am also intentionally passing in
the same arguments to each of the function methods.
*/
@reggi
reggi / index.js
Last active February 12, 2018 20:10
import React, {Component} from 'react'
import FontAwesome from 'react-fontawesome'
const range = (range) => Array(range).fill().map((_, i) => i * i)
export const YELLOW = 'yellow'
export const GRAY = 'gray'
export const BLACK = 'black'
export const WHITE = 'white'
export const HEX_YELLOW = '#FBD330'
#!/usr/local/bin/expect -f
set timeout -1
spawn $env(SHELL)
match_max 100000
send -- "eb init\r"
expect "Select a default region"
send -- "5\r"
expect "Select an application to use"
send -- "1\r"
import {set} from 'lodash'
export const epicGenerator = (generalType, fulfilledType, rejectedType, asyncCall) => {
return (action$, store) => {
return action$.filter(action => action.type === generalType)
.flatMap(async (action) => {
try {
const payload = await asyncCall(action)
return {
type: fulfilledType,
npm ERR! Error: connect ECONNREFUSED 127.0.0.1:5080
npm ERR! at Object.exports._errnoException (util.js:870:11)
npm ERR! at exports._exceptionWithHostPort (util.js:893:20)
npm ERR! at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1061:14)
npm ERR! { [Error: connect ECONNREFUSED 127.0.0.1:5080]
npm ERR! code: 'ECONNREFUSED',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! syscall: 'connect',
npm ERR! address: '127.0.0.1',
npm ERR! port: 5080,
import 'rxjs'
import { createStore, applyMiddleware } from 'redux'
import { combineEpics, createEpicMiddleware } from 'redux-observable'
import { filter } from 'lodash'
import {APP_NAME} from './app'
const REDUCER = 'puppy'
const SELECT = `${APP_NAME}/${REDUCER}/SELECT`

Keybase proof

I hereby claim:

  • I am reggi on github.
  • I am reggi (https://keybase.io/reggi) on keybase.
  • I have a public key whose fingerprint is AC12 0D94 299F 9003 3F9F D104 953B 1058 2B89 E9E2

To claim this, I am signing this object: