Skip to content

Instantly share code, notes, and snippets.

Cecile Muller cecilemuller

Block or report user

Report or block cecilemuller

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
cecilemuller / VSCode.reg
Last active Apr 24, 2018
Adds a "Open Folder in VSCode" command in Windows Explorer
View VSCode.reg
Windows Registry Editor Version 5.00
@="Open folder in VSCode"
"Icon"="C:\\Program Files\\Microsoft VS Code\\resources\\app\\resources\\win32\\code_file.ico"
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%V\""
cecilemuller / filetype.reg
Created Nov 19, 2017
Windows Registry: filetype icon, name & context menu actions (for Windows 10)
View filetype.reg
Windows Registry Editor Version 5.00
@="MyApp Example File"
cecilemuller / externproto.js
Last active Aug 23, 2017
VRMLScript: calculate the EXTERNPROTO of an undocumented node type
View externproto.js
function getExternproto(nodeType){
var code = '';
var created = Browser.createVrmlFromString(nodeType + '{}');
if (created.length == 1){
var node = created[0];
var nodeType = node.getType();
code += 'EXTERNPROTO ' + nodeType + ' [\n';
var count = node.getNumFields();
for (var i = 0; i < count; i++){
var infos = node.getFieldInfo(i);
cecilemuller / proto.PixelSensor.wrl
Last active Jun 18, 2017
VRML helper to calculate pixel-sensitive sizes without PixelLayer3D
View proto.PixelSensor.wrl
#VRML V2.0 utf8
PROTO PixelSensor [
# Distance to Parallel
# e.g. for z=0 in a Layer3D that uses Viewpoint{position 0 0 10}
field SFFloat distance 10
# FOV of the Layer3D viewpoint
field SFFloat fieldOfView 0.785398
cecilemuller / tsconfig.json
Last active Apr 30, 2017
Flow-style linting and Intellisense (using Typescript) for Javascript
View tsconfig.json
"compilerOptions": {
"noEmit": true,
"allowJs": true,
"checkJs": true,
"moduleResolution": "Node"
"include": [
cecilemuller /
Last active Jun 26, 2019
Using Three.js "examples" (e.g. OrbitControls) with Webpack 2

Javascript files from the examples folder (such as OrbitControls) are not CommonJS or ES Modules, but they can still be used in Webpack bundles:

In package.json:

"dependencies": {
	"three": "0.84.0",
	"webpack": "2.4.1"
cecilemuller / settings.json
Last active May 25, 2017
My Visual Studio Code settings
View settings.json
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.fontSize": 16,
"editor.lineHeight": 24,
"editor.insertSpaces": false,
"editor.detectIndentation": false,
"editor.mouseWheelZoom": true,
"editor.renderWhitespace": "boundary",
"window.title": "${dirty}${activeEditorShort}${separator}${rootName}",
cecilemuller / keybindings.json
Last active May 4, 2017
My Visual Studio Code key bindings
View keybindings.json
"key": "ctrl+shift+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus"
"key": "ctrl+shift+up",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus"
cecilemuller / .travis.yml
Last active Sep 1, 2019
Travis CI config to run headless Node tests via Xvfb
View .travis.yml
language: node_js
- '6.9.1'
- '7.0.0'
sudo: false
- xvfb
cecilemuller / tests.js
Last active Dec 3, 2016
Preact: setState without Enzyme
View tests.js
'use strict';
/* eslint-env mocha, browser */
const assert = require('assert');
const {h, render, Component} = require('preact');
class TestableComponent extends Component {
if (this.props.testable){
You can’t perform that action at this time.