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
gulp = require 'gulp' | |
sourcemaps = require 'gulp-sourcemaps' | |
source = require 'vinyl-source-stream' | |
buffer = require 'vinyl-buffer' | |
browserify = require 'browserify' | |
watchify = require 'watchify' | |
uglify = require 'gulp-uglify' | |
babel = require 'babelify' | |
livereload = require 'gulp-livereload' | |
sass = require 'gulp-sass' |
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 * as functions from 'firebase-functions' | |
import * as admin from 'firebase-admin' | |
import { Storage } from '@google-cloud/storage' | |
import * as path from 'path' | |
import * as os from 'os' | |
import * as fs from 'fs' | |
import { spawn } from 'child-process-promise' | |
const gcs = new Storage({ keyFilename: path.resolve(__dirname, '..', 'service-account-credentials.json') }) | |
admin.initializeApp() |
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 { useState, useCallback, useEffect } from 'react' | |
import { Auth, Hub } from 'aws-amplify' | |
export enum AuthState { | |
SignIn = 'signIn', | |
SignUp = 'signUp', | |
ConfirmSignIn = 'confirmSignIn', | |
ConfirmSignUp = 'confirmSignUp', | |
ForgotPassword = 'forgotPassword', | |
RequireNewPassword = 'requireNewPassword', |
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
from collections import defaultdict | |
import datetime | |
import json | |
import urllib.parse | |
import os | |
import boto3 | |
import requests | |
ce = boto3.client('ce') |
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 os | |
import requests | |
from io import BytesIO | |
from PIL import Image | |
import numpy as np | |
TOKEN = os.environ['SLACK_TOKEN'] | |
res = requests.get('https://slack.com/api/emoji.list', | |
headers={'Authorization': f'Bearer {TOKEN}'}) |
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
from typing import List, Iterable, Iterator | |
import re | |
from itertools import groupby as _groupby | |
import datetime | |
import logging | |
import boto3 | |
logging.basicConfig(level=logging.INFO) |