Skip to content

Instantly share code, notes, and snippets.

View dawsbot's full-sized avatar
💭
Bringing web3 to emerging markets - web3perf

Dawson Botsford dawsbot

💭
Bringing web3 to emerging markets - web3perf
View GitHub Profile
.facebook-button {
color: white;
background-color: rgb(66, 103, 178);
}
.facebook-button {
color: white;
background-color: rgb(66, 103, 178);
border-color: rgb(66, 103, 178);
border-radius: 2px;
border-style: solid;
border-width: 1px;
padding: 0px 16px 0px 16px;
line-height: 22px;
}
@dawsbot
dawsbot / reactComponentLifecycle.txt
Last active September 28, 2016 18:08
React component lifecycle
/**
* ------------------ The Life-Cycle of a Composite Component ------------------
*
* - constructor: Initialization of state. The instance is now retained.
* - componentWillMount
* - render
* - [children's constructors]
* - [children's componentWillMount and render]
* - [children's componentDidMount]
* - componentDidMount
@dawsbot
dawsbot / 5to6-exports.js
Last active January 12, 2019 13:36
jscodeshift mod
'use strict';
export default function transformer(file, api) {
const j = api.jscodeshift;
const {expression, statement, statements} = j.template;
const root = j(file.source);
return root
.find(j.Program, {
body: [
j.AssignmentExpression
@dawsbot
dawsbot / OSXShortcutDecoder.md
Created August 20, 2016 18:34
They're difficult to remember

( ^ ) The caret symbol is the control key.
( ⇧ ) The single arrow up is the shift key.
( ⇪ ) The arrow up with the line under it is the caps lock key.
( ⌘ ) Most people don’t miss the command key since the symbol is on the keyboard.

( ⌥ ) The upper right to lower left slash with the line above it is the alt/option key. One hint to remembering this key is the symbol has two parts and the print on the keyboard has two words.

@dawsbot
dawsbot / istanbulReporters.md
Created August 15, 2016 18:11
Because they're easy to forget
  • clover
  • cobertura
  • html
  • json
  • json-summary
  • lcov
  • lcovonly
  • teamcity
  • text
  • text-lcov
@dawsbot
dawsbot / safpmInstall.json
Last active May 2, 2016 20:53
Use this to add to your shell rc in seconds.
{
"files": [
"https://gist.githubusercontent.com/dawsonbotsford/6ef9850d1140dfc7f0cc7d80ac2f8485/raw/ded5c8b1749abcef297cbf031c08a962ee1f4cb9/zadd"
],
"scripts": [
"mv zadd /usr/local/bin",
"chmod +x /usr/local/bin/zadd"
]
}
Thanks for trying safpm!
Hopefully this was the fastest experience you've ever had setting up a package manager.
If it was, let me know at dawsonbotsford AT Gmail DOT com.
@dawsbot
dawsbot / countLicenses.sh
Created February 23, 2016 20:52
shell script to count the amount of license files in your
# in an empty project
npm install --save gulp
cd node_modules
ls **/LICENSE **/LICENSE.md **/license.md **/LICENSE | wc -l
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->