Skip to content

Instantly share code, notes, and snippets.

View ThreePointSquare's full-sized avatar
💭
I may be slow to respond.

ThreePointSquare

💭
I may be slow to respond.
View GitHub Profile
@ThreePointSquare
ThreePointSquare / info-to-collect.json
Created February 27, 2019 20:31 — forked from rikkiloades/info-to-collect.json
Getting system info (CPU, GPU, Memory and OS)
{
"cpu": {
"model": "Intel Core i7",
"clockspeed": "2.8 Ghz",
"processors": 1,
"cores": 2
},
"memory": "16GB",
"gpu": {
"model": "Intel HD 3000",
@ThreePointSquare
ThreePointSquare / gist:f591025208ecfce08b255eb8945b5037
Created January 21, 2020 00:29 — forked from bengolder/gist:1054969
Grasshopper Drain Boid Script
import Rhino
class DrainBoid(object):
def __init__(self, point3d, surface, stepsize=0.5, maxsteps=None, tolerance=0.001):
self.start = point3d
self.pos = self.start
result, self.u, self.v = surface.ClosestPoint(self.pos)
self.surface = surface
self.stepsize = stepsize
self.points = [self.start]
# collection of Dynamo Python functions.
# credits: archi-lab, MEPover, Bimorph, Clockwork, Rhythm and many more
@ThreePointSquare
ThreePointSquare / index.html
Created August 31, 2020 21:54
Eurion PDF create PDF with Eurion watermarks // source https://jsbin.com/sepitalenu
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Eurion PDF</title>
<meta name="description" content="create PDF with Eurion watermarks">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.debug.js" integrity="sha384-NaWTHo/8YCBYJ59830LTz/P4aQZK1sS0SneOgAvhsIl3zBu8r9RevNg5lHCHAuQ/" crossorigin="anonymous"></script>
<style id="jsbin-css">
@ThreePointSquare
ThreePointSquare / Big List of Real Estate APIs.md
Created November 1, 2020 04:52 — forked from patpohler/Big List of Real Estate APIs.md
Evolving list of Real Estate APIs by Category

Big List of Real Estate APIs

Listings / Property Data

####Rets Rabbit http://www.retsrabbit.com

Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.

@ThreePointSquare
ThreePointSquare / kochsnowflake.html
Created December 27, 2020 00:16 — forked from mcjohnalds/kochsnowflake.html
A Koch snowflake. Uses WebGL for no particular reason. Doesn't use any trig b.c trig is lame.
<script id="shader-vs" type="x-shader/x-vertex">
attribute vec2 aPosition;
void main(void) {
gl_Position = vec4(aPosition, 0.0, 1.0);
}
</script>
<script id="shader-fs" type="x-shader/x-fragment">
void main(void) {
@ThreePointSquare
ThreePointSquare / .blocks.json
Created January 16, 2021 00:29 — forked from vasturiano/.blocks.json
3D Force-Directed Graph (ThreeJS)
{"nodes":[{"id":"4062045","user":"mbostock","description":"Force-Directed Graph"},{"id":"1341021","user":"mbostock","description":"Parallel Coordinates"},{"id":"1341281","user":"jasondavies","description":"Parallel Coordinates"},{"id":"b3ff6ae1c120eea654b5","user":"d3noob","description":"Simple d3.js Graph"},{"id":"4963004","user":"calvinmetcalf","description":"Quadtree Madness Round 2"},{"id":"4962892","user":"calvinmetcalf","description":"Quadtree Madness Round 2"},{"id":"4963273","user":"calvinmetcalf","description":"Quadtree Madness Round 2"},{"id":"4967213","user":"calvinmetcalf","description":"Rtree Madness"},{"id":"4060606","user":"mbostock","description":"Choropleth"},{"id":"4686432","user":"dwtkns","description":"Faux-3d Shaded Globe"},{"id":"3757101","user":"mbostock","description":"Lambert Azimuthal Equal-Area"},{"id":"5028304","user":"d3noob","description":"Sankey diagram with horizontal and vertical node movement"},{"id":"4343214","user":"mbostock","description":"Quadtree"},{"id":"1346410","user"
@ThreePointSquare
ThreePointSquare / CopyRooms.py
Created June 23, 2021 23:47 — forked from ENGworks-DEV/CopyRooms.py
Copy rooms from a link to host document
from Autodesk.Revit.DB import FilteredElementCollector, BuiltInCategory, SpatialElementBoundaryOptions, CurveArray, UV,Transaction, ViewPlan
from Autodesk.Revit.UI import Selection
import Autodesk.Revit.Creation
def selectLink():
link = uidoc.Selection.PickObject(Selection.ObjectType.Element, "Select Revit link")
return doc.GetElement(link.ElementId)
def getRooms(link, doc):
print( doc.ActiveView.Id)
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "First parameter is a file with a list of repos git-batch-upstream-branch-update repos.txt"
fi
ROOTDIR=$(pwd)
cd $ROOTDIR
cat $1 | while read line
@ThreePointSquare
ThreePointSquare / mongodb_c#_cheatsheet.md
Created July 4, 2021 00:40 — forked from a3dho3yn/mongodb_c#_cheatsheet.md
MongoDB C# Driver Cheat Sheet

MongoDB C# Driver Cheat Sheet

(C) 2015 by Derek Hunziker, (C) 2017 by AppsOn

As of releasing MongoDB 3.4 and C# Driver v2.4, original cheatsheet by Derek is outdated. In addition, it has some deficiencies like connecting to MongoDB, creating indexes, etc. This updated version works fine with C# Driver v2.4.7 and MongoDB v3.4.

Setup

Define Document Models

Note: Defined models and collections will be used in entire cheatsheet.