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 | |
/** | |
* Our bootstrap | |
*/ | |
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap | |
{ | |
/** | |
* Will init our acl | |
* | |
* @return void |
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 | |
class My_Form_Template extends My_Form | |
{ | |
public function init() | |
{ | |
parent::init(); | |
$this->addElements(array( | |
$this->createElement(self::TYPE_MULTICHECKBOX, 'checks', array( |
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
// Added "before_delete_post" action to trigger rel_cleanup (cleans up all associated posts with rel_ meta_keys when a post is deleted) | |
function Acf() | |
{ | |
// vars | |
$this->path = plugin_dir_path(__FILE__); | |
$this->dir = plugins_url('',__FILE__); | |
$this->version = '3.3.9'; | |
$this->upgrade_version = '3.3.3'; // this is the latest version which requires an upgrade | |
$this->cache = array(); // basic array cache to hold data throughout the page load |
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
class AbstractBehatContext extends MinkContext { | |
/** | |
* Slight hack to put beforeSuite code into beforeScenario | |
* @var bool | |
*/ | |
protected static $databaseReady = false; | |
/** | |
* @BeforeScenario |
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
//Twitter Parsers | |
String.prototype.parseURL = function() { | |
return this.replace(/[A-Za-z]+://[A-Za-z0-9-_]+.[A-Za-z0-9-_:%&~?/.=]+/g, function(url) { | |
return url.link(url); | |
}); | |
}; | |
String.prototype.parseUsername = function() { | |
return this.replace(/[@]+[A-Za-z0-9-_]+/g, function(u) { | |
var username = u.replace("@","") | |
return u.link("https://twitter.com/"+username); |
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
Host bitbucket.org | |
ControlMaster no | |
Host * | |
Compression yes | |
ControlMaster auto | |
ControlPath /tmp/ssh-conn-%r@%h:%p.con | |
ControlPersist 30 | |
ForwardAgent yes | |
ServerAliveInterval 100 | |
IdentityFile ~/.ssh/id_rsa |
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
#!/bin/bash | |
# Applies the Monokai color scheme to the current terminal session. | |
declare -A map0 | |
map0=( [foreground ]='#F8F8F2' [background ]='#272822' | |
[cursor ]='#F8F8F0' [selection ]='#49483E' | |
[pink ]='#F92672' [green ]='#A6E22E' | |
[yellow ]='#E6DB74' [blue ]='#66D9EF' | |
[purple ]='#AE81FF' [orange ]='#FD971F' | |
[gray ]='#75715E' ) |
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
language: php | |
php: | |
- 7.0 | |
- 7.1 | |
services: | |
- mysql | |
addons: |
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
# | |
# Jekyll Generator for SCSS | |
# | |
# (File paths in this description relative to jekyll project root directory) | |
# Place this file in ./_plugins | |
# Place .scss files in ./_scss | |
# Compiles .scss files in ./_scss to .css files in whatever directory you indicated in your config | |
# Config file placed in ./_sass/config.rb | |
# | |
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
DELIMITER $$ | |
CREATE FUNCTION `regex_replace`(pattern VARCHAR(1000),replacement VARCHAR(1000),original VARCHAR(1000)) | |
RETURNS VARCHAR(1000) | |
DETERMINISTIC | |
BEGIN | |
DECLARE temp VARCHAR(1000); | |
DECLARE ch VARCHAR(1); | |
DECLARE i INT; | |
SET i = 1; |
OlderNewer