Instantly share code, notes, and snippets.

View results.txt
NSLock: 1.175440 sec
NSLock+IMP Cache: 1.120450 sec
pthread_mutex: 0.750234 sec
OSSpinlock: 0.364442 sec
@synchronized: 2.958938 sec
dispatch_sync: 0.816864 sec
objc_sync_enter: 3.057307 sec
MacBook Pro (Retina, 15-inch, Mid 2015)
2.2 GHz Intel Core i7

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?

# Script for generating .p12 files from APNS .cer files.
# Instructions:
# 1. Generate & download the push certificate inside Apple's developer portal
# 2. Import the .cer file into your Mac's Keychain Access, find it in your certificate list, and expand it to show the paired private key.
# 3. Select both the certificate and the paired private key, CTRL-Click & select Export Keys. Save it as Certificates.p12 in the same folder as the downloaded .cer file. You may give it a passphrase if you'd like, but be sure to remember it if you do.
# 4. Execute this shell file, with the format './ <DownloadedCerFilename> <ExportedP12Filename> <OutputP12Filename>'
usage ()
View gist:9956023

OpenCart Issue #1286

This is the full version of the thread for opencart#1286, archived from notification emails.
The discussion has since been deleted almost entirely by OpenCart's developer.
Everyone who posted in it has also been blocked from the OpenCart repo.

Damian Bushong

View gist:2936763
function settitle() { echo -ne "\e]2;$@\a\e]1;$@\a"; }
View gist:2897676
// add child view
UIViewController* controller = [self.storyboard instantiateViewControllerWithIdentifier:@"test"];
[self addChildViewController:controller];
controller.view.frame = CGRectMake(0, 44, 320, 320);
[self.view addSubview:controller.view];
[controller didMoveToParentViewController:self];
// remove child view
UIViewController *vc = [self.childViewControllers lastObject];
[vc.view removeFromSuperview];
View us-state-names-abbrevs.php
/* From */
$us_state_abbrevs_names = array(