I hereby claim:
- I am chrismiles on github.
- I am chrismiles (https://keybase.io/chrismiles) on keybase.
- I have a public key whose fingerprint is 830F F4A6 3613 7F3F 87DA C42D CE2B 7306 7333 35C2
To claim this, I am signing this object:
#!/bin/sh | |
set -x | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist | |
sleep 10 | |
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist |
I hereby claim:
To claim this, I am signing this object:
let colorSpace = CGColorSpaceCreateDeviceRGB() | |
let componentCount : UInt = 4 | |
let components : [CGFloat] = [ | |
0, 0, 0, 0, | |
1.0, 1.0, 1.0, 1.0, | |
1.0, 1.0, 1.0, 1.0, | |
0, 0, 0, 0 | |
] |
echo "HD Video Download" | |
curl https://developer.apple.com/videos/wwdc/2014/ | grep -iIoh 'http.*._hd_.*dl=1">HD' | sed -e 's/\?dl=1">HD//g' | xargs -n1 wget -N | |
echo "PDFs Download" | |
curl https://developer.apple.com/videos/wwdc/2014/ | grep -iIoh 'http.*.pdf' | sed -e 's/\?dl=1">PDF//g' | xargs -n1 wget -N |
""" File: reveal.py | |
Add to ~/.lldbinit: | |
command script import ~/.lldb-scripts/reveal.py | |
Q: Want to automatically load the Reveal lib on launch while debugging from Xcode? | |
A: In Xcode: | |
Add a Symbolic Breakpoint | |
Symbol: "UIApplicationMain" | |
Action: Debugger Command with value "reveal" |
// | |
// Main Program.h | |
// | |
// | |
// Created by BLE Sensor Tag. | |
// | |
// | |
#include <CoreBluetooth/CoreBluetooth.h> | |
#include "Sensors.h" |
@interface UIImageView (CMAsyncExtension) | |
- (void)asyncLoadImageFromURL:(NSURL *)imageURL; | |
@end | |
@implementation UIImageView (CMAsyncExtension) | |
- (void)asyncLoadImageFromURL:(NSURL *)imageURL | |
{ |
// | |
// NSArray+CMRandomised.h | |
// | |
// Copyright 2011 Chris Miles. All rights reserved. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is |
// | |
// ModelUtil.h | |
// | |
// Copyright 2011 Chris Miles. All rights reserved. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is |
// | |
// UIView+CMExtras.h | |
// | |
// Created by Chris Miles on 9/06/11. | |
// Copyright 2011 Chris Miles. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |