Skip to content

Instantly share code, notes, and snippets.

View holocronweaver's full-sized avatar

Jesse Johnson holocronweaver

  • Seattle, Washington
View GitHub Profile
@planbnet
planbnet / gnome-terminal-zenburn.sh
Created December 2, 2011 09:12
Zenburn color scheme for gnome-terminal
#!/usr/bin/env bash
dir=$(dirname $0)
gconfdir=/apps/gnome-terminal/profiles
echo # This makes the prompts easier to follow (as do other random echos below)
########################
### Select a profile ###
########################
@holocronweaver
holocronweaver / gnome-terminal-zenburn.sh
Created June 14, 2012 13:53 — forked from planbnet/gnome-terminal-zenburn.sh
Zenburn color scheme for gnome-terminal
#!/usr/bin/env bash
dir=$(dirname $0)
gconfdir=/apps/gnome-terminal/profiles
echo # This makes the prompts easier to follow (as do other random echos below)
########################
### Select a profile ###
########################
@ttscoff
ttscoff / planter.rb
Created September 22, 2012 17:57
Create directory trees from indented text input
#!/usr/bin/ruby
=begin
Planter v1.3
Brett Terpstra 2013
ruby script to create a directory structure from indented data.
Three ways to use it:
- Pipe indented (tabs or 2 spaces) text to the script
- e.g. `cat "mytemplate" | planter.rb
- Create template.tpl files in ~/.planter and call them by their base name
@DreamPhage
DreamPhage / replace_item
Created November 20, 2012 01:11
replace_item function
#this function adds an item to the inventory if it is not full
def add_item(inventory, new_item):
if len(inventory) < 12:
inventory.append(new_item)
print inventory
else:
print "Your inventroy is full."
#this function removes an item from the inventory
def remove_item(inventory, del_item):
@DreamPhage
DreamPhage / inventory.py
Created November 25, 2012 17:36
Inventory System Project
class Inventory:
def __init__(self, items):
self.items = items
def show(self):
print self.items
'''
Adds an item to the inventory if it is not full.
'''
@Klaim
Klaim / _description.md
Last active August 29, 2015 13:59
Code Review: AnyValueSet

Code review: AnyValueSet

I am posting this to allow anyone to review this code which is part of one of my projects. As I am developping this massive thing alone, I am looking for people to help reviewing these kind of code that are fundations and I can easily isolate and publish.

The project use C++11/14 as provided by VS2013 (no CTP) and Boost. I didn't try to compile it in other compilers yet (lack of time and resources). The tests are provided in another other file, it compiles and run for me but the tests themselves

Below I collected relevant links and papers more or less pertaining to the subject of tetrahedral meshes.
It's an ever-growing list.
------------------------------
Relevant links:
http://en.wikipedia.org/wiki/Types_of_mesh
http://en.wikipedia.org/wiki/Tetrahedron
http://en.wikipedia.org/wiki/Simplicial_complex
#pragma once
// openvr.h
//========= Copyright Valve Corporation ============//
// Dynamically generated file. Do not modify this file directly.
#ifndef _OPENVR_API
#define _OPENVR_API
#include <stdint.h>
#! python3
# Copyright 2020 Benedikt Bitterli
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@nlguillemot
nlguillemot / main.cpp
Created April 28, 2017 03:03
stable opengl timestamps with D3D12
#ifdef _WIN32
#include <d3d12.h>
#include <dxgi1_5.h>
#pragma comment(lib, "d3d12.lib")
#pragma comment(lib, "dxgi.lib")
#endif
#ifdef _WIN32
void SetStablePowerState()