Skip to content

Commit

Permalink
add logos
Browse files Browse the repository at this point in the history
  • Loading branch information
gosuri committed Nov 12, 2019
1 parent b1ad427 commit d04c3f8
Show file tree
Hide file tree
Showing 25 changed files with 129 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
1 change: 1 addition & 0 deletions .ruby-gemset
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby-2.6.3
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
proc-level1:
scripts/logos ./founders/level1/doc/logos.csv ./founders/level1/doc
12 changes: 12 additions & 0 deletions founders/level1/doc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Founder Level 1 Status

### Submissions

**Total**: 31 / 100

### Validators

<table><tr><td width='200px' style='text-align:center'><img src='akash.cosmosoutpost.io.png'> <br/> Kysen Pool</td> <td width='200px' style='text-align:center'><img src='chat.akash.vitwit.com.png'> <br/> Vitwit</td> <td width='200px' style='text-align:center'><img src='chat.bitcat365.com.png'> <br/> Bitcat</td> <td width='200px' style='text-align:center'><img src='chat.chainode.capital.png'> <br/> Chainode Capital</td></tr>
<tr><td width='200px' style='text-align:center'><img src='chat.desmos.network.png'> <br/> Forbole</td> <td width='200px' style='text-align:center'><img src='chat.kalpatech.co.png'> <br/> KalpaTech</td> <td width='200px' style='text-align:center'><img src='chat.myfaas.club.png'> <br/> OpenFaas</td> <td width='200px' style='text-align:center'><img src='chat.nodeasy.com.png'> <br/> Nodeasy.com</td></tr>
<tr><td width='200px' style='text-align:center'><img src='chat.nodeateam.com.png'> <br/> Node A-Team</td> <td width='200px' style='text-align:center'><img src='chat.pylon.design.png'> <br/> Pylon Validation Service</td> <td width='200px' style='text-align:center'><img src='chat.stake5labs.com.jpg'> <br/> Stake5 Labs</td> <td width='200px' style='text-align:center'><img src='chat.stake5labs.com.png'> <br/> Staker Space</td></tr>
<tr><td width='200px' style='text-align:center'><img src='chat.ubik.capital.png'> <br/> Ubik Capital</td> <td width='200px' style='text-align:center'><img src='chat.westaking.io.png'> <br/> Westaking</td> <td width='200px' style='text-align:center'><img src='riot.stake.host.png'> <br/> Stake.host</td> <td width='200px' style='text-align:center'><img src='riot.chainvibes.com.png'> <br/> chainvibes.com</td></tr></table>
Binary file added founders/level1/doc/akash.cosmosoutpost.io.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added founders/level1/doc/chat.akash.vitwit.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added founders/level1/doc/chat.bitcat365.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added founders/level1/doc/chat.chainode.capital.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added founders/level1/doc/chat.desmos.network.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added founders/level1/doc/chat.kalpatech.co.png
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.
Binary file added founders/level1/doc/chat.myfaas.club.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added founders/level1/doc/chat.nodeasy.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added founders/level1/doc/chat.nodeateam.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added founders/level1/doc/chat.pylon.design.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added founders/level1/doc/chat.stake5labs.com.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added founders/level1/doc/chat.stake5labs.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added founders/level1/doc/chat.ubik.capital.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added founders/level1/doc/chat.westaking.io.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions founders/level1/doc/logos.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
ENTRY,NAME,LOGO
akash.cosmosoutpost.io, Kysen Pool, https://akash.network/static/logos/kysenpool.png
moonli.me, Moonli, https://moonli.me/img/leonids-logo.png
chat.akash.vitwit.com, Vitwit, https://vitwit.com/assets/img/white-logo.png
chat.bitcat365.com, Bitcat, https://www.bitcat365.com/wp-content/uploads/cn/2019/05/19-03355847.png
chat.chainode.capital, Chainode Capital, https://chainode.capital/wp-content/uploads/2019/09/ChainodeCapital_1024.png
chat.desmos.network, Forbole, http://logo.clearbit.com/forbole.com
chat.kalpatech.co, KalpaTech, https://kalpatech.co/images/logoo.png
chat.moonli.me, Moon Lime, https://moonli.me/img/leonids-logo.png
chat.myfaas.club, OpenFaas, https://blog.alexellis.io/content/images/2017/08/faas_side.png
chat.nodeasy.com, Nodeasy.com, http://logo.clearbit.com/nodeasy.com
chat.nodeateam.com, Node A-Team, http://logo.clearbit.com/nodeateam.com
chat.pylon.design, Pylon Validation Service, https://akash.network/static/logos/pylon.png
chat.stake5labs.com, Stake5 Labs, https://s3.amazonaws.com/keybase_processed_uploads/de32b7ca9108d3d7de68949f81114205_360_360.jpg
chat.stake5labs.com, Staker Space, https://staker.space/stkrspcLogo.png
chat.ubik.capital, Ubik Capital, http://logo.clearbit.com/ubik.capital
chat.westaking.io, Westaking, http://logo.clearbit.com/westaking.io
riot.stake.host, Stake.host, https://akash.network/static/logos/stake.host.png
riot.chainvibes.com, chainvibes.com, https://akash.network/static/logos/chainvibes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added founders/level1/doc/riot.chainvibes.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added founders/level1/doc/riot.stake.host.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 93 additions & 0 deletions scripts/logos
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
#!/usr/bin/env ruby
require 'httparty'
require 'csv'
require "active_support/core_ext/array"

def download(filename, url)
File.open(filename, "w") do |file|
response = HTTParty.get(url, stream_body: true, timeout: 5) do |fragment|
if fragment.code == 404
puts "[DEBUG] (#{fragment.code}) #{url}"
return
end
if [301, 302].include?(fragment.code)
print "skip writing for redirect"
elsif fragment.code == 200
print "."
file.write(fragment)
else
raise StandardError, "Non-success status code while streaming #{fragment.code}"
end
end
end
end

def process(entries, out)
result = Array.new
entries.each do | entry |
url = entry["LOGO"].strip
name = entry["NAME"].strip
if url.include?("logo.clearbit.com")
ext = ".png"
else
ext = File.extname(URI.parse(url).path)
end
f = "#{out}/#{entry["ENTRY"]}#{ext}"
puts "[DEBUG] #{name} | #{url} | #{f}\n"
begin
download(f, url)
result << {
"name" => name,
"logo" => url,
"logo_file" => f,
"entry" => entry["ENTRY"].strip
}
rescue StandardError => e
puts "[ERROR] #{e.message}"
end
end
result
end

def mktable(results)
rows = []
results.in_groups_of(4) do | group |
row = []
group.each do | e |
cells = []
unless e.nil?
p = File.basename(e['logo_file'])
txt = "<td width='200px' style='text-align:center'><img src='#{p}'> <br/> #{e['name']}</td>"
cells << txt
end
row << cells.join(" ")
end
rows << "<tr>#{row.join(" ")}</tr>"
end
"<table>#{rows.join("\n")}</table>"
end

if ARGV.length != 2
puts "usage: scripts/logos <csv> <out>"
end

src = ARGV[0]
out = ARGV[1]
entries = CSV.parse(File.read(src), headers: true)
results = process(entries, out)
tab = mktable(results)

subs = Dir.entries("founders/level1").length - 2
markdown = <<-EOF
## Founder Level 1 Status
### Submissions
**Total**: #{subs} / 100
### Validators
#{tab}
EOF

File.open("#{out}/README.md", 'w') { |file| file.write(markdown) }

0 comments on commit d04c3f8

Please sign in to comment.