Skip to content

Instantly share code, notes, and snippets.

@wknowles
wknowles / exceltorevit.py
Last active January 14, 2026 14:55
python script to add to revit dynamo
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference('RevitServices')
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
# Inputs from Dynamo nodes
excel_data = IN[0] # Full Excel data including headers (list of lists)
@wknowles
wknowles / 0_reuse_code.js
Created January 28, 2017 09:59
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# LowEndSpirit "What's my IP?"
# 07/10/13
#By CSa
ipv6addr=$(ip addr show dev venet0 | sed -e's/^.*inet6 \([^ ]*\)\/.*$/\1/;t;d')
ipv4intr=$(ifconfig venet0:0 | grep 'inet addr' | cut -d ':' -f 2 | cut -d ' ' -f 1)
nodeaddr=$(wget -qO- ipecho.net/plain)
ports=${ipv4intr#*.*.*.}
echo Your external IPv6 address is:

Stuff to install on a fresh mac

# install package manager
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# tap homebrew versions
brew tap homebrew/versions

# Homebrew packages

brew install \

@wknowles
wknowles / index.html
Created October 27, 2016 17:32
mapzen bells and whistles
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bells and Whistles</title>
<meta charset="utf-8">
<link rel="stylesheet" href="https://mapzen.com/js/mapzen.css">
<script src="https://mapzen.com/js/mapzen.min.js"></script>
<style>
#map {
height: 100%;
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bells and Whistles</title>
<meta charset="utf-8">
<link rel="stylesheet" href="https://mapzen.com/js/mapzen.css">
<script src="https://mapzen.com/js/mapzen.min.js"></script>
<style>
#map {
height: 100%;
@wknowles
wknowles / README.md
Last active October 3, 2016 17:54 — forked from wsvekla/README.md
2010 Census Geography with D3 and TopoJSON
@wknowles
wknowles / districts.geojson
Created September 30, 2016 14:30
philadelphia L&I districts
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wknowles
wknowles / twitter.json
Created September 27, 2016 21:20 — forked from hrp/twitter.json
Example JSON response from Twitter streaming API
{
"text": "RT @PostGradProblem: In preparation for the NFL lockout, I will be spending twice as much time analyzing my fantasy baseball team during ...",
"truncated": true,
"in_reply_to_user_id": null,
"in_reply_to_status_id": null,
"favorited": false,
"source": "<a href=\"http://twitter.com/\" rel=\"nofollow\">Twitter for iPhone</a>",
"in_reply_to_screen_name": null,
"in_reply_to_status_id_str": null,
"id_str": "54691802283900928",
@wknowles
wknowles / endeavour.geojson
Last active September 10, 2016 08:21
Cooks first voyage on Endeavour. Data from Climatological Database for the World's Oceans 1750-1850 (CLIWOC), version 1.5 data release -- https://pendientedemigracion.ucm.es/info/cliwoc/cliwoc15.htm
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.