Skip to content

Instantly share code, notes, and snippets.

View radzionc's full-sized avatar

Radzion Chachura radzionc

View GitHub Profile
@radzionc
radzionc / quotes.js
Created June 11, 2023 06:37
Quotes of successful people
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.',
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
[
'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'
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) {
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())
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
$ . ./cook_notebook.sh
$ terraform init
$ terraform apply
$ npm install --save redux react-redux redux-act
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 ...
}
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,