Skip to content

Instantly share code, notes, and snippets.

View bwrsandman's full-sized avatar

Sandy bwrsandman

  • Montreal
View GitHub Profile
@cgmb
cgmb / extract_mesh.cxx
Created December 21, 2018 07:38
OpenVDB particles to mesh example
#include "opengl/extract_mesh.h"
#include "opengl/mesh.h"
#include <openvdb/openvdb.h>
#include <openvdb/tools/ParticlesToLevelSet.h>
#include <openvdb/tools/VolumeToMesh.h>
#include <openvdb/tools/LevelSetFilter.h>
static openvdb::Vec3R to_ovdb(const vec3f& p) {
return {p.x, p.y, p.z};
@jackoalan
jackoalan / cwfilt.py
Last active July 28, 2023 00:34
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 / openerp.dtd
Last active January 4, 2016 21:09
View dtd for OpenERP 7.0
<!DOCTYPE openerp [
<!ELEMENT openerp (data+)>
<!ELEMENT data (menuitem|record|delete|wizard|act_window|url|assert|report|workflow|function|ir_set)*>
<!ATTLIST data noupdate CDATA #IMPLIED>
<!ATTLIST data context CDATA #IMPLIED>
<!ELEMENT menuitem EMPTY>
<!ATTLIST menuitem id CDATA #REQUIRED>
<!ATTLIST menuitem name CDATA #IMPLIED>
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: