Skip to content

Instantly share code, notes, and snippets.

@coneybeare
coneybeare / gist:1101665
Created July 23, 2011 17:35
sample html signature
<br />
<br />
<div id="sig" style="min-width: 960px; min-height: 82px; line-height: 18px; margin: 6px 0; padding: 8px; border-top: 1px #999999 dotted; border-bottom: 1px #999999 dotted; font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif; font-size: 12px; color: #999999; " >
<a href="http://urbanapps.com" title="urbanapps.com"><img src="http://.../images/logo_noshad_80.png" alt="Urban Apps" style="float: left; padding: 2px 6px 0 0; border: none;"></a>
<div style="padding: 6px 0 0 0">
<span style="font-size:14px"><strong style="color: #333333">Matt Coneybeare</strong>, Founder</span><br />
<strong><a href="http://urbanapps.com" title="urbanapps.com" style="color: #666666; text-decoration: none; border-bottom: 1px #cccccc dotted;">Urban Apps, LLC</a></strong><br />
PO Box 765, Centereach, New York, 11720, U.S.A. | Telephone: 347.688.7226 | Fax: 631.615.6716<br />
<a href="http://twitter.com/urbanapps"><img src="http://.../images/social/twitter_16.png" alt="Twitter" style="float: left; m
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",
@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
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: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
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: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>
//////////////////////////////////////////////////
//////////////////////////////////////////////////
//////////////////////////////////////////////////
// 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];
}
<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>