Skip to content

Instantly share code, notes, and snippets.

View PrestonII's full-sized avatar
🏠
Working from home

Preston Smith PrestonII

🏠
Working from home
View GitHub Profile
parsed: 7 blocks, 39 entities.
denormalised: 39 entities.
grouped entities
----------------
0: 11
Building Blocks: 28
@PrestonII
PrestonII / app.css
Created October 22, 2020 13:23
Create A 3 Row Container w/ A Scrollable Middle Row
:root{
font-size: 16px;
box-sizing: border-box;
}
html, body, #root {
width: 100%;
overflow-y: hidden;
height: 100%;
/* min-height: 100vh; */
@PrestonII
PrestonII / CreateUnitValueParameter.cs
Created May 8, 2020 19:23
Example of creating a parameter for ventilation
// in a family document
if (!CurrentDocument.IsFamilyDocument)
throw new Exception();
var mgr = CurrentDocument.FamilyManager;
// get the UNIT_TYPE parameter
var param = mgr.get_Parameter("UNIT_TYPE");
@PrestonII
PrestonII / SharedAssemblyInfo.cs
Created November 6, 2018 20:17
Shared Assembly Information (Bad Example)
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version: 15.0.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
namespace Logging.Core.Properties
@PrestonII
PrestonII / Vagrantfile
Created April 5, 2018 18:35
Creates a new Ubuntu Desktop Box using Vagrant
$script = <<-SCRIPT
yes | sudo apt-get update
yes | sudo apt-get install ubuntu-desktop
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "hashicorp/precise64"
config.vm.provider :virtualbox do |vb|
vb.name = "machina"