This file contains hidden or 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 path = require('path'), | |
| webpack = require('webpack'), | |
| AssetsPlugin = require('assets-webpack-plugin'), | |
| BrotliPlugin = require('brotli-webpack-plugin'), | |
| HtmlWebpackPlugin = require('html-webpack-plugin'), | |
| UglifyJsPlugin = require('uglifyjs-webpack-plugin'); | |
| const isProd = process.env.NODE_ENV === 'production'; | |
| /** |
This file contains hidden or 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
| export class Dispatcher { | |
| constructor () { | |
| this.events = {}; | |
| } | |
| addListener (event, callback) { | |
| // Check if the callback is not a function | |
| if (typeof callback !== 'function') { | |
| console.error(`The listener callback must be a function, the given type is ${typeof callback}`); | |
| return false; |
This file contains hidden or 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
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| //CSS | |
This file contains hidden or 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
| #!/bin/sh | |
| # Spiderme - quick and clean benchmarking for website performance on Pantheon. | |
| # | |
| # This script uses wget to "spider" your website to provide a good set of data | |
| # on site performance. It will automatically bypass Pantheon's edge cache, and | |
| # skip images, javascript, css, etc. It will also only spider links that are | |
| # under the multidev environment you are spidering. | |
| # | |
| # |
This file contains hidden or 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
| #!/bin/sh | |
| # Spiderme - quick and clean benchmarking for website performance on Pantheon. | |
| # | |
| # This script uses wget to "spider" your website to provide a good set of data | |
| # on site performance. It will automatically bypass Pantheon's edge cache, and | |
| # skip images, javascript, css, etc. It will also only spider links that are | |
| # under the multidev environment you are spidering. | |
| # | |
| # |
This file contains hidden or 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
| <?php | |
| /** | |
| * Plugin Name: T5 Log Queries | |
| * Description: Writes all queries to '/query-log.sql'. | |
| * Plugin URI: http://wordpress.stackexchange.com/a/70853/73 | |
| * Version: 2012.11.04 | |
| * Author: Thomas Scholz | |
| * Author URI: http://toscho.de | |
| * Licence: MIT | |
| */ |
This file contains hidden or 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
| <?php | |
| // [wp insert user « WordPress Codex](http://codex.wordpress.org/Function_Reference/wp_insert_user) | |
| require_once "wordpress/wp-load.php"; | |
| $user_info = array( | |
| "user_pass" => "test123", | |
| "user_login" => "username", | |
| "user_nicename" => "username", | |
| "user_email" => "email@example.com", |