Flexible Calendar V1
Forked from MaCeLMp4's Pen Flexible Calendar V1.
A Pen by Stan Williams on CodePen.
Flexible Calendar V1
Forked from MaCeLMp4's Pen Flexible Calendar V1.
A Pen by Stan Williams on CodePen.
<?php | |
/* | |
Plugin Name: Custom Admin Bar Link | |
Plugin URI: http://www.creare.co.uk | |
Description: This simple plugin adds custom link to the Admin Bar Menu with the option of having a supporting icon. | |
Version: 0.1 | |
Author: James Bavington | |
Author URI: https://twitter.com/jamesbavington | |
*/ |
As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.
<?php | |
/* REQUIRES: TwitterOAuth | |
* https://github.com/abraham/twitteroauth/tree/master/twitteroauth | |
* | |
* Download and place in a /twitteroauth/ folder in your theme/plugin. | |
* | |
* | |
* Full guide here: http://www.problogdesign.com/wordpress/authenticate-your-twitter-api-calls-before-march/ | |
* | |
* Uses: |
$ uname -r
<?php | |
/** | |
* This file will activate the Airplane Mode plugin if not already activated. This is helpful when you do not have internet connection and you're unable to reach the WP Admin Plugins page to activate the plugin. | |
*/ | |
// get WP bootstrap | |
define('WP_USE_THEMES', false); | |
require(__DIR__ . '/wp/wp-blog-header.php'); | |
<?php | |
/* | |
------------------------------------------------------------------------------- | |
Laptop Theft Protector | |
Version 1.0 | |
Copyright (c) 2006, Manas Tungare | |
http://manas.tungare.name/ | |
------------------------------------------------------------------------------- | |
READ THIS CAFEFULLY: YOU MUST CUSTOMIZE ONE VARIABLE BEFORE USE. | |
------------------------------------------------------------------------------- |
function checkForCloseMatch(longString, shortString) { | |
// too many false positives with very short strings | |
if (shortString.length < 3) return ''; | |
// test if the shortString is in the string (so everything is fine) | |
if (longString.includes(shortString)) return ''; | |
// split the shortString string into two at each postion e.g. g|mail gm|ail gma|il gmai|l | |
for (let i = 1; i < shortString.length; i++) { | |
const firstPart = shortString.substring(0, i); |
<?php | |
/** | |
* @package Kinsta_widget | |
* @version 1.0 | |
*/ | |
/* | |
Plugin Name: Kinsta Widget | |
Plugin URI: http://wordpress.org/extend/plugins/# | |
Description: This is an example plugin | |
Author: Your Name |
/** | |
* Sets install skin strings for each individual plugin. | |
* | |
* Checks to see if the automatic activation flag is set and uses the | |
* the proper strings accordingly. | |
* | |
* @since 2.2.0 | |
*/ | |
public function add_strings() { | |
if ( 'update' === $this->options['install_type'] ) { |