Skip to content

Instantly share code, notes, and snippets.

@hugohil
hugohil / ThreadedModelLoader.cpp
Last active May 16, 2018 17:00
ofThreadedModelLoader
#include "ThreadedModelLoader.h"
#include <sstream>
ThreadedModelLoader::ThreadedModelLoader(){
nextID = 0;
ofAddListener(ofEvents().update, this, &ThreadedModelLoader::update);
startThread();
lastUpdate = 0;
loading = false;
@hugohil
hugohil / three.js.shader.html
Created October 11, 2022 14:26 — forked from kylemcdonald/three.js.shader.html
Minimal three.js shader example.
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
margin: 0px;
overflow: hidden;
}
@hugohil
hugohil / frag.glsl
Created October 11, 2022 14:39
Basic GLSL shaders (three.js)
uniform float time;
uniform vec2 resolution;
uniform vec3 color;
void main() {
gl_FragColor = vec4(color, 1.);
}
@hugohil
hugohil / initial-raspberry-install.md
Last active February 1, 2023 13:54
raspberry pi initial setup

update system

sudo apt update
sudo apt upgrade -y

install oh-my-zsh

sudo apt install zsh -y
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
@hugohil
hugohil / nextboot.md
Last active February 1, 2023 14:51
rename raspberry at next boot

create a file name nextboot.sh

#!/bin/bash

basename="nextboot"

uuid=$(cat /proc/sys/kernel/random/uuid)
echo $uuid