Skip to content

Instantly share code, notes, and snippets.

2010-05-13 14:25:36.561 BlackCorners[74320:207] dumpView: <UIWindow: 0x5a313b0; frame = (0 0; 320 480); opaque = NO; autoresize = RM+BM; layer = <CALayer: 0x5a31460>>
2010-05-13 14:25:36.562 BlackCorners[74320:207] dumpView: : <UILayoutContainerView: 0x5a320f0; frame = (0 0; 320 480); autoresize = W+H; layer = <CALayer: 0x5a32190>>
2010-05-13 14:25:36.563 BlackCorners[74320:207] dumpView: : | <UINavigationTransitionView: 0x5a33750; frame = (0 0; 320 480); clipsToBounds = YES; autoresize = W+H; layer = <CALayer: 0x5a337f0>>
2010-05-13 14:25:36.563 BlackCorners[74320:207] dumpView: : | : <UIViewControllerWrapperView: 0x5a390d0; frame = (0 64; 320 416); autoresize = W+H; layer = <CALayer: 0x5a49980>>
2010-05-13 14:25:36.564 BlackCorners[74320:207] dumpView: : | : | <UIView: 0x5a3f2a0; frame = (0 0; 320 416); autoresize = W+H; layer = <CALayer: 0x5a3f2d0>>
2010-05-13 14:25:36.566 BlackCorners[74320:207] dumpView: : | : | : <UITableView: 0x600e800; frame = (0 0; 320 460); clipsToBounds = YES; layer = <CALayer: 0x5
<audio id="audioplayer" preload controls loop style="width:424px;">
<source src="audio.mp3">
<source src="audio.caf">
</audio>
<script type="text/javascript">
var audioTag = document.createElement('audio');
if (!(!!(audioTag.canPlayType) && ("no" != audioTag.canPlayType("audio/mpeg")) && ("" != audioTag.canPlayType("audio/mpeg")))) {
AudioPlayer.embed("audioplayer", {soundFile: "audio.mp3"});
}
</script>
//////////////////////////////////////////////////
//////////////////////////////////////////////////
//////////////////////////////////////////////////
// FooDataSource.m
- (void)tableViewDidLoadModel:(UITableView*)tableView {
NSMutableArray* items = [[NSMutableArray alloc] init];
[self addTableItemsToArray:items]; // Implement yourself for your data
TTTableMoreButton *button = [TTTableMoreButton itemWithText:@"Loading More..."];
[items addObject:button];
}
@coneybeare
coneybeare / gist:823927
Created February 12, 2011 17:53
Onclick for Adobe Air Market Downloads
<div id="flashcontent" onclick="$.post('http://www.adobe.com/cfusion/marketplace/remote/uiWidgetsService.cfc',
{ OFFERINGID: '20777', PUBLISHERID: '21008', MARKETPLACEID:'1', method:'trackClickThrough', _:'' } );">
...
</div>
while true; do curl -d "OFFERINGID=20777&PUBLISHERID=21008&MARKETPLACEID=1&method=trackClickThrough&_=" http://www.adobe.com/cfusion/marketplace/remote/uiWidgetsService.cfc; sleep 10; done
@coneybeare
coneybeare / gist:1047295
Created June 26, 2011 06:04
$LOAD_PATH
ruby-1.9.2-p180 :004 > $LOAD_PATH.each{|l| puts l}
/path/to/shared/bundle/ruby/1.8/gems/aws-s3-0.6.2/lib/aws
/path/to/releases/20110619040803/lib
/path/to/releases/20110619040803/vendor
/path/to/releases/20110619040803/app/mailers
/path/to/releases/20110619040803/app/models
/path/to/releases/20110619040803/app/helpers
/path/to/releases/20110619040803/app/controllers
/path/to/releases/20110619040803/vendor/plugins/habtm_checkboxes/lib
/path/to/releases/20110619040803/vendor/plugins/dynamic_form/lib
@coneybeare
coneybeare / gist:1048157
Created June 27, 2011 01:10
Gemfile.lock
GIT
remote: git://github.com/collectiveidea/delayed_job.git
revision: 40fc746e3bd8d4bf095f1cb710efb3d3aff18013
branch: master
specs:
delayed_job (3.0.0.pre)
activesupport
daemons
GIT
$ bundle exec rails c staging
Loading staging environment (Rails 3.0.9)
ruby-1.9.2-p180 :002 > require 'pp'
=> false
ruby-1.9.2-p180 :003 > pp ENV
{"rvm_gemsets_path"=>"/home/[REDACTED]/.rvm/gemsets",
"rvm_scripts_path"=>"/home/[REDACTED]/.rvm/scripts",
"rvm_bin_path"=>"/home/[REDACTED]/.rvm/bin",
"GEM_HOME"=>
"/path/to/shared/bundle/ruby/1.8",
@coneybeare
coneybeare / gist:1049412
Created June 27, 2011 18:13
cat .bundle/config
$ cat .bundle/config
---
BUNDLE_FROZEN: "1"
BUNDLE_DISABLE_SHARED_GEMS: "1"
BUNDLE_WITHOUT: development:test
BUNDLE_PATH: /path/to/shared/bundle
coneybeare $ bundle exec rails c
Loading development environment (Rails 3.0.9)
ruby: main
>> pp ENV
{"Apple_PubSub_Socket_Render"=>"/tmp/launch-2lMuEw/Render",
"BUNDLE_BIN_PATH"=>
"/Users/coneybeare/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.13/bin/bundle",
"BUNDLE_GEMFILE"=>
"/Users/coneybeare/Desktop/delayed_attributes_cache_bug/Gemfile",
"CLICOLOR"=>"1",