Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mtveerman
mtveerman / IFC4_individual_properties.json
Created February 11, 2019 16:07
IFC4 Individual Properties as JSON
[{"name":"a", "propertyType":"P_SINGLEVALUE","type":"IfcPositiveLengthMeasure","psets":["Pset_FastenerWeld"]},
{"name":"AboveGround", "propertyType":"P_SINGLEVALUE","type":"IfcLogical","psets":["Pset_BuildingStoreyCommon"]},
{"name":"AccessCoverLoadRating", "propertyType":"P_SINGLEVALUE","type":"IfcText","psets":["Pset_DistributionChamberElementTypeFormedDuct", "Pset_DistributionChamberElementTypeInspectionChamber", "Pset_DistributionChamberElementTypeManhole"]},
{"name":"AccessCoverMaterial", "propertyType":"P_REFERENCEVALUE","type":"IfcMaterialDefinition","psets":["Pset_DistributionChamberElementTypeInspectionChamber", "Pset_DistributionChamberElementTypeManhole", "Pset_DistributionChamberElementTypeMeterChamber", "Pset_DistributionChamberElementTypeValveChamber"]},
{"name":"AccessLengthOrRadius", "propertyType":"P_SINGLEVALUE","type":"IfcPositiveLengthMeasure","psets":["Pset_DistributionChamberElementTypeInspectionChamber", "Pset_DistributionChamberElementTypeManhole"]},
{"name":"AccessType", "propertyType

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@staltz
staltz / introrx.md
Last active March 1, 2026 13:21
The introduction to Reactive Programming you've been missing
@brucemcpherson
brucemcpherson / dbAbstraction.vba
Last active July 4, 2024 04:41
demo for how to use a variety of database backends, enabled by a google apps script backend, directly from VBA. for details see http://ramblings.mcpher.com/Home/excelquirks/dbapps/dbvariety
Option Explicit
' this is how to use Google Apps Script dbabstration web app from Excel.
' version 0.2
' http://ramblings.mcpher.com/Home/excelquirks/dbabstraction
' http://ramblings.mcpher.com/Home/excelquirks/googleoauth2 for how to set up yor pc for oauth2
Public Sub demoDBAccess()
Dim data As cJobject
Dim siloId As String, places As cJobject, place As cJobject, result As cJobject, _
sheetId, driveFolder As String, fusionId As String
@brucemcpherson
brucemcpherson / UAMeasure.xml
Created November 14, 2013 17:47
gistThat manifest for UAMeasure - VBA / google analytics - http://ramblings.mcpher.com/Home/excelquirks/universalanalytics
<?xml version="1.0" encoding="UTF-8"?>
<gistThat info="this is a manifest for gistThat VBA code distribution - see ramblings.mcpher.com for details">
<manifest description="UAMeasure Protocol" contact="bruce@mcpher.com">
<gists>
<item1 gistid="6937529" version="" filename="usefulEncrypt.vba" module="usefulEncrypt" type="module" />
<item2 gistid="7453196" version="" filename="UAMeasure.vba" module="UAMeasure" type="module" />
<item3 gistid="7453152" version="" filename="cUAMeasure.cls" module="cUAMeasure" type="class" />
<item4 gistid="3423912" version="" filename="cBrowser.cls" module="cBrowser" type="class" />
<item5 gistid="3414346" version="" filename="" module="usefulStuff" type="module" />
<item6 gistid="5102369" version="" filename="cStringChunker.cls" module="cStringChunker" type="class" />
@brucemcpherson
brucemcpherson / UAMeasure.vba
Last active April 21, 2017 20:16
universal analytics measurement functions and parameters
'gistThat@mcpher.com :do not modify this line - see ramblings.mcpher.com for details: updated on 3/4/2014 2:17:37 PM : from manifest:7471153 gist https://gist.github.com/brucemcpherson/7453196/raw/UAMeasure.vba
Option Explicit
Public Sub testua()
With registerUA("developing_testua")
' do something
sleep 5
' kill session
.postAppKill
If Not .browser.isOk Then
Debug.Print .browser.status
@brucemcpherson
brucemcpherson / cUAMeasure.cls
Last active April 21, 2017 20:16
vba class for google universal analytics
'gistThat@mcpher.com :do not modify this line - see ramblings.mcpher.com for details: updated on 1/14/2014 10:38:24 AM : from manifest:7471153 gist https://gist.github.com/brucemcpherson/7453152/raw/cUAMeasure.cls
Option Explicit
'v2.2
Private pUACode As String
Private pBrowser As cBrowser
Private pID As String
Private pPostData As String
Private pUrl As String
Private pVersion As String
Private pOptOut As Boolean
@DataZombies
DataZombies / basErrorHandler.bas
Created February 10, 2013 21:39
VBA ErrorHandler
Option Base 0
Option Compare Database
Option Explicit
Option Private Module
'***********************************************************************************************
' ErrorHandler (Public Sub)
'
' PARAMETERS:
' theForm - String - ByVal - Optional
@brucemcpherson
brucemcpherson / d3.vba
Last active July 4, 2024 04:41
Module for creating d3 charts from excel data
Option Explicit
' v1.01
Public Sub d3forceHere()
d3ForceDo
End Sub
Public Sub d3forceHereItunes()
d3ForceDo , "itunes force options", "itunes force fields"
End Sub
Public Sub d3forceHereNodesOnly()
d3ForceDo , "nodes only force options", "nodes only force fields"