Skip to content

Instantly share code, notes, and snippets.

View rybesh's full-sized avatar

Ryan Shaw rybesh

View GitHub Profile
@rybesh
rybesh / keynote_shape_to_svg.py
Created June 28, 2023 15:31 — forked from dreness/keynote_shape_to_svg.py
Convert Keynote shapes (built-in and user-generated) to SVG
#!/usr/bin/env python3
# Instructions:
# 1) install svgpathtools with the command:
# pip install svgpathtools
# 2) Run this script with no arguments:
# python keynote_shape_to_svg.py
from svgpathtools import parse_path, svg2paths, wsvg
import sqlite3
DELETE test
PUT test
{
"mappings": {
"test": {
"properties": {
"start": {
"type": "date"
},

Simulate SVG paths are drawn using CSS animation

This method to simulate I discovered reading a blog post by Jake Archibald. I read his blog post: Animated line drawing in SVG where he describes this clever technique. In short it uses animated dash patterns to simulate that the path is drawn. Here are some letters drawn as you hover over them.

A Pen by Sten Hougaard on CodePen.

License.

@rybesh
rybesh / ipy_user_conf.py
Created November 17, 2009 17:54 — forked from jacobian/ipy_user_conf.py
IPython user config
import os
import sys
import StringIO
import ipy_defaults
import ipy_stock_completers
import IPython.ipapi
ip = IPython.ipapi.get()
o = ip.options