| Instance | Branch |
|---|
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 | |
| Class TableRII extends RecursiveIteratorIterator { | |
| private $parentKey = null; | |
| public function beginIteration() { | |
| echo '<table border=1><tr><th>key</th><th>value</th></tr>'; | |
| } | |
| public function endIteration() { | |
| echo '</table>'; |
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
| // http://wpsnipp.com/index.php/functions-php/change-publish-metabox-text-for-custom-post-type/ | |
| function wps_translation_mangler($translation, $text, $domain) { | |
| global $post; | |
| if ($post->post_type == 'events') { | |
| $translations = &get_translations_for_domain( $domain); | |
| if ( $text == 'Scheduled for: <b>%1$s</b>') { | |
| return $translations->translate( 'Event Date: <b>%1$s</b>' ); | |
| } | |
| if ( $text == 'Published on: <b>%1$s</b>') { |
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 | |
| define('CLIENT_ID', 'YOUR_CLIENT_ID'); | |
| define('CLIENT_SECRET', 'YOUR_CLIENT_SECRET'); | |
| define('REDIRECT_URL', 'YOUR_REDIRECT_URL'); // for testing, use the URL to this PHP file. | |
| define('AUTHORIZE_URL', 'https://www.formstack.com/api/v2/oauth2/authorize'); | |
| define('TOKEN_URL', 'https://www.formstack.com/api/v2/oauth2/token'); | |
| if (!empty($_GET['code'])) { | |
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 | |
| App::uses('AppController', 'Controller'); | |
| App::uses('Post', 'Model'); //this is important don't forget to add this | |
| /** | |
| * Posts Controller | |
| * | |
| * @property Post $Post | |
| */ |
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 | |
| // Our input | |
| $time = microtime(true); | |
| // Determining the microsecond fraction | |
| $microSeconds = sprintf("%06d", ($time - floor($time)) * 1000000); | |
| // Creating our DT object | |
| $tz = new DateTimeZone("Etc/UTC"); // NOT using a TZ yields the same result, and is actually quite a bit faster. This serves just as an example. |
Taken from Using MacOSX Lion command line mail with Gmail as SMTP
Edit file /etc/postfix/main.cf
sudo vim /etc/postfix/main.cf
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
| /** | |
| * File Upload Suitelet. | |
| * @param {nlobjRequest} request Request object | |
| * @param {nlobjResponse} response Response object | |
| * @returns {Void} Any output is written via response object | |
| */ | |
| function main(request, response) { | |
| if (request.getMethod() == 'GET') { | |
| /* Build the upload form. */ |
Leaving this for historical reasons, but with the latest iteration I set up proper dotfiles. Check em out
After too many years of tinkering my machine is a bit all over. With Mojave High Sierra Montery I wanted to start fresh
Make sure everything is up to date.
