Skip to content

Instantly share code, notes, and snippets.

🌞
🌿🌱

sole sole

🌞
🌿🌱
Block or report user

Report or block sole

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:9c83f12f1564af66ee43
// List of all CSS properties parsed by servo as of 2016-01-08
// To extract again, build Servo and search for `is_supported_property`
// in the generated file target/debug/build/style-*/out/properties.rs
background
margin
padding
border-color
border-style
border-width
View 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(() => {
@sole
sole / convert.sh
Created Apr 12, 2015
converting audio files in batch
View convert.sh
(for FILE in *.wav; do ffmpeg -i "$FILE" -f mp3 -ab 256000 -map_metadata 0 -id3v2_version 3 "`basename "$FILE" .wav`.mp3" || break; done)
View 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
View npm-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
@sole
sole / attempt1.log
Created Nov 3, 2014
npm install log
View attempt1.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 Nov 3, 2014
doomed npm install
View npm-debug.log
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
@sole
sole / titles.html
Created Apr 16, 2014
Best titles list ever
View titles.html
<select name="title">
<option value=""></option>
<option value="Mr">Mr</option>
<option value="Mrs">Mrs</option>
<option value="Miss">Miss</option>
<option value="Ms">Ms</option>
<option value="Dr">Dr</option>
<option value="Admiral">Admiral</option>
<option value="Air Comm">Air Comm</option>
<option value="Ambassador">Ambassador</option>
View gist:9234924
/*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 / gist:4121881
Created Nov 20, 2012 — forked from Ricket/gist:2044441
Three.js mouse picking
View gist:4121881
var projector = new THREE.Projector();
var ray = projector.pickingRay( mouseCoord, camera ); // (mouse coord are in screenspace and must be [-1, 1])
var objects = ray.intersectObjects( scene.children );
if( objects.length )
{
objects[ 0 ].object; // THREE.Particule or THREE.Mesh
objects[ 0 ].face; // THREE.Face3 or THREE.Face4 (is .object is a Mesh
objects[ 0 ].point; // THREE.Vector3
}
You can’t perform that action at this time.