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
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "log" | |
| "time" | |
| bson1 "go.mongodb.org/mongo-driver/bson" | |
| mongo1 "go.mongodb.org/mongo-driver/mongo" |
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
| #!/usr/bin/env python | |
| import argparse | |
| def main(args): | |
| lookup = {} | |
| for i, group in enumerate(args.groups): | |
| for c in group: | |
| lookup[c] = i + 1 |
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
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "log" | |
| "github.com/sanity-io/litter" | |
| bson1 "go.mongodb.org/mongo-driver/bson" | |
| bson2 "go.mongodb.org/mongo-driver/v2/bson" |
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
| #!/usr/bin/env python | |
| import fileinput | |
| import re | |
| in_headers = True | |
| header_start = re.compile(r"[-A-Za-z0-9]+:\s") | |
| for line in fileinput.input(): | |
| if line.isspace(): | |
| in_headers = False |
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
| #!/usr/bin/env python | |
| import argparse | |
| import subprocess | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("issue", help="jira ticket id", type=str) | |
| parser.add_argument("--markdown", "--md", action="store_true", help="generate a markdown link") | |
| args = parser.parse_args() | |
| issue = args.issue.upper() |
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
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use utf8; | |
| binmode STDOUT, ':encoding(UTF-8)'; | |
| open my $git, '-|', ( | |
| 'git', | |
| 'log', |
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
| import { open } from 'node:fs/promises'; | |
| import * as readline from 'node:readline/promises'; | |
| import { once } from 'node:events'; | |
| const WRONG = 0; | |
| const MISPLACED = 1; | |
| const CORRECT = 2; | |
| const readWords = async function () { | |
| const words = []; |
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
| Rolling Stone 500 Greatest Albums | |
| [ ] 1. Marvin Gaye - What's Going On | |
| [ ] 2. The Beach Boys - Pet Sounds | |
| [ ] 3. Joni Mitchell - Blue | |
| [ ] 4. Stevie Wonder - Songs in the Key of Life | |
| [ ] 5. The Beatles - Abbey Road | |
| [ ] 6. Nirvana - Nevermind (1991) | |
| [ ] 7. Fleetwood Mac - Rumours | |
| [ ] 8. Prince - Purple Rain |
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
| +----------------------+ | |
| | ------ | | |
| | / . | | |
| | I--()()--I HAPPY | | |
| | I I BIRTHDAY| | |
| | I . , I RJBS | | |
| | . -- . | | |
| +----------------------+ | |
| +----------------------+ |
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
| #!/usr/bin/env perl | |
| use v5.26; | |
| use warnings; | |
| use Getopt::Long::Descriptive; | |
| my ($opt, $usage) = describe_options( | |
| '%c %o', | |
| [ 'padding|p=i', 'spaces to separate columns by', { default => 2} ], | |
| [ 't', 'this does nothing but helps your muscle memory' ], | |
| [ 'help|h', 'print usage and exit', { shortcircuit => 1 } ], |
NewerOlder