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
const AUTHORS_QUOTES = { | |
'Franz Kafka': [ | |
'Productivity is being able to do things that you were never able to do before.', | |
], | |
'Peter Drucker': [ | |
'Until we can manage time, we can manage nothing else.', | |
'Nothing is less productive than to make more efficient what should not be done at all.', | |
'Time is the scarcest resource and unless it is managed nothing else can be managed.', | |
'Efficiency is doing better what is already being done.', | |
'Efficiency is doing things right. Effectiveness is doing the right things.', |
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
for file in $(find ./public/images -name '*.jpeg' -or -name '*.jpg' -or -name '*.png'); | |
do | |
cwebp -q 80 "$file" -o "${file%.*}.webp" | |
rm "$file" | |
done | |
for file in $(find ./public/images -name '*.webp'); | |
do | |
cwebp -resize 400 0 "$file" -o "$file" | |
done |
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
[ | |
'run', | |
'--rm', | |
'--mount', | |
'type=volume,source=registry_cache,target=/usr/local/cargo/registry', | |
'--mount', | |
'type=volume,source=bAsset-contracts_cache,target=/code/target', | |
'-v', | |
'/Users/rodion/terra/LocalAnchor/modules/bAsset-contracts:/code', | |
'cosmwasm/workspace-optimizer-arm64:0.12.5' |
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 Sentry from '@sentry/browser' | |
import * as Amplitude from 'amplitude-js' | |
import { PATH } from '../constants/routing' | |
import { isEbmeddedLanding } from './routing' | |
import { reportError } from './reporting' | |
const trackEvent = name => { | |
try { | |
Amplitude.getInstance().logEvent(name) | |
} catch (err) { |
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
const Browser = require('./browser') | |
const { getNote, getOrderedUsers } = require('./business') | |
const database = require('./database') | |
const storage = require('./storage') | |
const browserWSEndpoint = process.argv[2] | |
const browser = new Browser(browserWSEndpoint) | |
const run = async () => { | |
const users = await database.getNewUsers(storage.getLastDate()) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
$ . ./cook_notebook.sh | |
$ terraform init | |
$ terraform apply |
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
$ npm install --save redux react-redux redux-act |
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
const TABLE_NAME_POSTFIX = `_${process.env.ENV}` | |
const TABLES_NAMES = { | |
users: `users_${process.env.ENV}`, | |
projects: `projects_${process.env.ENV}`, | |
// we will use it know the index of last migration | |
projects: `management_${process.env.ENV}`, | |
// other tables names ... | |
} |
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
const { URLSearchParams } = require('url') | |
const { AuthenticationError } = require('apollo-server') | |
const jwt = require('jsonwebtoken') | |
const fetch = require('node-fetch') | |
const Sentry = require('@sentry/node') | |
const { AuthorizationError } = require('../errors') | |
const { | |
LINKEDIN_ACCESS_TOKEN, |
NewerOlder