Skip to content

Instantly share code, notes, and snippets.

View jdewind's full-sized avatar

Justin DeWind jdewind

  • LifeWorks
  • Grand Rapids
View GitHub Profile
Undefined symbols for architecture i386:
"_kRNCryptorAES256Settings", referenced from:
@jdewind
jdewind / forms.rb
Last active December 24, 2015 06:29
form1 = Formotion::Form.new({
sections: [{
title: "Section 1",
key: :section_one,
select_one: true,
rows: [{
title: "First",
key: :first,
type: :check
},
CookieBot = {
start: function() {
this.clickInterval = setInterval(function(){
// Click the large cook as fast as possible!
$("#bigCookie").click();
}, 1);
this.goldenCookieInterval = setInterval(function() {
Game.goldenCookie.delay = 0;
});
@jdewind
jdewind / sugarcubed.rb
Created September 18, 2013 19:11
Would have expected a name error. However, the method `f` was mixed into the object space.
it "does something" do
@forms.each { |x| f.submit }
end
@interface Car
@property(nonatomic, strong) Engine *engine;
@property(nonatomic, strong) Car *car;
@end
@implementation Car
objection_requires(@"car", @"engine")
@synthesize car, engine;
- (void)awakeFromObjection {
class Car
include Objection::Compose
compose_with :engine, :brakes
awoken do
App::alert("Awake!")
end
end
typedef struct JSObjectionPropertyInfo {
__unsafe_unretained id value;
JSObjectionType type;
} JSObjectionPropertyInfo;
@protocol JSObjectionPropertyReflector <NSObject>
- (JSObjectionPropertyInfo)propertyForClass:(Class)theClass andProperty:(NSString *)propertyName;
@end
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x706f7274
0x3ac44464 in _class_getSuperclass ()
(gdb) bt
#0 0x3ac44464 in _class_getSuperclass ()
#1 0x005de962 in rb_objc_convert_immediate ()
#2 0x002b7d68 in vm_ocval_to_rval ()
#3 0x002ba7f0 in __unnamed_1 ()
#4 0x002ba7f0 in __unnamed_1 ()
#5 0x000a7cb2 in +[JSObjection propertyForClass:andProperty:] (self=0x706f7270, _cmd=<value temporarily unavailable, due to optimizations>, theClass=0x1f9cc7f0, propertyName=0x1f9cd8d0)
class MBProgressHUD
def rac_command=(command)
self.rac_liftSelector "hud_visible=:", withObjects: rac(command).executing.startWith(command.isExecuting).boolean
end
def hud_visible=(visible)
if visible
self.show true
else
self.hide true
@jdewind
jdewind / Gemfile
Last active December 20, 2015 20:49
source "https://rubygems.org"
group :test, :development do
gem 'rake'
end
gem 'bubble-wrap'
gem 'teacup'
gem 'motion-cocoapods'
gem 'motion-objection'