Skip to content

Instantly share code, notes, and snippets.

View sole's full-sized avatar
🌞
🌿🌱

sole sole

🌞
🌿🌱
View GitHub Profile
/*var detectOrientation = function () {
if (window.matchMedia('(orientation: landscape)').matches) {
videoWidth = 135;
videoHeight = 101;
console.log('landscape mode');
} else {
videoWidth = 101;
videoHeight = 135;
console.log('portrait mode');
}
@sole
sole / npm-debug.log
Created November 3, 2014 11:28
doomed npm install
This file has been truncated, but you can view the full file.
40020 silly gunzTarPerm extractEntry README.md
40021 silly gunzTarPerm extractEntry esprima.js
40022 silly gunzTarPerm extractEntry .npmignore
40023 silly gunzTarPerm extractEntry README.md
40024 silly gunzTarPerm extractEntry test/root-nomount.js
40025 silly gunzTarPerm extractEntry test/root.js
40026 silly gunzTarPerm extractEntry test/index.html
40027 silly gunzTarPerm extractEntry .travis.yml
40028 silly gunzTarPerm extractEntry lib/code.js
40029 silly gunzTarPerm extractEntry example/line_count_options.js
@sole
sole / attempt1.log
Created November 3, 2014 12:37
npm install log
lol:macchina_infinity sole$ rm -rf node_modules/ npm-debug.log
lol:macchina_infinity sole$ npm install
> openmusic-white-noise@1.0.1 postinstall /Users/sole/pdata/macchina_infinity/node_modules/openmusic-brown-noise/node_modules/openmusic-white-noise
> gulp build
\
module.js:340
throw err;
^
@sole
sole / npm-debug.log
Created November 3, 2014 16:02
npm2-debug.log
This file has been truncated, but you can view the full file.
34017 verbose lock using /Users/sole/.npm/_locks/readable-stream-8e72619de60e4c69.lock for /Users/sole/data/tmp/m_i/node_modules/browserify/node_modules/labeled-stream-splicer/node_modules/stream-splicer/node_modules/readable-stream
34018 verbose lock using /Users/sole/.npm/_locks/readable-wrap-8174500540adac3b.lock for /Users/sole/data/tmp/m_i/node_modules/browserify/node_modules/labeled-stream-splicer/node_modules/stream-splicer/node_modules/readable-wrap
34019 silly gunzTarPerm extractEntry test/vectors/byte0013.dat
34020 silly gunzTarPerm extractEntry test/vectors/byte0014.dat
34021 silly install write writing indexof 0.0.1 to /Users/sole/data/tmp/m_i/node_modules/browserify/node_modules/labeled-stream-splicer/node_modules/stream-splicer/node_modules/indexof
34022 silly cache addNamed cb indexof@0.0.1
34023 verbose unbuild node_modules/browserify/node_modules/labeled-stream-splicer/node_modules/stream-splicer/node_modules/indexof
34024 verbose unlock done using /Users/sole/.npm/_locks/shasum-4a2e8a4ae5a8f
@sole
sole / boom.txt
Created March 25, 2015 15:18
boom.txt
hey actor conn1.child22/styleSheetsActor8
*************************
A coding exception was thrown and uncaught in a Task.
Full message: TypeError: this._tabPool is null
Full stack: BTA_createStyleSheetActor@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/actors/webbrowser.js:109:93
exports.StyleSheetsActor<._addStyleSheets/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/actors/stylesheets.js:11:93
TaskImpl_run@resource://gre/modules/Task.jsm:10:439
TaskImpl@resource://gre/modules/Task.jsm:9:98
createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:6:32
@sole
sole / convert.sh
Created April 12, 2015 14:18
converting audio files in batch
(for FILE in *.wav; do ffmpeg -i "$FILE" -f mp3 -ab 256000 -map_metadata 0 -id3v2_version 3 "`basename "$FILE" .wav`.mp3" || break; done)
@sole
sole / ibeacon.js
Last active August 29, 2015 14:21 — forked from janjongboom/ibeacon.js
navigator.mozBluetooth.defaultAdapter.startLeScan([]).then(handle => {
console.log('Start scanning', handle);
handle.ondevicefound = e=> {
var record = parseScanRecord(e.scanRecord);
if (record) {
console.log('Found an iBeacon', record.uuid, record.major, record.minor, e.rssi);
}
}
setTimeout(() => {
google-chrome --user-agent="Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_7; en-us) AppleWebKit/533.4 (KHTML, like Gecko) Version/4.1 Safari/533.4"
@sole
sole / galaxy.c
Created September 10, 2010 22:45
// Copyright (C) 2009 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@sole
sole / thumbpdf.diff
Created September 26, 2010 20:29
make thumbpdf behave nicely when called from python
diff /usr/bin/thumbpdf /usr/bin/thumbpdf.bak
1c1,5
< #!/usr/bin/env perl
---
> eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' && eval 'exec perl -S $0 $argv:q'
> if 0;
> use strict;
> $^W=1; # turn warning on
> #