Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Clif Reeder clifff

🏠
Working from home
View GitHub Profile
@clifff
clifff / gist:4066937
Created Nov 13, 2012
Droid Bionic ADB Logs
View gist:4066937
11-12 14:31:14.553 497 797 I ActivityManager: Starting: Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=http://www.bruinsnation.com/2012/11/11/3631264/veterans-day-thank-you-to-all-who-serve cmp=com.android.browser/.BrowserActivity } from pid 2679
11-12 14:31:15.358 2679 2679 I browser : Console: Error: Too much time spent in unload handler. http://static.getclicky.com/js:1
11-12 14:31:15.413 2679 2681 D dalvikvm: GC_CONCURRENT freed 2084K, 47% free 5214K/9671K, external 3354K/3630K, paused 5ms+3ms
11-12 14:31:16.710 2679 2701 V SQLiteDatabaseWrapper: enter SQLiteDatabaseWrapper.insert()
11-12 14:31:17.936 2679 2679 I browser : Console: Starting to load [CreativeUnit banner (1)] http://www.bruinsnation.com/2012/11/11/3631264/veterans-day-thank-you-to-all-who-serve:518
11-12 14:31:17.936 2679 2679 I browser : Console: Phase 'generic' started. http://www.bruinsnation.com/2012/11/11/3631264/veterans-day-thank-you-to-all-who-serve:526
11-12 14:31:17.936 2679 267
@clifff
clifff / gist:4066928
Created Nov 13, 2012
Droid Bionic ADB Log 2/2
View gist:4066928
11-12 14:37:36.949 497 746 I ActivityManager: Starting: Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=http://www.sbnation.com/ cmp=com.android.browser/.BrowserActivity } from pid 3169
11-12 14:37:37.340 3169 3191 V SQLiteDatabaseWrapper: enter SQLiteDatabaseWrapper.update()
11-12 14:37:37.340 3169 3192 V SQLiteDatabaseWrapper: enter SQLiteDatabaseWrapper.update()
11-12 14:37:37.347 3169 3179 V SQLiteDatabaseWrapper: enter SQLiteDatabaseWrapper.update()
11-12 14:37:39.472 3169 3171 D dalvikvm: GC_CONCURRENT freed 1229K, 46% free 4017K/7431K, external 3354K/3560K, paused 3ms+11ms
11-12 14:37:39.926 3169 3181 D dalvikvm: GC_FOR_MALLOC freed 653K, 45% free 4235K/7623K, external 3249K/3560K, paused 23ms
11-12 14:37:41.597 852 852 I wpa_supplicant: CTRL-EVENT-STATE-CHANGE id=1 state=4 BSSID=00:00:00:00:00:00
11-12 14:37:41.597 497 924 V WifiMonitor: Event [CTRL-EVENT-STATE-CHANGE id=1 state=4 BSSID=00:00:00:00:00:00]
11-12 14:37:41.597 497 577 V WifiSt
@clifff
clifff / gist:4066861
Created Nov 13, 2012
HTC Thunderbolt ADB Log 1/3
View gist:4066861
D/dalvikvm(14127): GC_CONCURRENT freed 1056K, 58% free 5146K/11975K, external 1168K/1313K, paused 3ms+6ms
D/skia (14127): purging 193K from font cache [28 entries]
D/skia (14127): createPlugin (300,150) screen proportion:(w,h)=(0.791557,0.057826), content ratio:2.000000 mainUrl:http://athleticsnation.local:3000/2012/10/23/3543068/simple-question-giants-or-tigers
D/skia (14127): createPlugin F10 typical2 video content (300,150)/(379,2594), url=
D/webcore (14127): [WebViewCore::handleMessage] handle msg=[4::120] over 1 sec. (1038.0
D/skia (14127): purging 193K from font cache [27 entries]
D/dalvikvm(14127): GC_CONCURRENT freed 1825K, 63% free 4497K/11975K, external 1168K/1313K, paused 3ms+6ms
D/webcore (14127): [WebViewCore::checkBlock] mHandleClass=3 mHandleMsgId=1 mHandleStartTime=385.0 hascode-0=1079596336
D/webcore (14127): [WebViewCore::checkBlock] == m_bIsPauseTimes=false, mLastHandleMsg=null --d1=1.352745715978E12 d2=948.0
W/ContentService( 1646): binderDied() at ObserverNode name allowed_geo
@clifff
clifff / gist:3406515
Created Aug 20, 2012
month plus ordinal date
View gist:3406515
def date_whatever(time,tz=false)
return "" if time.nil?
if time.kind_of? String
time = Time.parse(time)
end
tz = TzTime.zone unless tz
time = tz.utc_to_local(time.utc)
month = time.strftime("%B")
day = time.day.ordinalize
View gist:3132444
c_cyan=`tput setaf 6`
c_red=`tput setaf 1`
c_green=`tput setaf 2`
c_sgr0=`tput sgr0`
parse_git_branch ()
{
if git rev-parse --git-dir >/dev/null 2>&1
then
gitver=$(git branch 2>/dev/null| sed -n '/^\*/s/^\* //p')
@clifff
clifff / live.json
Created Jun 14, 2012
Syllabus live.json example
View live.json
{
"entries":[
{
"body":"<p>Tim Cook announces iOS 6</p>\n",
"id":1788,
"pinned":false,
"sequence":318000,
"timestamp":"2012-05-29T15:40:43Z",
"published_at":"2012-05-29 14:26:38 -0400"
},
@clifff
clifff / gist:2846239
Created May 31, 2012
git + colors in bash
View gist:2846239
c_cyan=`tput setaf 6`
c_red=`tput setaf 1`
c_green=`tput setaf 2`
c_sgr0=`tput sgr0`
parse_git_branch ()
{
if git rev-parse --git-dir >/dev/null 2>&1
then
gitver=$(git branch 2>/dev/null| sed -n '/^\*/s/^\* //p')
View gist:2340225
5.times do | j |
Story.create(:user => users[:author], :community => com,
:title => "This is test story ##{j}",
:body => test_body(j), :draft => false, :front_page => true)
end
@clifff
clifff / gist:986229
Created May 23, 2011
Google Code Jam Rakefile sample output
View gist:986229
[master] clifff@~/Programming/code_jam/hangman: rake
(in /Users/clifff/Programming/code_jam/hangman)
Testing hangman.rb against works/sample.in...
Great success!
Testing hangman.rb against fails/B-small-attempt0.in...
Not a total failure!
Testing hangman.rb against fails/B-small-attempt4.in...
FAIL. Current program matched a known bad output!
@clifff
clifff / gist:742237
Created Dec 15, 2010
javascript-last.fm-api jsonp callback non-uniqueness
View gist:742237
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<script type="text/javascript" src="js/lastfm.api.md5.js"></script>
<script type="text/javascript" src="js/lastfm.api.js"></script>
<script type="text/javascript" src="js/lastfm.api.cache.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script>
/* Create a LastFM object */
You can’t perform that action at this time.