Skip to content

Instantly share code, notes, and snippets.

View gpichot's full-sized avatar

Gabriel Pichot gpichot

View GitHub Profile
@vtalpaert
vtalpaert / iot_mqtt_dancepad.ino
Created January 7, 2021 13:58
Add a DancePad input to your home automation, helps creating cool lighting effects for parties
/*
Add your Wii Dance Dance Revolution Dance Pad Controller as an input to your home automation.
https://en.wikipedia.org/wiki/Dance_pad
For those that want an interactive RGB lights scenery, configure your homeassistant (hass.io)
to change your dancefloor's lighting according to the MQTT signals. Now you are doing your
own light show !
Hardware:
Each dance pad input is a weight sensible resistor. I replaced the original circuit board
@lededje
lededje / testSetup.js
Created January 8, 2018 01:41
This is a gist that patches react-native's components and apis with jest to allow you to use Enzyme's react 16 adapter
import React from 'react';
jest.mock('react-native', () => {
const createMockComponent = (name) => {
const mockedComponent = ({ children }) => (
<div>{children}</div>
);
mockedComponent.displayName = name;
return mockedComponent;
}
@romainl
romainl / .ctags
Last active June 14, 2023 09:19
My ctags config
--langdef=less
--langmap=less:.less
--regex-less=/^[ \t&]*#([A-Za-z0-9_-]+)/\1/i,id,ids/
--regex-less=/^[ \t&]*\.([A-Za-z0-9_-]+)/\1/c,class,classes/
--regex-less=/^[ \t]*(([A-Za-z0-9_-]+[ \t\n,]+)+)\{/\1/t,tag,tags/
--regex-less=/^[ \t]*@media\s+([A-Za-z0-9_-]+)/\1/m,media,medias/
--regex-less=/^[ \t]*(@[A-Za-z0-9_-]+):/\1/v,variable,variables/
--regex-less=/\/\/[ \t]*(FIXME|TODO)[ \t]*\:*(.*)/\1/T,Tag,Tags/
--langdef=scss