Skip to content

Instantly share code, notes, and snippets.

View lablibertario's full-sized avatar

Libertar.io lablibertario

View GitHub Profile
@lablibertario
lablibertario / halloween.cpp
Created January 23, 2020 15:09 — forked from hdo/halloween.cpp
My halloween project (PIR triggered sounds)
#include "Arduino.h"
#define PIR_INPUT 11
#define DFPLAYER_OUTPUT 10
#define WAIT_TICKS_INTERVAL 1000 // each ticks is about 10ms
int ledPin = 13; // LED connected to digital pin 13
uint8_t state = 0;
volatile uint32_t ticks;

GIS DATA AND RESOURCES

CEFE-CNRS, sept 2019

The aim of this document is to list free spatial data and resources on the web for ecology and geography.

The data are identified by title, URL and keywords.

Summary

@lablibertario
lablibertario / 1-potentiometre.js
Created November 15, 2018 11:25 — forked from jblanche/1-potentiometre.js
Arduino + potentiometer + particles
var five = require('johnny-five'),
io = require('socket.io').listen(8080),
board, potentiometer;
board = new five.Board();
board.on("ready", function() {
// Create a new `potentiometer` hardware instance.
potentiometer = new five.Sensor({
@lablibertario
lablibertario / instagram-follow-script.js
Created November 14, 2018 19:59
Instagram script for followers
/* source https://www.youtube.com/watch?v=UKi1NwqKCz8
_aj7mu _r4e4p _95tat _o0442
*/
var jq = document.createElement('script');
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
jQuery.noConflict()
@lablibertario
lablibertario / .htaccess
Created March 11, 2018 11:35 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@lablibertario
lablibertario / index.html
Created February 20, 2018 01:06 — forked from anonymous/index.html
Lissajous
<canvas height="1600" width="1600"></canvas>
<canvas height="1600" width="1600"></canvas>
@lablibertario
lablibertario / index.html
Created February 20, 2018 00:59 — forked from anonymous/index.html
Triangle pattern generator
<div id="container" class="container">
<div id="output" class="container">
</div>
<ul id="links" class="links">
<p>Press space to drop or pick up the light. Enter key to add another one</p>
<li><a class="who" href="https://twitter.com/msurguy" target="_blank">by msurguy</a></li>
<li><a class="blog" href="http://maxoffsky.com" target="_blank">Blog post</a></li>
<li><a class="source" href="https://github.com/msurguy/triangles" target="_blank">GitHub</a></li>
</ul>
@lablibertario
lablibertario / BlackmagicCapture.cpp
Created February 3, 2018 13:22 — forked from tado/BlackmagicCapture.cpp
Blackmagic capture example
#include "BlackmagicCapture.h"
BlackmagicCapture::BlackmagicCapture(int _width, int _height, float _framerate){
width = _width;
height = _height;
framerate = _framerate;
cam.setup(width, height, framerate);
colorTexture.allocate(width, height, GL_RGB);
fbo.allocate(width, height);
fbo.begin();