Skip to content

Instantly share code, notes, and snippets.

@v3n
v3n / sum_primes.cpp
Created June 13, 2014 18:18
Solution to Prime Problem I presented at ID Tech Programming Academy
#include <iostream>
#include <vector>
using namespace std;
int i;
unsigned total;
vector<int> v = vector<int>();
vector<int>::iterator vi;
@v3n
v3n / lcs.rb
Created July 25, 2015 06:38
compute statistics for 2015 NA LCS Playoffs
teams = {
"TSM" => 90,
"C9" => 70,
"TL" => 50,
"TIP" => 30,
"CLG" => 10,
"GV" => 10,
"DG" => 0
}
{
"color_inactive_tabs": true,
"color_scheme": "Packages/Theme - Afterglow/Afterglow-monokai.tmTheme",
"ensure_newline_at_eof_on_save": true,
"font_size": 14,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
@v3n
v3n / gist:1145601
Created August 15, 2011 02:15
Shell of TMUX Config
#!/bin/bash
HEIGHT=`stty size | cut -d" " -f1`
WIDTH=`stty size | cut -d" " -f2`
if [ $WIDTH -gt 320 ]
then
#Set-up for a small screen.
tmux new -d -x $WIDTH -y $HEIGHT -s jonathan
@v3n
v3n / .bashrc
Last active December 24, 2015 02:29
generic .bashrc
# X11 Environment
#export DISPLAY=":0.0"
#Don't put duplicate lines in the history.
export HISTCONTROL=ignoredups
# umask 002
# PROMPT
DEFAULT="\[\e[0;39m\]"
@v3n
v3n / ogl_osx.md
Last active November 21, 2023 06:09
GLFW on OS X starting guide

OpenGL Development on OS X

While it's possible to download packages and install them manually, it's such a hassle. Fortunately for us, OS X has an unofficial package manager called http://brew.sh Let's install it. Open you Terminal and paste the following code:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Great. Homebrew will automatically install packages to /usr/local. Conveniently, that directory is already in your include and link paths.