This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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(() => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*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'); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # vim: syntax=sh | |
| . /etc/rc.conf | |
| . /etc/rc.d/functions | |
| daemon_name=php-cgi | |
| BIND=/tmp/php-cgi.socket | |
| USER=gimi |