Skip to content

Instantly share code, notes, and snippets.

@slapec
slapec / tech_circle.html
Created February 26, 2015 19:48
Tech circle generator
<html>
<head>
</head>
<canvas id="c" width="800", height="600" style="display: none"></canvas>
<img id="kep">
<button id="f5">F5</button>
<script>
function newCircle(ctx){
ctx.beginPath();
@slapec
slapec / js_arg_extract_w_pyv8.js
Last active August 29, 2015 14:15
Javascript function arguments extraction with PyV8
import PyV8
class Globals(PyV8.JSClass):
def __init__(self):
super(Globals, self).__init__()
self.coords = []
def PutMarkers(self, selector, coords):
coords = PyV8.convert(coords)