Skip to content

Instantly share code, notes, and snippets.

@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
@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 / wifi-setup.sh
Last active April 11, 2022 17:45
Wifi for Nvidia Jetson
# https://www.datatobiz.com/2019/10/03/fixing-wifi-connectivity-nvidia-jetson-nano/
# https://github.com/pvaret/rtl8192cu-fixes
sudo cp blacklist-native-rtl8192.conf /etc/modprobe.d/
sudo echo options rtl8xxxu ht40_2g=1 dma_aggregation=1 | sudo tee /etc/modprobe.d/rtl8xxxu.conf
sudo iw dev wlan0 set power_save off
# To enable ssh over wifi:
# sudo nano /etc/gdm3/custom.conf
# In this file, uncomment the following:
@n1ckfg
n1ckfg / view_in_github.js
Created November 14, 2020 21:57
Bookmarklet to view a GitHub Pages site as a repo
javascript:(function() {window.location=window.location.toString().replace(/^https:\/\//,'https://github.com/').replace('.github.io','');})()
import os
classlist_filepath = ""
classlist_filename = ""
classlist_url = classlist_filepath + classlist_filename
file = open(classlist_url, "r")
lines = file.readlines()
grading_files_filepath = ""
@n1ckfg
n1ckfg / edit_in_glitch.js
Created November 3, 2020 16:03
Bookmarklet to open a Glitch site in the editor.
javascript:(function() {window.location=window.location.toString().replace(/^https:\/\//,'https://glitch.com/edit/#!/');})()
@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 / inpainting.frag
Created August 29, 2020 16:06
Realtime inpainting shader
// https://www.shadertoy.com/view/4ty3Dy
// Diffusion from jamriska.
// Used techniques in Jeschke et al. 09.
// ~ ~ ~ BUFFER A ~ ~ ~
/**
* Laplacian Solver For Image Completion
* Forked from [url=https://www.shadertoy.com/view/XdKGDW]jamriska[/url].
* Used techniques in [url=https://pdfs.semanticscholar.org/2407/5ab482f70ffd1137abb3a533dfe551210c6f.pdf]Jeschke et al. 09[/url].
* To be simplified, I removed the support for resizing the rendering buffer.
@n1ckfg
n1ckfg / main.cpp
Created July 3, 2020 06:18
Raspberry Pi GLFW window
#include "ofMain.h"
#include "ofApp.h"
//========================================================================
int main() {
ofGLFWWindowSettings settings;
settings.glesVersion = 2;
settings.windowMode = OF_FULLSCREEN;
settings.numSamples = 0;