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
# COLORS | |
export TERM=xterm-color | |
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32' | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxCxDxBxegedabagacad | |
export HOMEBREW_CASK_OPTS="--appdir=/Applications" | |
# PATHS | |
export DEVELOPMENT_DIRECTORY="$HOME/development" | |
export DOTFILES_DIRECTORY="$HOME/dotfiles" |
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
## bins | |
[chaining](https://jsbin.com/nirikoqapi/1/edit?html,js,console) | |
[chaining, iife, clojure, module](https://jsbin.com/mayijamebo/56/edit?js,console) | |
[getting started w redux, react, expect](https://jsbin.com/wamakuh/2/edit?html,js,output) | |
[promises](https://jsbin.com/zanemed/1/edit?js,console) | |
## coersion & comparison stuff | |
[double equal coersion graphic](https://i.stack.imgur.com/Ccyb8.png) |
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
{ | |
"contestants": [ | |
{ "id": "111", "name": "john" }, | |
{ "id": "222", "name": "mary" }, | |
{ "id": "333", "name": "dave" } | |
], | |
"winner": {}, | |
"winners": [ | |
{ "id": "444", "name": "joan" }, | |
{ "id": "555", "name": "jake" } |
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
[ | |
{"id": "111", "name": "john"}, | |
{"id": "222", "name": "mary"}, | |
{"id": "333", "name": "dave"}, | |
{"id": "444", "name": "joan"}, | |
{"id": "555", "name": "jake"}, | |
{"id": "666", "name": "gary"}, | |
{"id": "777", "name": "tina"} | |
] |
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
#http://www.makeuseof.com/tag/edit-thousands-wordpress-posts-sql-command/ | |
UPDATE wp_posts | |
SET post_content = REPLACE( | |
post_content, | |
substr( | |
post_content, | |
locate('<script type=', post_content), | |
( | |
(locate('<script type=', post_content) + 82) - locate('<script type=', post_content) |
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
Show hidden characters
{ | |
"extends": "airbnb", | |
"rules": { | |
"react/jsx-filename-extension": [1, {"extensions": [".js"]}] | |
} | |
} |
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
{ | |
"extends": "airbnb", | |
"env": { | |
"browser": true, | |
"jasmine": true | |
}, | |
"rules": { | |
"react/jsx-filename-extension": [1, {"extensions": [".js"]}] | |
} | |
} |
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 logo from './logo.svg'; | |
import './App.css'; | |
class App extends Component { | |
render() { | |
return ( | |
<div className="App"> | |
<div className="App-header"> | |
<img src={logo} className="App-logo" alt="logo" /> |
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 logo from './logo.svg'; | |
import './App.css'; | |
const App = () => ( | |
<div className="App"> | |
<div className="App-header"> | |
<img src={logo} className="App-logo" alt="logo"/> | |
<h2>Welcome to React</h2> | |
</div> |
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 logo from './logo.svg'; | |
import './App.css'; | |
const App = () => ( | |
<div className="App"> | |
<div className="App-header"> | |
<img src={logo} className="App-logo" alt="logo" /> | |
<h2>Welcome to React</h2> | |
</div> |