Skip to content

Instantly share code, notes, and snippets.

View bazscott's full-sized avatar

Baz Scott bazscott

View GitHub Profile
//
// Copyright © 2015 The CocoaBots. All rights reserved.
import Cocoa
import RealmSwift
enum RealmDocumentError: ErrorType {
case FailedToConvertURLToFilePath
}
@mackuba
mackuba / wwdc15.md
Last active October 30, 2025 15:44
New stuff from WWDC 2015

Here's my own list of the interesting stuff announced during this year's WWDC, collected from the keynotes, various Apple docs, blog posts and tweets.

If you're planning to watch the videos, I really recommend this Mac app that helps you download and watch them: https://github.com/insidegui/WWDC.

OS X El Capitan

http://www.apple.com/osx/elcapitan-preview/

  • split view - two apps side by side on full screen
@oisin
oisin / Log Requests
Last active August 29, 2015 14:09
HTTP Server that will print the JSON arriving from a client.
Simple server which just formats and prints JSON requests.
//
// Copyright © 2015 The CocoaBots. All rights reserved.
import Cocoa
import RealmSwift
enum RealmDocumentError: ErrorType {
case FailedToConvertURLToFilePath
}
@staltz
staltz / introrx.md
Last active January 6, 2026 07:25
The introduction to Reactive Programming you've been missing
@kmonaghan
kmonaghan / wwdc-bingo.html
Last active August 29, 2015 14:01
A quick and dirty page to generate a WWDC bingo card
In a Repo now:
https://github.com/kmonaghan/WWDCBingo

This Gist contains the script and generated output file for an Acer B276HUL.

The pre-generated file below is known to work with:

  • OS X Mavericks
  • OS X Yosemite
  • OS X El Capitan

For El Capitan:

  1. Restart your Mac while holding Command-R: this puts your Mac into Recovery Mode.
static OSStatus
SSLVerifySignedServerKeyExchange(SSLContext *ctx, bool isRsa, SSLBuffer signedParams,
uint8_t *signature, UInt16 signatureLen)
{
OSStatus err;
SSLBuffer hashOut, hashCtx, clientRandom, serverRandom;
uint8_t hashes[SSL_SHA1_DIGEST_LEN + SSL_MD5_DIGEST_LEN];
SSLBuffer signedHashes;
uint8_t *dataToSign;
size_t dataToSignLen;
#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten
@obstschale
obstschale / octave.md
Last active April 12, 2025 00:17
An Octave introduction cheat sheet.