Taken from slides from the "Getting Started with Open Source" talk at RC
- Fork and clone
- Create a new branch
git checkout -b branchName
- or
git switch -c branchName
([more info][0])
- Do the fix
- Commit the changes
# Dubious ... may be hard for person to read... but for computer both identical... | |
chars = 'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz0123456789!-.~@' | |
html = [ | |
'A','a','B','b','C','c','D','d','E','e','F','f','G', | |
'g','H','h','I','i','J','j','K','k','L','l','M','m', | |
'N','n','O','o','P','p','Q','q','R','r','S','s','T', | |
't','U','u','V','v','W','w','X','x','Y','y','Z','z', | |
'0','1','2','3','4','5','6','7','8','9','!','-','.','~','@' | |
] | |
def convert(c): |
import time | |
start = time.time() | |
# call function | |
elapsedTime = round( ( time.time() - start ), 3 ) | |
print(elapsedTime, "seconds") |
=begin | |
(c) TIG 2011 | |
http://sketchucation.com/forums/viewtopic.php?t=33956 | |
Type exportvertices2csv in the Ruby Console. | |
Exports all Vertices is a Selection to a X,Y,Z 'CSV' file. | |
Edit sep="," if something other than a separating comma is desired e.g. ';' | |
Make sep="\t" if a TSV file is desired and change ext="csv" to ext="tsv". | |
It uses the current Model Units/accuracy with the approximate '~ ' and | |
unit suffix [if any] removed; e.g. change Model Units to 'meters' 3dp to | |
get exported csv in meters 1.234 - don't use 'fraction' 1' 2 1/2" formats, |
outputFile = "" | |
byts = [] | |
with open( outputFile, 'wb' ) as file: | |
file.write( bytes( byts ) ) |
main
or master
branch in local repo
git checkout main
or git switch main
git pull origin main
Sources