Skip to content

Instantly share code, notes, and snippets.

@SpacyRicochet
SpacyRicochet / Appfile
Created May 20, 2015 14:03
Fastlane setup
app_name "Some App"
for_lane "beta" do
app_identifier "com.someapp.someapp-ios.adhoc"
team_name "Some Company Ltd."
end
@SpacyRicochet
SpacyRicochet / CalendarTabImage.swift
Last active August 29, 2015 14:22
drawViewHierarchyFromRect fails to work.
extension UIImage
{
class func calendarTabImageWithCurrentDate() -> UIImage
{
return calendarTabImageWithDate(NSDate())
}
class func calendarTabImageWithDate(date: NSDate) -> UIImage
{
let dateFormatter = NSDateFormatter()
@SpacyRicochet
SpacyRicochet / Crash
Created June 16, 2015 18:29
Nuclear Throne crash report 2015-06-16
Process: Mac_Runner [1509]
Path: /Users/USER/Library/Application Support/Steam/*/nuclearthrone.app/Contents/MacOS/Mac_Runner
Identifier: com.vlambeer.nuclearthrone
Version: 1.0.3 (1.0.3)
Code Type: X86 (Native)
Parent Process: ??? [1]
Responsible: Mac_Runner [1509]
User ID: 501
Date/Time: 2015-06-16 20:26:33.831 +0200
@SpacyRicochet
SpacyRicochet / crash.log
Created July 19, 2015 08:11
Darkest Dungeon crash
Process: Darkest [2788]
Path: /Users/USER/Library/Application Support/Steam/*/Darkest.app/Contents/MacOS/Darkest
Identifier: com.redhookgames.Darkest
Version: 1.0 (1)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Darkest [2788]
User ID: 501
Date/Time: 2015-07-19 10:03:08.962 +0200
@SpacyRicochet
SpacyRicochet / Fastfile
Last active September 17, 2015 07:32
Example fastlane setup
fastlane_version "1.26.0"
lane :beta do |options|
check
end
private_lane :check do |options|
# ensure_git_status_clean
increment_build_number
@SpacyRicochet
SpacyRicochet / MBEntityTest.j
Created July 17, 2011 22:23
Simple OJUnit test failing
@implementation MBEntity : OJTestCase
{
//MBEntity testEntity;
}
- (void)testTest
{
[self assertTrue:true];
}
@SpacyRicochet
SpacyRicochet / MBMonsterTest_snippet.j
Created August 27, 2011 18:11
Unit test that goes odd
@import "../MBMonster.j"
@implementation MBMonsterTest : OJTestCase
{
MBMonster testMonster;
}
- (void)setUp
{
// Use MBMonster's default initialization.
@SpacyRicochet
SpacyRicochet / monster_model.js
Created October 4, 2011 20:05
Unit test default initialization
BagOfTricks.Monster = SC.Record.extend(
/** @scope BagOfTricks.Monster.prototype */ {
name: SC.Record.attr(String, { defaultValue: 'Unspecified' }),
level: SC.Record.attr(Number, { defaultValue: 0 }),
keywords: SC.Record.attr(Array, { defaultValue: function() { return [ 'Unspecified' ] } })
}
);
@SpacyRicochet
SpacyRicochet / Simple toMany test
Created October 10, 2011 22:25
Simple test to see if creating and pushing Records works.
// Testing the relations
// DON'T FORGET TO SET THE ID! THIS IS IMPORTANT!
var testSpeed = BagOfTricks.store.createRecord( BagOfTricks.Speed, {}, 2 );
defaultMonster.get('speeds').pushObject(testSpeed);
equals(defaultMonster.get('speeds').objectAt(0), testSpeed, 'relation to speed'); // AND USE objectAt()!
@SpacyRicochet
SpacyRicochet / quickAndDirtyNewsArticle.html
Created November 2, 2011 15:35
Quick and dirty html template for news articles in iPad app.
<!DOCTYPE html>
<style type="text/css">
p.clear {
clear:both;
}
img.newsPhoto {
border-radius: 3px;
border: 3px solid #fff;
box-shadow: 0px 2px 2px #888888;
}