- Donald Duck bowtie is red
- Thomas Cromwell's wife was called Elizabeth
- “你好" means "hello" 👋 in Chinese
- "Yay" is printed
- Rowan Atkinson had a small part in Never Say Never Again
- Graham Atkinson with 107
- George Washington did (in a speech drafted by Alexander Hamilton)
- The Security Council of the United Nations only has five permanent members - China, France, Russia, the UK and the US. Germany is currently one of the ten additional, temporary members which hold their seats on a rotating basis by geographic region.
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
class LogLevel(Enum): | |
CRITICAL = CRITICAL | |
DEBUG = DEBUG | |
ERROR = ERROR | |
FATAL = FATAL | |
INFO = INFO | |
NOTSET = NOTSET | |
WARNING = WARNING | |
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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "add_requirements", | |
"type": "shell", | |
"command": "poetry export -f requirements.txt --without-hashes > requirements.txt" | |
}, | |
] | |
} |
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
{ | |
"configurations": [ | |
{ | |
"preLaunchTask": "add_requirements", | |
"type": "aws-sam", | |
"request": "direct-invoke", | |
"name": "whatever", | |
"invokeTarget": { | |
"target": "code", | |
"lambdaHandler": "path.to.your.handler.handler_name", |
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
"TypeScript Apollo Resolver Test": { | |
"prefix": "tart", | |
"body": [ | |
"import { FetchResult } from 'apollo-link'", | |
"import { DataProxy } from 'apollo-cache'", | |
"import { createMockResolverArgs } from '@rg-dev/apollo/src/test-utils/resolvers.utils'", | |
"", | |
"afterEach(() => jest.clearAllMocks())", | |
"", | |
"test('it should ', () => {", |
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
generate: | |
@echo "Adding TypeScript as dependency..." | |
@yarn add typescript -D | |
@echo "Creating tsconfig..." | |
@npx tsconfig.json | |
@echo "Adding eslint and prettier dependencies..." | |
@yarn add eslint prettier eslint-config-airbnb-typescript-prettier -D | |
@echo "Creating eslint config..." | |
@touch .eslintrc.js | |
@echo "module.exports = {\n extends: ['airbnb-typescript-prettier'],\n rules: {\n // just say 'no' to default exports!\n 'import/prefer-default-export': 'off',\n 'import/no-default-export': 'error',\n }\n };" >> .eslintrc.js |
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 axios from 'axios' | |
import AsyncStorage from '@react-native-community/async-storage' | |
import React, { useEffect, useState } from 'react' | |
import { Linking } from 'react-native' | |
import InAppBrowser from 'react-native-inappbrowser-reborn' | |
import { LoadingIndicator } from '../LoadingIndicator' | |
interface AuthPortalProps { | |
client_id: string | |
scopes: string[] |