Skip to content

Instantly share code, notes, and snippets.

View lewislepton's full-sized avatar
🏳️‍🌈
tofu bouncing bonanza

Lewis Lepton lewislepton

🏳️‍🌈
tofu bouncing bonanza
View GitHub Profile
@lewislepton
lewislepton / glsl.json
Last active September 20, 2024 07:02
GLSL snippets for visual studio code/kode studio
/*
AUTO-COMPLETE SNIPPETS FOR GLSL WITHIN VISUAL CODE STUDIO
Lewis Lepton
https://lewislepton.com
useful places that i grabbed info from
http://www.shaderific.com/glsl
https://www.khronos.org/opengl/wiki/OpenGL_Shading_Language
plus various other papers & books
*/
@lewislepton
lewislepton / BufferedAudioBus.hpp
Created March 31, 2017 13:25
AudioKit on Audio Unit v3 (extension)
/*
<samplecode>
<abstract>
Utility classes to manage audio formats and buffers for an audio unit implementation's input and output audio busses.
</abstract>
</samplecode>
*/
#import <AudioToolbox/AudioToolbox.h>
#import <AudioUnit/AudioUnit.h>
@lewislepton
lewislepton / Project.hx
Last active March 21, 2017 18:00 — forked from wighawag/Main.hx
Kha White Noise
package;
import kha.Framebuffer;
import kha.Color;
import kha.Assets;
import kha.audio2.Audio;
import kha.audio2.Buffer;
class Project {
public function new() {
@lewislepton
lewislepton / init.js
Last active August 12, 2018 14:46
init script for KodeStudio
///MY CUSTOM INIT SCRIPT FOR USE WITH KODE STUDIO, BECAUSE ITS MY BITCH
"use strict";
const fs = require('fs');
const path = require('path');
function run(name, from, projectfile) {
if (!fs.existsSync(path.join(from, projectfile))) {
fs.writeFileSync(path.join(from, projectfile), "let project = new Project('New Project');\n"
+ "project.addAssets('Assets/**');\n"
+ "project.addSources('Sources');\n"
@lewislepton
lewislepton / settings.json
Last active September 24, 2017 21:54
my settings for Kode Stuido
// /CUSTOM SETTING SINCE KODE STUDIO IS MY BITCH
{
"editor.tabSize": 2,
"editor.fontSize": 16,
"editor.minimap.enabled": false,
"editor.wordWrap": "on",
"workbench.colorTheme": "Lestle",
"kha.khaPath": "/usr/local/lib/kha",
// "kha.ffmpeg": "/usr/local/lib/ffmpeg",
@lewislepton
lewislepton / keybindings.json
Created February 14, 2016 17:00
custom hotkeys for vscode & Kode Studio
///PERSONAL KEYBINDINGS SINCE VSCODE IS A BIT OF A BITCH
[
{
"key": "cmd+r",
"command": "workbench.action.debug.continue",
},
{
"key": "cmd+r",
"command": "workbench.action.debug.start",
@lewislepton
lewislepton / haxe.json
Last active May 20, 2020 13:13
snippets to use inside Kode Studio
{
/*
KHA/HAXE SNIPPETS
Lewis Lepton
https://lewislepton.com
*/
"new function": {
"prefix": "function",
"body": [
"public function ${NAME}(){",