Skip to content

Instantly share code, notes, and snippets.

View webcaetano's full-sized avatar
🦄
Working from home

Andre Caetano webcaetano

🦄
Working from home
View GitHub Profile
@shamansir
shamansir / draw_svg.js
Last active February 20, 2023 16:11
draw SVG path on canvas
// take SVG commands and draw this path to HTML5 canvas
// commandList should look like that: [ { marker: "M", values: [ 10, 10 ] },
// { marker: "l", values: [ 5, 7 ] },
// { marker: "C", values: [ -5, 7.2, .3, -16, 24, 10 ] },
// . . .
// { marker: "z", values: [ ] } ]
// there's another gist which has the code to parse SVG paths:
// https://gist.github.com/shamansir/0ba30dc262d54d04cd7f79e03b281505
[
{ "keys": ["super+shift+q"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["super+up"], "command": "toggle_word"},
{ "keys": ["super+down"], "command": "toggle_word"},
{ "keys": ["super+shift+1"], "command": "open_terminal_project_folder" },
{
"keys": ["super+shif+e"],
"command": "chain",
"args": {
"commands": [
#!/usr/bin/python2.7
import getopt, sys, os
def fmt(fmt, dic):
for k in dic:
fmt = fmt.replace("{" + k + "}", str(dic[k]))
return fmt
INFILE = "*.png"
OUTFILE = "timelapse.avi"
@phiresky
phiresky / .gitignore
Last active April 24, 2022 16:59
parity auto-kill script
/node_modules
*.log