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
const deck1 = [ | |
14, | |
23, | |
6, | |
16, | |
46, | |
24, | |
13, | |
25, | |
17, |
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 { 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() { |
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": "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", |
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
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'); |
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
# 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 |
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
// 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'); |
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
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) { |