This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func captureSession(_ session: RoomCaptureSession, didChange room: CapturedRoom) { | |
for surface in room.walls { | |
if let frame = self.arView.session.currentFrame { | |
var image: CGImage? = nil | |
VTCreateCGImageFromCVPixelBuffer(frame.capturedImage, options: nil, imageOut: &image) | |
let wallTransform = surface.transform | |
let cameraTransform = frame.camera.transform | |
let intrinsics = frame.camera.intrinsics | |
let projectionMatrix = frame.camera.projectionMatrix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ISO8601OptionalFractionalSecondsDateFormatter: ISO8601DateFormatter { | |
static let withoutFractionalSeconds = ISO8601DateFormatter() | |
func setup() { | |
formatOptions = [.withInternetDateTime, .withFractionalSeconds] | |
} | |
override init() { | |
super.init() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)backgroundContextDidSaveNotification:(NSNotification*)notification | |
{ | |
for (NSManagedObject *object in notification.userInfo[NSDeletedObjectsKey]) { | |
NSLog(@"deleted: %@", object.entity.name); | |
} | |
// the background moc saved - merge changes | |
NSManagedObjectContext *context = [self managedObjectContext]; | |
void (^mergeChanges) (void) = ^ { | |
[context mergeChangesFromContextDidSaveNotification:notification]; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select { | |
-khtml-appearance: none; | |
display: block; | |
height: 30px; | |
width: 68px; | |
font-size: 15px; | |
text-align: top; | |
line-height: 12px; | |
padding: 0 10px; | |
color: #aaa; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INFO ~ Starting build process... | |
INFO ~ Loaded project at: /builds/automated/8576/src/client/scale_ui | |
INFO ~ Building targets: /scale_ui,/sproutcore/jquery,/sproutcore/runtime,/sproutcore/handlebars,/sproutcore/yuireset,/sproutcore/core_foundation,/sproutcore/routing,/sproutcore/datetime/core,/sproutcore/datetime,/sproutcore/datetime/localized,/sproutcore/ajax,/sproutcore/foundation,/sproutcore/desktop,/sproutcore/datastore,/sproutcore/statechart,/sproutcore,/scale_model,/sproutcore/empty_theme,/sproutcore/ace | |
INFO ~ Building languages: en | |
INFO ~ Building manifest for: /scale_ui:en | |
INFO ~ Building manifest for: /sproutcore/jquery:en | |
INFO ~ Building manifest for: /sproutcore/runtime:en | |
INFO ~ Building manifest for: /sproutcore/handlebars:en | |
INFO ~ Building manifest for: /sproutcore/yuireset:en | |
INFO ~ Building manifest for: /sproutcore/core_foundation:en |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ScaleUI.taskTagController = SC.ArrayController.create( | |
/** @scope ScaleUI.taskTagController.prototype */ { | |
queuedTasks: function() { | |
var content = this.get('content'); | |
if(!SC.none(content)) { | |
return content.filterProperty('state', TaskState.QUEUED); | |
} | |
}.property('@each.state').cacheable(), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ListviewTest.testController = SC.ArrayController.create({ | |
content: [ { 'name': 'Item 1', 'description': 'This is item 1' }, | |
{ 'name': 'Item 2', 'description': 'This is item 2' } ], | |
}); | |
ListviewTest.mainPage = SC.Page.design({ | |
// The main pane is made visible on screen as soon as your app is loaded. | |
// Add childViews to this pane for views to display immediately on page |
NewerOlder