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
<script type="text/vnd.graphviz" id="graphviz"> | |
digraph G { | |
collect -> | |
process -> | |
organize -> | |
review -> | |
do | |
} | |
</script> |
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
<script type="text/vnd.graphviz" id="graphviz"> | |
digraph G { | |
compound=true; | |
idea -> paper | |
paper -> inbox | |
org_tools -> pivotal_tracker | |
org_tools -> textfiles |
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
<script type="text/vnd.graphviz" id="graphviz"> | |
digraph G { | |
compound=true; | |
subgraph cluster_1 { | |
node [style=filled]; | |
b0 -> b1 -> b2 -> b3; | |
label = "process #1"; | |
color=blue; |
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
<script type="text/vnd.graphviz" id="graphviz"> | |
digraph G { | |
"personas" -> | |
"content inventory & data model" -> | |
"workflows & sitemap" -> | |
"mockups" -> | |
"screen designs" -> | |
"working, tested software" | |
} | |
</script> |
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
<h2> | |
Hello Graphviz World" | |
</h2> | |
<p> | |
Initial tests with Graphviz using viz.js | |
</p> | |
<script type="text/vnd.graphviz" id="graphviz"> | |
digraph G { |
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
<h2> | |
iHat | |
</h2> | |
<p> | |
Notes and Stuff | |
</p> | |
<script type="text/vnd.graphviz" id="graphviz"> | |
digraph G { |
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
<h2> | |
iHat | |
</h2> | |
<p> | |
Ideas | |
</p> | |
<script type="text/vnd.graphviz" id="graphviz"> | |
digraph G { |
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
tables = ActiveRecord::Base.connection.tables; nil | |
tables.each do |table| | |
begin | |
z = table.singularize.camelize.constantize | |
records = z.all;nil | |
i = 0 | |
records.each do |record| | |
if !record.valid? |
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
@hash = {} | |
tables = ActiveRecord::Base.connection.tables; nil | |
tables.each do |table| | |
begin | |
z = table.singularize.camelize.constantize | |
i = z.count | |
p "====> #{i} Records in #{table}" | |
@hash[table] = i |
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
# A routes object that is actually a Routeset | |
routes = Rails.application.routes.class | |
=> ActionDispatch::Routing::RouteSet | |
# A more proper Routes object | |
routes = Rails.application.routes.routes.class | |
=> ActionDispatch::Journey::Routes | |
# An array of Routes | |
routes = Rails.application.routes.routes.routes.class |