This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
CycleType | |
Cycle through available types in family manager | |
TESTED REVIT API: 2015 | |
github.com/gtalarico | |
""" | |
__doc__ = 'Cycles through available types in family manager. \n' \ | |
'Must be in Family Document.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import sys | |
class LoggerWrapper(): | |
""" Logger Wrapper to extend loggers functionality. | |
Usage: | |
logger = LoggerWrapper() | |
Additional Features: | |
logger.title('Message'): Outputs lines above and below, uses clean format | |
logger.error('Message'): appends errmsg to self.errors. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
SelectDoors | |
Selects All Door Instances | |
TESTED REVIT API: 2015 | 2016 | |
Gui Talarico | |
""" | |
from Autodesk.Revit.UI import TaskDialog | |
from Autodesk.Revit.DB import FilteredElementCollector | |
from Autodesk.Revit.DB import BuiltInCategory, ElementId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
RemoveUnderlay | |
Removes Underlay From Selected Views. | |
TESTED REVIT API: 2015 | 2016 | |
Copyright (c) 2014-2016 Gui Talarico | |
This script is part of PyRevitPlus: Extensions for PyRevit | |
github.com/gtalarico |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Timer(object): | |
"Time and TimeIt Decorator" | |
def __init__(self): | |
self.start_time = time.time() | |
def stop(self): | |
end_time = time.time() | |
duration = end_time - self.start_time | |
return duration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add this file to app root, Heroku will execute it on start, clone repo and add location to path | |
DIR=./package | |
if [ -d "$DIR" ]; then | |
printf '%s\n' "Deleting existing folder: ($DIR)" | |
rm -rdf "$DIR" | |
fi | |
# GIT_CREDENTIALS=username:pwd | |
echo "Cloning..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<input class="input is-small" type="text" placeholder="Filter" v-model="query" @keyup='doFilter'> | |
</template> | |
<script> | |
... | |
data () { | |
return { | |
this.debouncedQuery = '', | |
this.query = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: Boxstarter Script | |
# Author: Gui Talarico | |
# Original boxstarter script by Jesse Frazelle (https://gist.github.com/jessfraz/7c319b046daa101a4aaef937a20ff41f) | |
# | |
# | |
# Author: Jess Frazelle <jess@linux.com> | |
# Last Updated: 2019-01-10 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div id="app"> | |
<navbar /> | |
<router-link to="/">Home</router-link> | |
</div> | |
</template> | |
<script> | |
import Navbar from '@/components/Navbar.vue' | |
export default { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/three/OrbitControls.js | |
// Note: file content truncated for display | |
// Be sure to include the entire content from | |
// https://raw.githubusercontent.com/mrdoob/three.js/master/examples/js/controls/OrbitControls.js | |
/** | |
* @author qiao / https://github.com/qiao | |
* @author mrdoob / http://mrdoob.com | |
* @author alteredq / http://alteredqualia.com/ | |
* @author WestLangley / http://github.com/WestLangley |