Skip to content

Instantly share code, notes, and snippets.

View xseignard's full-sized avatar
🦄
Internet thuggin'

Xavier Seignard xseignard

🦄
Internet thuggin'
View GitHub Profile
@xseignard
xseignard / xbee.ino
Created December 23, 2022 16:59 — forked from bgentry/xbee.ino
XBee ZigBee HA interaction, Arduino example
/**
This is an implementation of Zigbee device communication using an XBee
and a Centralite Smart Switch 4256050-ZHAC
dave (www.desert-home.com)
source: http://www.desert-home.com/2014/10/zigbee-protocol-xbee-but-this-time.html
*/
// This code will handle both a Uno and a Mega2560 by careful use of
// the defines. I tried it on both of them, and the only problem is that
@xseignard
xseignard / FastList.tsx
Created March 12, 2021 17:25 — forked from derekstavis/FastList.tsx
Discord's FastList, but in TypeScript
import { forEachObjIndexed } from "ramda";
import * as React from "react";
import {
Animated,
ScrollView,
View,
ViewStyle,
LayoutChangeEvent,
NativeScrollEvent,
} from "react-native";
@xseignard
xseignard / state.json
Last active August 30, 2019 21:49 — forked from osarrouy/state.json
Fundraising React State | After Reducer
{
"constants": {
"PPM": BigNumber,
"PCT_BASE": BigNumber
},
"values": {
"maximumTapIncreasePct": BigNumber
},
"network": {
"id": Number,
@xseignard
xseignard / compile-ffmpeg-nvenc.sh
Last active September 6, 2017 08:57 — forked from richardzhang0301/compile-ffmpeg-nvenc.sh
This bash script will compile a static Ffmpeg build with NVENC hardware-accelerated support on Ubuntu in your home directory. You can modify the script to customize the build options as you see fit.
#!/bin/bash
#This script will compile and install a static ffmpeg build with support for nvenc un ubuntu.
#See the prefix path and compile options if edits are needed to suit your needs.
#install required things from apt
installLibs(){
echo "Installing prerequisites"
sudo apt-get update
sudo apt-get -y install git autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev \
#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D from, to;
uniform float progress;
uniform vec2 resolution;
void main() {
vec2 p = gl_FragCoord.xy / resolution.xy;
vec3 a = texture2D(from, p).rgb;