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
// Webster's Unabridged English Dictionary from: | |
// https://github.com/adambom/dictionary | |
const dictionary = require("./dictionary.json"); | |
const alphabet = 'abcdefghijklmnopqrstuvwxyz'; | |
const fiveLetters = Object.keys(dictionary).filter(word => word.length === 5); | |
// console.log(alphabet.length); | |
// console.log(fiveLetters.length); |
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
<?php | |
// Register Region CPT | |
add_action( 'init', 'register_cpt_region' ); | |
function register_cpt_region() { | |
$labels = array( | |
'name' => _x( 'Regions', 'region' ), |
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
// Modified http://paulirish.com/2009/markup-based-unobtrusive-comprehensive-dom-ready-execution/ | |
// And http://viget.com/extend/javascript-execution-patterns-for-non-web-apps | |
var NAMESPACE = { | |
// All pages | |
common: { | |
init: function() { | |
// Some universal variables | |
var breakpoint = 768; |
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
<?php | |
// As per Mark Jaquith's article: http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/ | |
define('DB_NAME', 'site_dev'); | |
define('DB_USER', 'root'); | |
define('DB_PASSWORD', 'root'); | |
define('DB_HOST', 'localhost'); | |
define('WP_DEBUG', true); |
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
<?php | |
/** | |
* The base configurations of the WordPress. | |
* | |
* This file has the following configurations: MySQL settings, Table Prefix, | |
* Secret Keys, WordPress Language, and ABSPATH. You can find more information | |
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing | |
* wp-config.php} Codex page. You can get the MySQL settings from your web host. | |
* | |
* This file is used by the wp-config.php creation script during the |
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
# From: https://gist.github.com/jdbartlett/444295 | |
# This is a template .gitignore file for git-managed WordPress projects. | |
# | |
# Fact: you don't want WordPress core files, or your server-specific | |
# configuration files etc., in your project's repository. You just don't. | |
# | |
# Solution: stick this file up your repository root (which it assumes is | |
# also the WordPress root directory) and add exceptions for any plugins, | |
# themes, and other directories that should be under version control. |
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
// Default mobile-first grid setup | |
$total-columns : 4; // a 4-column fluid grid for anything less than tablet (<48em) | |
$column-width : 20%; // each column is 4em wide | |
$gutter-width : 3%; // 1em gutters between columns | |
$grid-padding : $gutter-width; // grid-padding equal to gutters | |
$tablet-columns : 10; // 10-column fluid grid for tablets - desktop (48em - <60em) | |
$tablet-width : 48em; // 48em = 768px by default | |
$tablet : $tablet-width $tablet-columns; // Shorthand for tablet breakpoint |