Skip to content

Instantly share code, notes, and snippets.

View tavik000's full-sized avatar
:octocat:
Otaku Desu!

key tavik000

:octocat:
Otaku Desu!
View GitHub Profile
@nowke
nowke / bresenham.cpp
Last active April 3, 2023 00:49
Bresenham Line Drawing - OpenGL
#include <gl/glut.h>
#include <stdio.h>
int x1, y1, x2, y2;
void myInit() {
glClear(GL_COLOR_BUFFER_BIT);
glClearColor(0.0, 0.0, 0.0, 1.0);
glMatrixMode(GL_PROJECTION);
gluOrtho2D(0, 500, 0, 500);
@mimukit
mimukit / OpenGL_CircleAlog.cpp
Created June 13, 2016 06:41
Midpoint Circle Drawing Algorithm Implementation using OpenGL
#include <stdio.h>
#include <iostream>
#include <GL/glut.h>
using namespace std;
int pntX1, pntY1, r;
void plot(int x, int y)
{
glBegin(GL_POINTS);
@jwebcat
jwebcat / ngrok-installation.md
Created December 23, 2015 06:58 — forked from wosephjeber/ngrok-installation.md
Installing ngrok on Mac

#Installing ngrok on OSX

  1. Download ngrok
  2. Unzip it to your Applications directory
  3. Create a symlink (instructions below)

Creating a symlink to ngrok

Run the following two commands in Terminal to create the symlink.

# cd into your local bin directory