Skip to content

Instantly share code, notes, and snippets.

View jokeyrhyme's full-sized avatar

Ron Waldon-Howe jokeyrhyme

View GitHub Profile
@jokeyrhyme
jokeyrhyme / browser.log
Created June 23, 2012 07:42
Android logcat for CyanogenMod 9 nightly-20120622 Browser crash
D/dalvikvm( 222): GC_CONCURRENT freed 2506K, 33% free 11982K/17795K, paused 4ms+8ms
D/dalvikvm( 222): GC_EXPLICIT freed 200K, 34% free 11874K/17795K, paused 6ms+5ms
I/ActivityManager( 222): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.browser/.BrowserActivity} from pid 615
I/ActivityManager( 222): Start proc com.android.browser for activity com.android.browser/.BrowserActivity: pid=4436 uid=10003 gids={3003, 1015}
D/OpenGLRenderer( 615): Flushing caches (mode 1)
@jokeyrhyme
jokeyrhyme / brew_install_vim.log
Created October 26, 2012 22:06
brew install vim
## brew --config
HOMEBREW_VERSION: 0.9.3
HEAD: 7a96d11a735e27a319ef7f80b21b0518abad24e8
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CELLAR: /opt/homebrew/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.8.2-x86_64
Xcode: 4.5.1
CLT: 4.5.0.0.1.1249367152
@jokeyrhyme
jokeyrhyme / 01.configure
Created November 2, 2012 08:12
brew install gource (0.38)
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-apple-darwin12.2.0
checking host system type... x86_64-apple-darwin12.2.0
@jokeyrhyme
jokeyrhyme / 01.configure.log
Created November 2, 2012 08:19
brew install gource --env=std (0.38)
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-apple-darwin12.2.0
checking host system type... x86_64-apple-darwin12.2.0
@jokeyrhyme
jokeyrhyme / npm-debug.log
Created March 11, 2013 20:13
Node.JS 0.10.0 + mmmagic 0.3.0
0 info it worked if it ends with ok
1 verbose cli [ '/opt/nvm/v0.10.0/bin/node',
1 verbose cli '/opt/nvm/v0.10.0/bin/npm',
1 verbose cli 'rebuild' ]
2 info using [email protected]
3 info using [email protected]
4 verbose read json /mnt/bignslow/Projects/cdn-sync/package.json
5 verbose read json /mnt/bignslow/Projects/cdn-sync/node_modules/aws-sdk/package.json
6 verbose read json /mnt/bignslow/Projects/cdn-sync/node_modules/colorful/package.json
7 verbose read json /mnt/bignslow/Projects/cdn-sync/node_modules/mmmagic/package.json
@jokeyrhyme
jokeyrhyme / gist:6422170
Created September 3, 2013 10:26
npm -g ls
/usr/local/lib
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
==> Making package: finalterm-git 103.bc408a9-1 (Sat 21 Sep 12:17:04 EST 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating finalterm git repo...
Fetching origin
==> Validating source files with md5sums...
finalterm ... Skipped
==> Extracting sources...
-> Creating working copy of finalterm git repo...
@jokeyrhyme
jokeyrhyme / main.css
Created December 9, 2013 23:42
quick assertions for demonstrating JavaScript stuff in jsFiddle, codepen, etc
p.failed {
color: red;
}
@jokeyrhyme
jokeyrhyme / jquery.ajax.trimreponses.js
Created February 18, 2014 00:28
override jQuery.ajax to auto-trim responseText
(function () {
'use strict';
var oldFn;
oldFn = $.ajax;
$.ajax = function () {
var dfrd = new $.Deferred();
oldFn.apply($, arguments).then(function (data, status, xhr) {
if (!!xhr.responseText) {
data = $.trim(xhr.responseText);
xhr.responseText = data;
@jokeyrhyme
jokeyrhyme / wait-for.js
Last active June 29, 2019 08:38
JavaScript polling
/**
* @param {Function} condition a function that returns `true` or `false`
* @param {Number} [interval=197] the amount of time to wait between tests
* @param {Function} callback a function to invoke when the condition returns `true`
*/
function waitFor(condition, interval, callback) {
'use strict';
if (condition && condition()) {
callback();
} else {