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
#!/usr/bin/env python3 | |
# Note: For my simple use case, repo count is hardcoded to 3 repos from the same owner. Adjust this to whatever you need. | |
import sys | |
import time | |
from collections import defaultdict | |
from ghapi.all import GhApi | |
if len(sys.argv) < 7 or len(sys.argv) > 8: | |
print("Usage: {} token owner repo1 repo2 repo3 start_date [verbose]".format(sys.argv[0])) |
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
#!/usr/bin/env python3 | |
import sys | |
import time | |
from collections import defaultdict | |
from ghapi.all import GhApi | |
if len(sys.argv) < 5 or len(sys.argv) > 6: | |
print("Usage: {} token owner repo start_date [verbose]".format(sys.argv[0])) | |
sys.exit(1) |
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
#!/bin/zsh | |
# Put this the repo you want to examine | |
if [ $# -eq 0 ]; then | |
echo "Please provide PR numbers as arguments." | |
exit 1 | |
fi | |
prs=("$@") |
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
#!/bin/zsh | |
# Put this the repo you want to examine | |
if [ $# -eq 0 ]; then | |
echo "Please provide PR numbers as arguments." | |
exit 1 | |
fi | |
prs=("$@") |
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
// Many thanks to Code Different: http://stackoverflow.com/a/42749141/3440266 | |
import Foundation | |
struct ClassInfo : CustomStringConvertible, Equatable { | |
let classObject: AnyClass | |
let classNameFull: String | |
let className: String | |
init?(_ classObject: AnyClass?) { | |
guard classObject != nil else { return nil } |
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 SwiftUI | |
import Dependencies | |
private struct TextView: View { | |
let title: String | |
let text: String | |
var body: some View { | |
HStack { | |
Text(title) |
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 ApolloAPI | |
import Foundation | |
public extension EnumType { | |
var gqlEnum: GraphQLEnum<Self> { | |
GraphQLEnum(self) | |
} | |
/// Converts an `EnumType` into a `GraphQLNullable<GraphQLEnum<EnumType>>` for compatibility with GQL query and mutation inputs. | |
var gqlEnumNullable: GraphQLNullable<GraphQLEnum<Self>> { |