This file contains hidden or 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
| SELECT | |
| repo_name AS repository, | |
| EXACT_COUNT_DISTINCT(author.name) AS authors, | |
| EXACT_COUNT_DISTINCT(committer.name) AS committers, | |
| COUNT(*) AS commits | |
| FROM | |
| [bigquery-public-data:github_repos.commits] | |
| WHERE | |
| committer.date >= TIMESTAMP("2016-01-01 00:00:00") | |
| AND committer.date < TIMESTAMP("2017-01-01 00:00:00") |
This file contains hidden or 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
| SELECT | |
| repo_name AS repository, | |
| EXACT_COUNT_DISTINCT(author.name) AS authors, | |
| EXACT_COUNT_DISTINCT(committer.name) AS committers, | |
| COUNT(*) AS commits | |
| FROM | |
| [bigquery-public-data:github_repos.commits] | |
| WHERE | |
| repo_name IN ( "torvalds/linux", | |
| "facebook/react-native", |
This file contains hidden or 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
| # frozen_string_literal: true | |
| class Server | |
| def get(query) | |
| respond "db: #{@db}" | |
| return unless (value = query['key']) | |
| if (lookup = @db[value]) | |
| respond "successful lookup: #{value} => #{lookup}" | |
| else respond "failed lookup: no entry for #{value}" | |
| end |
This file contains hidden or 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
| OOOO | |
| OOOOOOOOOO | |
| ZZOOOOOOOOOOO | |
| ZZZZZOOOOOOOOOOO | |
| ZZZZZZZZZOOOOOOOOOO | |
| ZZZZZZZZZZZOOOOOOOOOOO $$$$$$ | |
| ZZZZZZZZZZZZZZZOOOOOOOOOOO $$$$$$$$$ | |
| ZZZZZZZZZZZZZZZZZZOOOOOOOOOOO$$$$$$$$$$$$$ | |
| ZZZZZZZZZZZZZZZZZZ ~OOOOOOMMM$$$$$$$$$$$$ |
This file contains hidden or 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
| puts 1.upto(100).map { |n| "#{'Fizz' if n%3==0}#{'Buzz' if n%5==0}".presence || n } |
OlderNewer