Skip to content

Instantly share code, notes, and snippets.

import GUI from "lil-gui";
import type { Entity } from "aframe";
AFRAME.registerComponent("lil-gui", {
init: function () {
// Add styles for folder titles
const style = document.createElement("style");
style.textContent = `
.lil-gui .entity-title {
font-size: 1.2em;
@vincentfretin
vincentfretin / flatten_redux.bash
Last active August 29, 2015 14:27
Flatten redux and react-redux for react native playground
cd /tmp
npm install [email protected]
cat node_modules/redux/src/createStore.js node_modules/redux/src/utils/* > redux.js
sed -e 's@^export default @@' -e 's@^export @@' -e 's@^import.*@@' \
-e 's@`"${actionType.toString()}"`@actionType.toString()@' \
redux.js >redux_wo_import_export.js
cat << "EOF" >> redux_wo_import_export.js
@vincentfretin
vincentfretin / check_containers.bash
Created August 17, 2015 12:30
script to check all your ubuntu(debootstrap):14.04 containers for updates, uses https://github.com/mafr/docker-update-check
./update-check run
./update-check update
for container in `docker ps -q`; do
./update-check check $container
docker inspect --format '{{.Name}}' $container
done