Skip to content

Instantly share code, notes, and snippets.

View bwrsandman's full-sized avatar

Sandy bwrsandman

  • Montreal
View GitHub Profile
@bwrsandman
bwrsandman / cwfilt.py
Created November 4, 2019 21:11 — forked from jackoalan/cwfilt.py
CodeWarrior C++ Symbol Demangler
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
def demangleNode(node):
pointer = False
ref = False
const = False
unsigned = False
@bwrsandman
bwrsandman / tri.frag
Last active April 17, 2016 17:18
LunarG Vulkan Triangle Demo ported to SDL2 (Linux-tested only)
/*
* Copyright (c) 2015-2016 The Khronos Group Inc.
* Copyright (c) 2015-2016 Valve Corporation
* Copyright (c) 2015-2016 LunarG, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and/or associated documentation files (the "Materials"), to
* deal in the Materials without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Materials, and to permit persons to whom the Materials are
@bwrsandman
bwrsandman / bigram.py
Created December 2, 2012 07:44 — forked from zbriscoe/bigram.py
Bigram
#!/usr/bin/env python
import sys
if sys.version_info >= (3,):
xrange = range
raw_input = input
from re import sub
from numpy import log10
def trim(string):