A Pen by Joshua Miller on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def add(a, b): | |
return a+b | |
def multiply(a, b): | |
return a * b | |
def divide(a, b): | |
if b != 0: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <iomanip> | |
#include <string> | |
#include <fstream> | |
using namespace std; | |
const float FIVEBLOCK = 1.50; | |
const float SINGLEBLOCK = 0.50; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 400 core | |
in vec3 position; | |
out vec3 colour; | |
uniform vec3 pos; | |
void main(void){ | |
gl_Position = vec4(position + pos, 1.0) |