- update all repos:
git pull --recurse-submodules=yes, https://stackoverflow.com/a/43222225/9989668 git submodule update --recursive, update submodules
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 type { FocusEvent, KeyboardEvent } from 'react'; | |
| const [isDesktop, setIsDesktop] = useState<boolean>(false); | |
| useEffect(() => { | |
| (async () => { | |
| setIsDesktop((await deviceDetect()).isDesktop); | |
| })(); | |
| }, []); | |
| export const deviceDetect = async (): Promise< |
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
| try { | |
| const cacheData = cloneDeep(client.cache.readQuery<PostsQuery, PostsQueryVariables>({ | |
| query: Posts, | |
| variables: args.postsVariables | |
| })); | |
| if (!cacheData) { | |
| throw new Error('no cache data found'); | |
| } | |
| const postCache = cacheData.posts.results.find(elem => elem.id === args.data.id); |
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 { ObjectId } from 'mongodb'; | |
| import { Resolver, FieldResolver, ResolverInterface, Root } from 'type-graphql'; | |
| import { DownloadLinks } from '../schema/structure/baseFile'; | |
| import Media from '../schema/structure/media'; | |
| import { fileBucket, getMediaKey, getS3DownloadSignedURL } from '../utils/aws'; | |
| @Resolver(_of => Media) | |
| class DownloadLinksResolver implements ResolverInterface<Media> { | |
| @FieldResolver(_returns => DownloadLinks) |
| Biased Phrasing | Alternatives |
|---|---|
| Blacklist / Whitelist | AllowList / DenyList |
| Master / Slave | Primary / Replica Leader / Follower |
| Brown bags | Lunch and learn, Tech talks |
| Man hours | Hours of effort |
| Pow wow | Huddle, Standup, Discussion |
| Grandfathered | Legacy, Exempt |
| “Hi Guys” | Y'all, Folks |
| Black/Gray days | Blocked/Restricted days |
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/python3 | |
| import argparse | |
| parser = argparse.ArgumentParser(description='Get words from dictionary with same letters.') | |
| parser.add_argument('-d', dest='dictionary', default=None, | |
| help='dictionary file path', nargs=1, type=str) | |
| parser.add_argument('-r', dest='repeating', default=True, | |
| help='allow repeating letters', nargs=1, type=bool) | |
| parser.add_argument('-l', dest='letters', default=None, | |
| help='allowed letters', nargs=1, type=str) |
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/python3 | |
| import argparse | |
| from subprocess import check_output | |
| # keybase sign message or file | |
| # replace comment with /verify so recipients can find it easily | |
| parser = argparse.ArgumentParser(description='Sign message.') | |
| parser.add_argument('-i', dest='file_path', default=None, | |
| help='file input', nargs=1) |
I hereby claim:
- I am jschmidtnj on github.
- I am joshuaschmidt (https://keybase.io/joshuaschmidt) on keybase.
- I have a public key ASCsC2FFS7LJzDL1AHE2Seuj1uoV7X2yu7TbS4G3np9sQwo
To claim this, I am signing this object: