Skip to content

Instantly share code, notes, and snippets.

View JALsnipe's full-sized avatar
🥴

Josh Lieberman JALsnipe

🥴
View GitHub Profile
@JALsnipe
JALsnipe / importFoundation
Created April 17, 2015 16:36
Swift REPL import Foundation
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
#include <sys/types.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/cdefs.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
#error Unsupported architecture
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoun
@JALsnipe
JALsnipe / 8.1.2(3).log
Created January 21, 2015 18:48
VideoCore 8.1.2 (12B440)
2015-01-21 13:46:40.812 SampleBroadcaster[465:150188] Creating context
2015-01-21 13:46:40.923 SampleBroadcaster[465:150188] Context creation succeeded
Apple::AudioMixer2015-01-21 13:46:43.126 SampleBroadcaster[465:150188] Received memory warning.
(lldb) bt all
* thread #1: tid = 0x24aac, 0x331c1518 libsystem_kernel.dylib`mach_msg_trap + 20, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x331c1518 libsystem_kernel.dylib`mach_msg_trap + 20
frame #1: 0x331c1310 libsystem_kernel.dylib`mach_msg + 40
frame #2: 0x252c759a CoreFoundation`__CFRunLoopServiceMachPort + 146
frame #3: 0x252c5b60 CoreFoundation`__CFRunLoopRun + 1016
frame #4: 0x25212b30 CoreFoundation`CFRunLoopRunSpecific + 476
@JALsnipe
JALsnipe / 8.1.2(2).log
Created January 21, 2015 17:53
VideoCore 8.1.2 (12B440)
2015-01-21 12:52:24.208 SampleBroadcaster[197:5577] Creating context
2015-01-21 12:52:24.359 SampleBroadcaster[197:5577] Context creation succeeded
Apple::AudioMixer2015-01-21 12:52:24.701 SampleBroadcaster[197:5663] Focus mode not supported: AVCaptureFocusModeContinuousAutoFocus
2015-01-21 12:52:24.702 SampleBroadcaster[197:5663] Exposure mode not supported: AVCaptureExposureModeContinuousAutoExposure
(lldb) bt all
* thread #1: tid = 0x15c9, 0x35a5a518 libsystem_kernel.dylib`mach_msg_trap + 20, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x35a5a518 libsystem_kernel.dylib`mach_msg_trap + 20
frame #1: 0x35a5a310 libsystem_kernel.dylib`mach_msg + 40
frame #2: 0x27b6059a CoreFoundation`__CFRunLoopServiceMachPort + 146
frame #3: 0x27b5eb60 CoreFoundation`__CFRunLoopRun + 1016
@JALsnipe
JALsnipe / 8.0.2.log
Created January 21, 2015 17:43
VideoCore 8.0.2 (12A405)
2015-01-21 12:35:02.810 SampleBroadcaster[1681:4235325] Creating context
2015-01-21 12:35:02.890 SampleBroadcaster[1681:4235325] Context creation succeeded
Apple::AudioMixer(lldb) bt all
* thread #1: tid = 0x40a03d, 0x33339518 libsystem_kernel.dylib`mach_msg_trap + 20, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x33339518 libsystem_kernel.dylib`mach_msg_trap + 20
frame #1: 0x33339310 libsystem_kernel.dylib`mach_msg + 40
frame #2: 0x25552dca CoreFoundation`__CFRunLoopServiceMachPort + 146
frame #3: 0x25551390 CoreFoundation`__CFRunLoopRun + 1016
frame #4: 0x2549edb0 CoreFoundation`CFRunLoopRunSpecific + 476
frame #5: 0x2549ebc2 CoreFoundation`CFRunLoopRunInMode + 106
@JALsnipe
JALsnipe / 8.1.2.log
Created January 21, 2015 17:42
VideoCore 8.1.2 (12B440)
2015-01-21 12:37:30.095 SampleBroadcaster[339:137898] Creating context
2015-01-21 12:37:30.264 SampleBroadcaster[339:137898] Context creation succeeded
Apple::AudioMixer(lldb) bt all
* thread #1: tid = 0x21aaa, 0x331c1518 libsystem_kernel.dylib`mach_msg_trap + 20, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x331c1518 libsystem_kernel.dylib`mach_msg_trap + 20
frame #1: 0x331c1310 libsystem_kernel.dylib`mach_msg + 40
frame #2: 0x252c759a CoreFoundation`__CFRunLoopServiceMachPort + 146
frame #3: 0x252c5b60 CoreFoundation`__CFRunLoopRun + 1016
frame #4: 0x25212b30 CoreFoundation`CFRunLoopRunSpecific + 476
frame #5: 0x25212942 CoreFoundation`CFRunLoopRunInMode + 106
@JALsnipe
JALsnipe / download.js
Last active August 29, 2015 14:07 — forked from adammw/download.js
/*
* CLI Tool to download streamable songs from SoundCloud API
* Requires Node.js, Flow-JS and cli libraries
*/
var cli = require('cli').enable('status'),
fs = require('fs'),
flow = require('flow'),
path = require('path'),
SC = require('./node-soundcloud.js');
#import <Foundation/Foundation.h>
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 80000
@interface NSString (PSPDFModernizer)
// Added in iOS 8, retrofitted for iOS 7
- (BOOL)containsString:(NSString *)aString;
@end
@JALsnipe
JALsnipe / iOS.gitignore
Created August 24, 2014 23:09
Applico iOS .gitignore
# Xcode
.DS_Store
*/build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
#!/usr/bin/env python
# -----------------------------------------------------------------------------
# calc.py
#
# A simple calculator with variables. This is from O'Reilly's
# "Lex and Yacc", p. 63.
#
# Class-based example contributed to PLY by David McNab
# -----------------------------------------------------------------------------
SELECT cno, dname, b.count_of_students
FROM
(SELECT COUNT(*) AS num_of_students
FROM student s, enroll e
WHERE s.sid = e.sid) a,
(
SELECT c.cno, c.dname, COUNT(*) as count_of_students
FROM course c RIGHT OUTER JOIN enroll e
ON c.cno = e.cno
WHERE c.cno = e.cno AND c.dname = e.dname