Skip to content

Instantly share code, notes, and snippets.

View msingleton's full-sized avatar

Mike Singleton msingleton

View GitHub Profile
{
"event_type": "survey_response",
"survey_response": {
"completed_at": "2018-02-11T04:25:46Z",
"survey": {
"id": "5a7fc5cab3801f005700003f",
"questions": [
{
"id": "5a7fc5cab3801f005700003c",
"company_id": "5a7fc5cab3801f0057000037",
class ViewController: UIViewController {
var mapView: MGLMapView?
init() {
super.init(nibName: nil, bundle: nil)
MGLAccountManager.setMapboxMetricsEnabledSettingShownInApp(true)
mapView = MGLMapView(frame: CGRectNull, accessToken: "FOO")
view.addSubview(mapView!)
### Keybase proof
I hereby claim:
* I am msingleton on github.
* I am msingleton (https://keybase.io/msingleton) on keybase.
* I have a public key whose fingerprint is 252A 756B BEC9 09ED 169B 0819 3F05 7329 E14C 6798
To claim this, I am signing this object:
- (NSRect)statusRectForWindow:(NSWindow *)window
{
NSRect screenRect = [[[NSScreen screens] objectAtIndex:0] frame];
NSRect statusRect = NSZeroRect;
StatusItemView *statusItemView = nil;
if ([self.delegate respondsToSelector:@selector(statusItemViewForPanelController:)])
{
statusItemView = [self.delegate statusItemViewForPanelController:self];
}
<!DOCTYPE html>
<html>
<head>
<title>Array Length Caching</title>
<script type="text/javascript">
// Generate huge array
var bigArray = [];
for(var i = 0; i < 10000000; i++) {
bigArray.push(1);
}
<checkin>
<id>5647470</id>
<created>Sat, 16 Jan 10 22:33:00 +0000</created>
<shout>using fouresquareX on @jillcsteinberg mac</shout>
<venue>
<name>At Home</name>
</venue>
<user>
<id>999</id>
<firstname>Jon</firstname>