Skip to content

Instantly share code, notes, and snippets.

View LeonardoDSSilva's full-sized avatar
:octocat:
Focusing

Leonardo Silva LeonardoDSSilva

:octocat:
Focusing
View GitHub Profile
@media print {
@page {
size: A4;
margin: 0.5em;
}
.sec_disciplina:not(:first-of-type) {
page-break-before: always;
}
@LeonardoDSSilva
LeonardoDSSilva / Tools
Last active June 22, 2023 15:24
TOOLS_Test.json
[
{
"codTools": "00.001",
"importar": true,
"abertura": "",
"adicional": null
},
{
"codTools": "00.001.001",
"importar": false,
@LeonardoDSSilva
LeonardoDSSilva / Tools.EXCEL.yaml
Created April 14, 2022 17:51
Create a new snippet from a blank template.
name: Tools
description: Create a new snippet from a blank template.
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
async function run() {
await Excel.run(async (context) => {
SUMARIZACAO = LAMBDA(a,b, c, d,(
CONCAT("0",a,".",IF(
LEN(b)=1, "00" & b , "0" & b),IF(
ISBLANK(c),"","."& IF(LEN(c)=1, "00" & c , "0" & c)),IF(
ISBLANK(d),"","."& IF(LEN(d)=1, "00" & d , "0" & d)
))
));
DOT = LAMBDA(num,
(LEFT(num, 3) & "." &
@LeonardoDSSilva
LeonardoDSSilva / GetModelElements.py
Created March 11, 2020 17:40 — forked from johnpierson/GetModelElements.py
This is a python script for Dynamo that allows you to collect all model elements in a Revit model.
import clr
# Import DocumentManager and TransactionManager
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
# Import RevitAPI
clr.AddReference("RevitAPI")
import Autodesk
# collection of Dynamo Python functions.
# credits: archi-lab, MEPover, Bimorph, Clockwork, Rhythm and many more