$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
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
/// <summary> | |
/// Convert a <see cref="TimeSpan"/> to a natural language representation. | |
/// </summary> | |
/// <example> | |
/// <code> | |
/// TimeSpan.FromSeconds(10).ToNaturalLanguage(); | |
/// // 10 seconds | |
/// </code> | |
/// </example> | |
public static string ToNaturalLanguage(this TimeSpan @this) |
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
git branch -m master main | |
git fetch origin | |
git branch -u origin/main main | |
git remote set-head origin -a | |
git branch -m master main && git fetch origin && git branch -u origin/main main && git remote set-head origin -a |
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
echo "* text=auto" >.gitattributes | |
git add --renormalize . | |
git commit -m "Renormalized end-of-line" |
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
#!/bin/bash | |
# https://raymii.org/s/tutorials/Disable_dynamic_motd_and_motd_news_spam_on_Ubuntu_18.04.html | |
# Disable Dynamic MOTD | |
# Change ENABLED=1 to ENABLED=0. | |
sudo nano /etc/default/motd-news | |
# Disable a few components | |
sudo chmod -x /etc/update-motd.d/00-header |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<Configurations>Debug;Debug One;Release</Configurations> | |
</PropertyGroup> | |
<PropertyGroup> | |
<!-- Please remove the targets you don't need in order | |
to exclude Revit versions your add-in won't support | |
use the list below for matching Revit version with .NET target | |
2014 | net40 |
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
b = brick; | |
footprint = Rectangle.ByWidthLength(b.Width, b.Length); | |
surface = Surface.ByPatch(footprint); | |
base = surface.Thicken(6/5, false); | |
p1 = [Imperative] | |
{ |
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 clr | |
clr.AddReference('ProtoGeometry') | |
from Autodesk.DesignScript.Geometry import * | |
#The inputs to this node will be stored as a list in the IN variables. | |
dataEnteringNode = IN | |
test = IN[0] | |
true_list = IN[1] | |
false_list = IN[2] |
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
// Display start tab and not a new drawing on Startup | |
// https://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/How-to-open-AutoCAD-without-opening-Drawing1.html | |
Command: STARTUP | |
Value: 2 | |
// Disable drawing thumbnails when hovering a tab | |
// https://forums.autodesk.com/t5/autocad-forum/how-to-turn-off-file-tab-hover-preview/m-p/6347588#M126228 | |
Command: FILETABPREVIEW | |
Value: 0 |
NewerOlder