Skip to content

Instantly share code, notes, and snippets.

@akella
akella / oklab.glsl
Created October 8, 2023 07:55
oklab.glsl
float fixedpow(float a, float x)
{
return pow(abs(a), x) * sign(a);
}
float cbrt(float a)
{
return fixedpow(a, 0.3333333333);
}
@permil
permil / config.h
Last active January 11, 2021 21:42
My Helix keymap
/*
This is the c configuration file for the keymap
Copyright 2012 Jun Wako <wakojun@gmail.com>
Copyright 2015 Jack Humbert
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
@matux
matux / scntool.md
Last active April 11, 2023 13:49
SceneKit scntool command line options
$ xcrun scntool --verbose
| Current SceneKit version is 4.560000
| Running scntool (compiled on Jul  1 2018 01:01:55)

usage: scntool --convert file --format format [--output file]
000084a8:  7363 7269 7074 696f 6e00 2d2d 7461 7267 6574 2d70 6c61 7466  :scription.--target-platf
@ayansg
ayansg / build_freetype.sh
Last active January 9, 2022 02:23 — forked from anonymous/build_freetype.sh
Compile-Freetype-For-iOS
#!/bin/bash
# Compile-Freetype-For-iOS
# Original Script https://github.com/jkyin/Compile-Freetype-For-iOS/blob/master/build_freetype.sh
# Revised by: l'L'l
#
# New Features Include: auto download latest version, fixed toolchain locations, other various tweeks
#
# The MIT License (MIT)
# Copyright (c) 2016 l'L'l
@tos-kamiya
tos-kamiya / py3-venv-activate-on-fish.md
Last active January 11, 2023 08:08
fishでpython3のvenvのactivateをする

fishでpython3のvenvを利用する方法

venv環境を作って入る (パスを設定した新しいシェルを作成する)

python3 -m venv ./venv
begin; set -lx PATH (realpath ./venv)/bin $PATH; fish; end
@Akira-Hayasaka
Akira-Hayasaka / winInst.txt
Last active September 16, 2021 07:33
windows インスタレーション用設定
- windowsはオフラインアカウントでセットアップ
- ネットワークにつなぐ
- 識別されてないネットワーク問題
http://www.projectgroup.info/tips/Windows/comm_0064.html
- windowsのライセンス認証
- windowsをアップデートする
@asus4
asus4 / websocket_osc_bridge.py
Created December 18, 2015 05:36
WebSocket to OSC bridge
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import json
from pyOSC import OSC
from SimpleWebSocketServer import WebSocket, SimpleWebSocketServer
# arguments
@ofZach
ofZach / all OF addons
Created October 16, 2012 02:30
all openframeworks addons from ofxAddons
#!/bin/bash
git clone git://github.com/armadillu/ofxAnimatable.git;
git clone git://github.com/yuichi1004/ofxAnimationKit.git;
git clone git://github.com/alinakipoglu/ofxAssimpNISync.git;
git clone git://github.com/alinakipoglu/ofxAssimpOpenNISkeletonSync.git;
git clone git://github.com/after12am/ofxBoids.git;
git clone git://github.com/diasbruno/ofxCompositeMotion.git;
git clone git://github.com/paulobarcelos/ofxDisplayStackObject.git;
git clone git://github.com/satoruhiga/ofxEasingFunc.git;
@keijiro
keijiro / perlin_noise_memo.md
Created August 16, 2012 09:54
Perlin Noise Memo
@satoruhiga
satoruhiga / homography2glModelViewMatrix.h
Created December 5, 2011 08:45
homography2glModelViewMatrix
inline ofMatrix4x4 homography2glModelViewMatrix(const cv::Mat &homography)
{
ofMatrix4x4 matrix;
matrix(0, 0) = homography.at<double>(0, 0);
matrix(0, 1) = homography.at<double>(1, 0);
matrix(0, 2) = 0;
matrix(0, 3) = homography.at<double>(2, 0);
matrix(1, 0) = homography.at<double>(0, 1);