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
h-index | organization | |
---|---|---|
347 | ||
314 | microsoft | |
216 | apache | |
206 | fossasia | |
203 | sindresorhus | |
142 | googlearchive | |
137 | mozilla | |
133 | alibaba | |
132 | spatie |
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
Query | Number of results | |
---|---|---|
stars:15..20 created:2017-05-02..2017-05-11 | 742 | |
stars:15..20 created:2017-05-12..2017-05-20 | 630 | |
stars:15..20 created:2017-05-30..2017-06-07 | 631 | |
stars:15..20 created:2017-06-08..2017-06-17 | 771 | |
stars:15..20 created:2017-06-18..2017-06-26 | 638 | |
stars:15..20 created:2017-06-27..2017-07-05 | 674 | |
stars:15..20 created:2017-07-06..2017-07-14 | 643 |
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
def split_interval(a, b): | |
d = int((b - a) / 2) | |
return [(a, a + d), (a + d + 1, b)] | |
def split_by_days(stars, day_start, day_end): | |
start_fmt = day_start.strftime('%Y-%m-%d') | |
end_fmt = day_end.strftime('%Y-%m-%d') | |
q = query_for_star_dates(stars, start_fmt, end_fmt) | |
c = get_count(q) |
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
Query | Number of Results | |
---|---|---|
stars:400..420 | 2524 | |
stars:400..420 created:<2015 | 947 | |
stars:400..420 created:2015..2016 | 777 | |
stars:400..420 created:>2016 | 799 |
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
Query | Number of Results | |
---|---|---|
stars:>15000 | 724 | |
stars:9000..15000 | 960 | |
stars:7000..9000 | 782 | |
stars:5500..7000 | 917 | |
stars:4600..5500 | 900 | |
stars:4000..4600 | 801 | |
stars:3500..4000 | 939 | |
... | ... |
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
{ | |
"search": { | |
"repositoryCount": 704279, | |
"edges": [ | |
{ "node": { "nameWithOwner": "freeCodeCamp/freeCodeCamp", "stargazers": { "totalCount": 308427 } } }, | |
{ "node": { "nameWithOwner": "996icu/996.ICU", "stargazers": { "totalCount": 249062 } } }, | |
{ "node": { "nameWithOwner": "vuejs/vue", "stargazers": { "totalCount": 156364 } } }, | |
{ "node": { "nameWithOwner": "facebook/react", "stargazers": { "totalCount": 143121 } } }, | |
{ "node": { "nameWithOwner": "tensorflow/tensorflow", "stargazers": { "totalCount": 140562 } } }, | |
{ "node": { "nameWithOwner": "twbs/bootstrap", "stargazers": { "totalCount": 138369 } } }, |
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
query { | |
search(query: "is:public stars:>15", type: REPOSITORY, first:100) { | |
repositoryCount | |
edges { | |
node { | |
... on Repository { | |
nameWithOwner | |
stargazers { | |
totalCount | |
} |
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
def make_angle_map(station_loc, asteroids): | |
d = defaultdict(list) | |
x, y = station_loc | |
for a in asteroids: | |
ax, ay = a | |
angle = math.atan2(y - ay, ax - x) | |
d2 = (x - ax) ** 2 + (y - ay) ** 2 | |
d[angle].append((d2, a)) | |
for angle, pairs in d.items(): | |
d[angle] = [*sorted(pairs)] |
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
import {Expression} from './expression'; | |
describe('Expression', () => { | |
it('should work with constants', () => { | |
expect(Expression.parse(0).evaluate(null!)).toEqual(0); | |
expect(Expression.parse(10).evaluate(null!)).toEqual(10); | |
}); | |
it('should add', () => { | |
expect(Expression.parse(['+', 1, 2]).evaluate(null!)).toEqual(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
token.js |