-
Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
Create a
Brewfile
touch ~/Brewfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Lotus | |
module Repository | |
# Timestamps handling using an entity's @created_at and @updated_at. | |
# | |
# @since 0.2.4 | |
module Timestamps | |
# Override existing public API into hosting class to support @created_at | |
# and @updated_at using Ruby implementations (database agnostic). | |
# | |
# @since 0.2.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Magikarp | |
{ | |
"ZiingIsMyName": 8, | |
"OhLookAThrowaway6": 19, | |
"BerryPi": 10, | |
"YouHateTheMost": 31, | |
"KuKKilicious": 11, | |
"BloodyShine": 13, | |
"OhLookAThrowaway4": 19, | |
"Powerdrift": 12, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vimium-options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import PropTypes from 'prop-types' | |
import { withStatechart } from 'react-automata' | |
const statechart = { | |
initial: 'idle', | |
states: { | |
idle: { | |
on: { | |
LOAD: 'loading', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as R from 'ramda' | |
import * as RA from 'ramda-adjunct' | |
export const valuesDeep = | |
R.cond([ | |
[ | |
RA.isPlainObj, | |
R.pipe( | |
R.values, | |
R.map(x => valuesDeep(x)), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
__, | |
compose, | |
difference, | |
has | |
isFunction, | |
isPlainObject, | |
keys, | |
negate, | |
} from 'lodash/fp' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useState, useCallback, useEffect, useRef } from 'react' | |
const isBrowser = typeof window !== 'undefined' | |
export const useScrollDirection = ({ threshold = 0 }) => { | |
const UP = -1 | |
const STATIC = 0 | |
const DOWN = 1 | |
const prev = useRef(isBrowser ? window.scrollY : 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import hoistNonReactStatics from 'hoist-non-react-statics' | |
// Returns the components name. If a name cannot be determined, "Component" is | |
// used. | |
const getComponentName = Component => | |
Component.displayName || Component.name || 'Component' | |
// Higher order component that automatically applies default props to the | |
// wrapped component. |
OlderNewer