forked from ovrclk/ecosystem
-
Notifications
You must be signed in to change notification settings - Fork 0
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
25 changed files
with
129 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
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 @@ | ||
web |
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 @@ | ||
ruby-2.6.3 |
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,2 @@ | ||
proc-level1: | ||
scripts/logos ./founders/level1/doc/logos.csv ./founders/level1/doc |
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,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> |
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
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.
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
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) } |