A Pen by Christopher Crouch on CodePen.
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: My Plugin | |
* Plugin URI: https://example.com/plugin/ | |
* Description: An amazing WordPress plugin. | |
* Version: 1.0 | |
* Author: [Author Name] | |
* Author URI: https://example.com/author/ | |
* License: GPL2 | |
* Text Domain: myplugin |
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 | |
/** | |
* Add a custom meta box to the new/edit category pages. | |
* The meta data is saved to the array term_meta[], which can handle further | |
* fields in the future. | |
* | |
* Based on: https://pippinsplugins.com/adding-custom-meta-fields-to-taxonomies/ | |
*/ | |
/** |
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
/** | |
* A simple Publish/subscribe javascript module based on code by David Walsh: | |
* http://davidwalsh.name/pubsub-javascript | |
*/ | |
var events = (function(){ | |
// Holds the subscribed topics. | |
var topics = {}; | |
return { | |
subscribe: function( topic, callback ) { |
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
Show hidden characters
{ | |
"disallowKeywordsOnNewLine": ["else"], | |
"disallowMixedSpacesAndTabs": "smart", | |
"disallowNewlineBeforeBlockStatements": true, | |
"disallowSpaceAfterObjectKeys": true, | |
"disallowSpacesInAnonymousFunctionExpression": { | |
"beforeOpeningRoundBrace": true | |
}, | |
"disallowTrailingWhitespace": true, | |
"requireBlocksOnNewline": true, |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Bootstrap Template</title> | |
<!-- Bootstrap --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
# Create a forwarded port mapping which allows access to a specific port | |
# within the machine from a port on the host machine. In the example below, | |
# accessing "localhost:8080" will access port 80 on the guest machine. | |
# config.vm.network "forwarded_port", guest: 80, host: 8080 |
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
function logMessage(message) { | |
console.log(message); | |
} | |
module.exports = logMessage |
OlderNewer