-
Notifications
You must be signed in to change notification settings - Fork 854
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
490 changed files
with
50,533 additions
and
34,589 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module fritzingVersion="0.8.0b.06.12.08d5" icon="atlas-scientific.png"> | ||
<title>Atlas Scientific</title> | ||
<instances> | ||
<instance moduleIdRef="atlas-sientific_PWR-SNS" modelIndex="1682" path="pdb/core/atlas-sientific_PWR-SNS.fzp"> | ||
<views/> | ||
</instance> | ||
<instance moduleIdRef="atlas-sientific_Serial Port Connector" modelIndex="1683" path="pdb/core/atlas-sientific_Serial Port Connector.fzp"> | ||
<views/> | ||
</instance> | ||
<instance moduleIdRef="atlas-sientific_pH Circuit" modelIndex="1684" path="pdb/core/atlas-sientific_pH Circuit.fzp"> | ||
<views/> | ||
</instance> | ||
<instance moduleIdRef="atlas-sientific_ORP Circuit" modelIndex="1685" path="pdb/core/atlas-sientific_ORP Circuit.fzp"> | ||
<views/> | ||
</instance> | ||
<instance moduleIdRef="atlas-sientific_RJ-11" modelIndex="1686" path="pdb/core/atlas-sientific_RJ-11.fzp"> | ||
<views/> | ||
</instance> | ||
<instance moduleIdRef="atlas-sientific_FLO-30 Circuit" modelIndex="1687" path="pdb/core/atlas-sientific_FLO-30 Circuit.fzp"> | ||
<views/> | ||
</instance> | ||
<instance moduleIdRef="atlas-sientific_ENV-32X" modelIndex="1725" path="pdb/core/atlas-sientific_ENV-32X.fzp"> | ||
<views/> | ||
</instance> | ||
<instance moduleIdRef="atlas-sientific_Conductivity Circuit" modelIndex="1790" path="pdb/core/atlas-sientific_Conductivity Circuit.fzp"> | ||
<views/> | ||
</instance> | ||
<instance moduleIdRef="atlas-sientific_D.O. Circuit" modelIndex="1845" path="pdb/core/atlas-sientific_D.O. Circuit.fzp"> | ||
<views/> | ||
</instance> | ||
<instance moduleIdRef="atlas-sientific_Pre-AssembledFemaleBNC" modelIndex="1930" path="pdb/core/atlas-sientific_Pre-AssembledFemaleBNC.fzp"> | ||
<views/> | ||
</instance> | ||
<instance moduleIdRef="atlas-sientific_Debugger" modelIndex="2043" path="pdb/core/atlas-sientific_Debugger.fzp"> | ||
<views/> | ||
</instance> | ||
</instances> | ||
</module> |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
|
||
import getopt, sys, os, os.path, re, xml.dom.minidom, xml.dom | ||
|
||
def usage(): | ||
print """ | ||
usage: | ||
unzeroradius.py -d [svg folder] | ||
if a file has <circle r='0' replace with r='.00000000001' | ||
""" | ||
|
||
|
||
|
||
def main(): | ||
try: | ||
opts, args = getopt.getopt(sys.argv[1:], "hd:", ["help", "directory"]) | ||
except getopt.GetoptError, err: | ||
# print help information and exit: | ||
print str(err) # will print something like "option -a not recognized" | ||
usage() | ||
sys.exit(2) | ||
|
||
dir = None | ||
|
||
for o, a in opts: | ||
#print o | ||
#print a | ||
if o in ("-d", "--directory"): | ||
dir = a | ||
elif o in ("-h", "--help"): | ||
usage() | ||
sys.exit(2) | ||
else: | ||
assert False, "unhandled option" | ||
|
||
if(not(dir)): | ||
usage() | ||
sys.exit(2) | ||
|
||
for root, dirs, files in os.walk(dir, topdown=False): | ||
for filename in files: | ||
if not filename.endswith(".svg"): | ||
continue | ||
|
||
svgFilename = os.path.join(root, filename) | ||
try: | ||
dom = xml.dom.minidom.parse(svgFilename) | ||
except xml.parsers.expat.ExpatError, err: | ||
print str(err), svgFilename | ||
continue | ||
|
||
svg = dom.documentElement | ||
circleNodes = svg.getElementsByTagName("circle") | ||
|
||
count = 0 | ||
for circle in circleNodes: | ||
r = circle.getAttribute("r") | ||
if r == "0": | ||
circle.setAttribute("r", "0.00000000001") | ||
count += 1 | ||
|
||
if count == 0: | ||
#print ".", | ||
continue | ||
|
||
print "got zero", svgFilename | ||
outfile = open(svgFilename, 'wb') | ||
s = dom.toxml("UTF-8") | ||
outfile.write(s) | ||
outfile.flush() | ||
outfile.close() | ||
|
||
if __name__ == "__main__": | ||
main() | ||
|
||
|
||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module fritzingVersion="0.4.3b.09.26.4458" moduleId="LilyPad Vibe Motor"> | ||
<author>J.A. Korten - JKSOFT Educational</author> | ||
<title>Lilypad Vibe Motor</title> | ||
<label>Lilypad Vibe</label> | ||
<date>2010-11-18</date> | ||
<tags> | ||
<tag>Lilypad</tag> | ||
<tag>Vibe</tag> | ||
<tag>Motor</tag> | ||
</tags> | ||
<properties> | ||
<property name="family">microcontroller board (lilypad)</property> | ||
<property name="type">Vibe Board</property> | ||
</properties> | ||
<description>Description: Apply 5V and be shaken by this small, but powerful vibration motor. Works great as an physical indicator without notifying anyone but the wearer. (See: http://www.sparkfun.com/products/8468)</description> | ||
<views> | ||
<iconView> | ||
<layers image="breadboard/Lilypad_Vib_Motor.svg"> | ||
<layer layerId="icon"/> | ||
</layers> | ||
</iconView> | ||
<breadboardView> | ||
<layers image="breadboard/Lilypad_Vibe_Motor.svg"> | ||
<layer layerId="breadboard"/> | ||
</layers> | ||
</breadboardView> | ||
<schematicView> | ||
<layers image="schematic/Lilypad_Vibe_Motor.svg"> | ||
<layer layerId="schematic"/> | ||
</layers> | ||
</schematicView> | ||
<pcbView> | ||
<layers image="pcb/Lilypad_Vibe_Motor.svg"> | ||
<layer layerId="copper0"/> | ||
<layer layerId="silkscreen"/> | ||
<layer layerId="copper1"/> | ||
</layers> | ||
</pcbView> | ||
</views> | ||
<connectors> | ||
<connector id="connector18" type="female" name="Supply"> | ||
<description>Pin to 5V</description> | ||
<views> | ||
<breadboardView> | ||
<p layer="breadboard" svgId="connector18"/> | ||
</breadboardView> | ||
<schematicView> | ||
<p layer="schematic" svgId="connector18pin"/> | ||
</schematicView> | ||
<pcbView> | ||
<p layer="copper1" svgId="connector18"/> | ||
<p layer="copper0" svgId="connector18"/> | ||
</pcbView> | ||
</views> | ||
</connector> | ||
<connector id="connector1" type="female" name="GND"> | ||
<description>Pin to GND</description> | ||
<views> | ||
<breadboardView> | ||
<p layer="breadboard" svgId="connector1"/> | ||
</breadboardView> | ||
<schematicView> | ||
<p layer="schematic" svgId="connector1pin"/> | ||
</schematicView> | ||
<pcbView> | ||
<p layer="copper1" svgId="connector1"/> | ||
<p layer="copper0" svgId="connector1"/> | ||
</pcbView> | ||
</views> | ||
</connector> | ||
</connectors> | ||
</module> |
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
Oops, something went wrong.