Skip to content

Instantly share code, notes, and snippets.

View kaosine's full-sized avatar

Joshua MIller kaosine

View GitHub Profile
@kaosine
kaosine / api_json_filter
Created September 30, 2022 23:10
Conversion of atom json filter for api
require("json");
require("kramdown");
class ApiJsonFilter extends Nanoc.Filter {
#classNames = {};
#className = null;
#version = null;
#mdnBaseUrl = "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects";
// ----- Helpers -----
def add(a, b):
return a+b
def multiply(a, b):
return a * b
def divide(a, b):
if b != 0:
@kaosine
kaosine / project4.cpp
Created January 30, 2019 05:35
project 4 for cpp
#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
using namespace std;
const float FIVEBLOCK = 1.50;
const float SINGLEBLOCK = 0.50;
@kaosine
kaosine / Main.java
Created September 29, 2017 18:01
New Main
import org.lwjgl.glfw.GLFWVidMode;
import static org.lwjgl.glfw.GLFW.*;
import static org.lwjgl.opengl.GL11.*;
import org.lwjgl.opengl.GL;
public class Main {
@kaosine
kaosine / vertex.shader
Created September 29, 2017 12:41
Vertex shader with issues
#version 400 core
in vec3 position;
out vec3 colour;
uniform vec3 pos;
void main(void){
gl_Position = vec4(position + pos, 1.0)