Skip to content

Instantly share code, notes, and snippets.

# encoding: utf-8
require "rubygems"
require "twitter"
rClient = Twitter::REST::Client.new do |config|
config.consumer_key = ""
config.consumer_secret = ""
config.access_token = ""
config.access_token_secret = ""
end
@n1ckfg
n1ckfg / interactive_inpainting.pde
Last active August 18, 2017 18:22 — forked from atduskgreg/interactive_inpainting.pde
Interactive in-painting with OpenCV for Processing
// updated for Processing 3
import gab.opencv.*;
import org.opencv.photo.Photo;
import org.opencv.imgproc.Imgproc;
import processing.opengl.PGraphics2D;
PImage src;
PGraphics2D canvas;
@n1ckfg
n1ckfg / OpenSimplexNoise.pde
Last active April 22, 2018 21:46 — forked from KdotJPG/OpenSimplex2S.java
Visually axis-decorrelated coherent noise algorithm based on the Simplectic honeycomb.
/*
* OpenSimplex Noise in Java.
* by Kurt Spencer
*
* v1.1 (October 5, 2014)
* - Added 2D and 4D implementations.
* - Proper gradient sets for all dimensions, from a
* dimensionally-generalizable scheme with an actual
* rhyme and reason behind it.
* - Removed default permutation array in favor of
@n1ckfg
n1ckfg / MatricomManual.md
Created March 10, 2019 15:39 — forked from sli/MatricomManual.md
Transcribed manual for Matricom GPad controllers.

Matricom Gamepad

For your enjoyment and safety, we recommend that you read this manual thoroughly before using this product and keep this manual handy for reference if needed.

Characteristics:

  1. Compatible with Android and PC
  2. Wireless
  3. D-Pad and 12 buttons
  4. Dual analog joysticks
List of Opensource Projection Mapping tools
*******************************************
Threejs
*******
https://github.com/magdesign/MAGmapper
openframeworks.cc
*****************
https://github.com/kr15h/ofxPiMapper
List of Opensource Projection Mapping tools
*******************************************
Threejs
*******
https://github.com/magdesign/MAGmapper
openframeworks.cc
*****************
https://github.com/kr15h/ofxPiMapper
float PI = 3.14;
vec3 hsv2rgb(vec3 c)
{
vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);
vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);
return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);
}
float smin( float a, float b, float k )
{
@n1ckfg
n1ckfg / README.md
Created October 24, 2020 23:26 — forked from tuxmartin/README.md
Minimal Poco websocket C++ client

Stazeni a kompilace POCO

wget http://pocoproject.org/releases/poco-1.7.3/poco-1.7.3.tar.gz
tar xzf poco-1.7.3.tar.gz
cd poco-1.7.3
./configure --minimal --static --no-samples --no-tests
time make -j4 -s
cd lib/Linux/x86_64/
for f in *.a; do "strip $f"; done
@n1ckfg
n1ckfg / three.html
Created December 27, 2020 22:42 — forked from nasser/three.html
a three.js boilerplate scene in a single 30 line self-contained html file
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reset-css@5.0.1/reset.min.css">
<script type="module">
import * as THREE from "https://cdn.jsdelivr.net/npm/three@0.124.0/build/three.module.js"
import { OrbitControls } from "https://cdn.jsdelivr.net/npm/three@0.124.0/examples/jsm/controls/OrbitControls.js"
var scene = new THREE.Scene()
var camera = new THREE.PerspectiveCamera(75)
camera.position.z = 4
@n1ckfg
n1ckfg / jetson-nano_openFrameworks_setup_tutorial.md
Created December 29, 2020 17:20 — forked from madelinegannon/jetson-nano_openFrameworks_setup_tutorial.md
How to Set Up the NVIDIA Jetson Nano for openFrameworks