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
cecilemuller / launch.json
Created Jan 8, 2018
Run ts-node in VSCode Debugger
View launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Node Inspector",
"type": "node",
"request": "launch",
"args": ["${workspaceRoot}/src/service.ts"],
"runtimeArgs": ["-r", "ts-node/register"],
"cwd": "${workspaceRoot}",
@cecilemuller
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
[-HKEY_CLASSES_ROOT\Directory\Background\shell\vscode]
[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode]
@="Open folder in VSCode"
"Icon"="C:\\Program Files\\Microsoft VS Code\\resources\\app\\resources\\win32\\code_file.ico"
[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command]
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%V\""
@cecilemuller
cecilemuller / wallaby.chrome.js
Last active Jan 2, 2018
Wallaby.js for Typescript
View wallaby.chrome.js
'use strict';
const wallabyWebpack = require('wallaby-webpack');
// Headless Chrome tests
module.exports = wallaby => ({
debug: true,
testFramework: 'jasmine',
files: [
{pattern: 'src/**/*.ts', load: false},
'!src/**/*.spec.ts',
View Vagrantfile
Vagrant.configure(2) do |configs|
configs.vm.define "mosquitto", autostart: true do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.box_check_update = true
config.vm.network "forwarded_port", guest: 1883, host: 1883
config.vm.provider "virtualbox" do |vb|
@cecilemuller
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
[HKEY_CLASSES_ROOT\.myext]
[HKEY_CLASSES_ROOT\.myext\OpenWithProgids]
"MYAPP.myext"=""
[HKEY_CLASSES_ROOT\MYAPP.myext]
@="MyApp Example File"
@cecilemuller
cecilemuller / proto.CoordinateTransformer.wrl
Created Aug 26, 2017
VRMLScript: Transform a Coordinate node
View proto.CoordinateTransformer.wrl
# There is a bug that prevents making a proto wrapping a Coordinate + Script
# (initialize isn't even called), hence this proto instead (which works but is more verbose).
PROTO CoordinateTransformer [
field SFNode coord Coordinate {}
exposedField SFVec3f translation 0 0 0
exposedField SFRotation rotation 0 0 1 0
]{
Script {
field MFVec3f point []
@cecilemuller
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
cecilemuller / blur_panoramas.jsx
Created Aug 5, 2017
After Effect: create a composition per footage and postprocess it using Mettle Skybox Blur
View blur_panoramas.jsx
/**
* @file Creates a composition for every panorama and adds 360 blur.
*/
var renderQueue = app.project.renderQueue;
var footages = new Array();
for (i = 1; i <= app.project.numItems; i++){
var item = app.project.item(i);
if ((item instanceof FootageItem) && (item.mainSource instanceof FileSource) && (item.mainSource.isStill)){
@cecilemuller
cecilemuller / proto.CurvedText.wrl
Created Jul 11, 2017
VRML: Dynamic 3D curved text
View proto.CurvedText.wrl
#VRML V2.0 utf8
PROTO Letter [
exposedField SFNode appearance NULL
exposedField MFString string []
exposedField SFNode fontStyle NULL
exposedField SFVec3f translation 0 0 0
exposedField SFRotation rotation 0 0 1 0
exposedField SFVec3f scale 1 1 1
@cecilemuller
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
You can’t perform that action at this time.