Skip to content

Instantly share code, notes, and snippets.

@tanis2000
tanis2000 / onsesessiontrace.txt
Created April 24, 2014 14:39
one session trace
2014-04-24 16:37:51.733 Megared Dev[28744:5617] D restkit.object_mapping:RKMapperOperation.m:300 Found mappable data at keyPath '<null>': {
BaseResponse = {
DataObject = {
AvgActivityTime = 12;
DailyGoal = {
ActivityUnit = {
ActivityUnitId = 1;
Name = BEATS;
};
ActivityUnitId = 1;
NSMutableDictionary *mappingsDictionary = [[NSMutableDictionary alloc] init];
// Add DailyGoalDetails->MGRDailyGoalDetail mapping
[mappingsDictionary setObject:[MGRDailyGoalDetail responseMapping] forKey:@"DailyGoalDetails"];
RKMapperOperation *mapper = [[RKMapperOperation alloc] initWithRepresentation:parsedData mappingsDictionary:mappingsDictionary];
RKManagedObjectMappingOperationDataSource *dataSource = [[RKManagedObjectMappingOperationDataSource alloc] initWithManagedObjectContext:[MGRModel sharedModel].managedObjectStore.persistentStoreManagedObjectContext cache:[MGRModel sharedModel].managedObjectStore.managedObjectCache];
dataSource.parentOperation = mapper;
mapper.mappingOperationDataSource = dataSource;
NSError *mappingError = nil;
BOOL isMapped = [mapper execute:&mappingError];
if (isMapped && !mappingError) {
[{"id":"53a2d4f2eec975b1095ef5c7","title":"prova","start":"2014-06-18T22:00:00.000Z","end":"2014-06-19T18:00:27.000Z","allDay":false},{"id":"53a2d4f2eec975b1095ef5c7","title":"prova","start":"2014-06-19T22:00:00.000Z","end":"2014-06-20T18:00:27.000Z","allDay":false},{"id":"53a2d4f2eec975b1095ef5c7","title":"prova","start":"2014-06-20T22:00:00.000Z","end":"2014-06-21T18:00:27.000Z","allDay":false},{"id":"53a2d4f2eec975b1095ef5c7","title":"prova","start":"2014-06-21T22:00:00.000Z","end":"2014-06-22T18:00:27.000Z","allDay":false},{"id":"53a2d4f2eec975b1095ef5c7","title":"prova","start":"2014-06-22T22:00:00.000Z","end":"2014-06-23T18:00:27.000Z","allDay":false},{"id":"53a2d4f2eec975b1095ef5c7","title":"prova","start":"2014-06-23T22:00:00.000Z","end":"2014-06-24T18:00:27.000Z","allDay":false},{"id":"53a2d4f2eec975b1095ef5c7","title":"prova","start":"2014-06-24T22:00:00.000Z","end":"2014-06-25T18:00:27.000Z","allDay":false},{"id":"53a2d4f2eec975b1095ef5c7","title":"prova","start":"2014-06-25T22:00:00.000Z","end":"2
Router.configure({
layoutTemplate: 'layout',
notFoundTemplate: 'not_found',
waitOn: function () {
return [ Meteor.subscribe('currentUser')];
},
load: function() {
}
});
@tanis2000
tanis2000 / packages
Created December 5, 2014 09:58
Sample packages file for Meteor constraint-solver tests
# Meteor packages used by this project, one per line.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.
# Meteor packages
standard-app-packages
accounts-password
accounts-facebook
@tanis2000
tanis2000 / gist:dc734a093fa85b9a363b
Created June 24, 2015 08:22
-Os compiler flag crash dump
Incident Identifier: 6F43E944-87FD-47AD-862B-39F9F27FD3F3
CrashReporter Key: 89f9e3e78858be5a13a7b88568802ebe6ded2c4e
Hardware Model: iPad5,3
Process: SwagUp [980]
Path: /private/var/mobile/Containers/Bundle/Application/BB3EC8D8-5798-43E5-BB36-E3F3C0FDF3E6/SwagUp.app/SwagUp
Identifier: it.altralogica.swagup
Version: 2370 (0.1-dev)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
@tanis2000
tanis2000 / gist:0280059f2cb8709b18b2
Created June 24, 2015 08:39
Crash dump without Crashlytics
Incident Identifier: C43752AB-3A2D-44D7-B025-D56B42E45D5E
CrashReporter Key: 89f9e3e78858be5a13a7b88568802ebe6ded2c4e
Hardware Model: iPad5,3
Process: SwagUp [1018]
Path: /private/var/mobile/Containers/Bundle/Application/73BCFC9E-82EB-41F2-A282-F0D67C3E4047/SwagUp.app/SwagUp
Identifier: it.altralogica.swagup
Version: 2371 (0.1-dev)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
@tanis2000
tanis2000 / gist:5b1d3677e37b4d337e04
Created June 24, 2015 09:12
Console log of autolayout issues
2015-06-24 10:35:44.719 SwagUp[1013:108392] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x17429bdf0 V:[UIImageView:0x155d20030(30)]>",
"<NSLayoutConstraint:0x17429bbc0 V:[UIView:0x155e5d4a0(>=270)]>",
"<NSLayoutConstraint:0x170480b90 V:[UIView:0x155d35390(149)]>",
"<NSLayoutConstraint:0x17828ee70 V:[UIImageView:0x155d20030]-(0)-[UIView:0x155e5d4a0]>",
"<NSLayoutConstraint:0x17828ef60 UIImageView:0x155d20030.top == UIView:0x155d34640.topMargin + 32>",
"<NSLayoutConstraint:0x17828f000 V:[UIView:0x155d35390]-(0)-| (Names: '|':UIView:0x1
@tanis2000
tanis2000 / the_old_one_crash.txt
Created August 30, 2015 19:07
The Old One Mac crash
Process: The Old One - MacOSX [667]
Path: /Users/USER/Downloads/The Old One - MacOSX.app/Contents/MacOS/The Old One - MacOSX
Identifier: unity.Chris Olsen.The Old One - Ludum Dare 33 : You Are the Monster
Version: Unity Player version 5.0.1f1 (5.0.1f1)
Code Type: X86 (Native)
Parent Process: ??? [1]
Responsible: The Old One - MacOSX [667]
User ID: 501
Date/Time: 2015-08-30 21:06:02.374 +0200
@tanis2000
tanis2000 / Main.hx
Created October 2, 2015 09:08
Simple OpenFL example
package;
import openfl.display.Bitmap;
import openfl.display.BitmapData;
import openfl.display.Sprite;
import openfl.display.Graphics;
import openfl.display.CapsStyle;
import openfl.display.JointStyle;
import openfl.display.LineScaleMode;