I hereby claim:
- I am whatadewitt on github.
- I am whatadewitt_io (https://keybase.io/whatadewitt_io) on keybase.
- I have a public key ASBJdUL915eqDysCL7ipH2Z1gyntc-M0XsGdSVHZ2Cc8kQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
const deck1 = [ | |
14, | |
23, | |
6, | |
16, | |
46, | |
24, | |
13, | |
25, | |
17, |
import React, { Component } from "react"; | |
import { Route } from "react-router-dom"; | |
import "./App.css"; | |
import Link from "./Link"; | |
import Home from "./Home"; | |
import About from "./About"; | |
import Topics from "./Topics"; | |
class App extends Component { | |
componentDidMount() { |
{ | |
"extends": "stylelint-config-standard", | |
"rules": { | |
"at-rule-no-vendor-prefix": true, | |
"at-rule-semicolon-space-before": "never", | |
"block-closing-brace-space-after": "always-single-line", | |
"color-named": "never", | |
"declaration-block-semicolon-newline-before": "never-multi-line", | |
"declaration-no-important": true, | |
"font-family-name-quotes": "always-unless-keyword", |
var express = require('express'); | |
var path = require('path'); | |
var favicon = require('serve-favicon'); | |
var logger = require('morgan'); | |
var cookieParser = require('cookie-parser'); | |
var bodyParser = require('body-parser'); | |
var session = require('express-session'); | |
var routes = require('./routes/index'); |
# wp-cli | |
alias wp='~/git/wp-cli/bin/wp' | |
source ~/git/wp-cli/utils/wp-completion.bash | |
export WP_CLI_PHP=/Applications/MAMP/bin/php/php5.4.10/bin/php | |
export PATH=/Applications/MAMP/bin/php/php5.4.10/bin:$PATH | |
# get git branch |
// Temp Maintenance - with http response 503 (Service Temporarily Unavailable) | |
// This will only block users who are NOT an administrator from viewing the website. | |
function wp_maintenance_mode(){ | |
if(!current_user_can('edit_themes') || !is_user_logged_in()){ | |
wp_die('Maintenance, please come back soon.', 'Maintenance - please come back soon.', array('response' => '503')); | |
} | |
} | |
add_action('get_header', 'wp_maintenance_mode'); |
var app = require('http').createServer(handler) | |
, io = require('socket.io').listen(app) | |
, fs = require('fs'); | |
app.listen(1337); | |
function handler (req, res) { | |
fs.readFile(__dirname + '/index.html', | |
function (err, data) { | |
if (err) { |