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
/* | |
* Collapsible JSON Formatter - Formatter and colorer of raw JSON code | |
* | |
* jQuery Json Formatter plugin v0.1.3 | |
* | |
* Usage | |
* ----- | |
* | |
* $('#target').jsonFormat('#source'); // or | |
* $('#target').jsonFormat('#source', {options override defaults}); // see jf.config |
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
NameVirtualHost *:80 | |
<Directory "/Volumes/www/"> | |
Allow From All | |
AllowOverride All | |
Options +Indexes | |
Require all granted | |
</Directory> | |
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
{ | |
"nice":1234 | |
} |
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
function testPromise($q, secondsDelay, data, reject) { | |
var testQ = $q.defer(); | |
setTimeout(function () { | |
reject ? testQ.reject(data()) : testQ.resolve(data()); | |
}, secondsDelay * 1000); | |
return testQ.promise; | |
} |
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
SELECT * FROM wp_users | |
LEFT JOIN wp_usermeta as stripe_meta on stripe_meta.user_id = wp_users.ID && stripe_meta.meta_key = 'stripe_customer_id' | |
LEFT JOIN wp_usermeta as role_meta on role_meta.user_id = wp_users.ID && role_meta.meta_key = 'wp_capabilities' | |
WHERE | |
1=1 | |
AND stripe_meta.meta_value IS NULL | |
AND role_meta.meta_value LIKE '%subscriber%' |
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
echo '<pre>' . print_r(array('user' => posix_getpwuid(posix_getuid()), 'group' => posix_getgrgid(posix_getgid())), 1) .'</pre>'; exit; |
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
{"Awesome":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 | |
/** | |
* Shortcodes Base Class | |
* | |
* Adds dynamically named shortcodes using a child class's functions. | |
* Shortcode will not be created for functions prefixed with an underscore (_); | |
* Prefix is optional (recommended). | |
* | |
*/ |
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
Find: | |
function ([a-z_]+)\(([a-z $,_]+)\s\) | |
Replace: | |
function $1( $2 ) |
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
_.each(['onStart', 'onBefore', 'onRetain', 'onSuccess', 'onError', 'onExit', 'onFinish'], | |
transitionHook => { | |
$transitions[transitionHook]({}, function () { | |
console.log(transitionHook); | |
}); | |
}); |
OlderNewer