Skip to content

Instantly share code, notes, and snippets.

@mythagel
mythagel / v8_wrap_class.cpp
Last active October 15, 2023 17:45
Complete example of binding a C++ class with Google V8.
/*
* v8_wrap_class.cpp
*
* Created on: 14/01/2013
* Author: nicholas
* License: public domain
*/
/* CMakeLists.txt
project(v8_wrap_class)
@coordt
coordt / gist:177202
Created August 28, 2009 20:19
Create an iPhone-like button using python and cairo
#!/usr/bin/env python
"""
Create a button
"""
import sys, cairo, cairo_helpers
def roundedrec(context,x,y,w,h,r = 10):
"Draw a rounded rectangle"