Design Thinking
A structured guide to the stuff you do anyway
version: '3' | |
services: | |
nginx-proxy: | |
image: nginx:alpine | |
container_name: proxy-nginx | |
environment: | |
- DEFAULT_HOST=hello.local | |
ports: | |
- 80:80 |
http://tracker.opentrackr.org:1337/announce | |
udp://tracker.opentrackr.org:1337/announce | |
http://tracker.yoshi210.com:6969/announce | |
udp://tracker.yoshi210.com:6969/announce | |
http://tracker.internetwarriors.net:1337/announce | |
udp://tracker.internetwarriors.net:1337/announce | |
http://9.rarbg.com:2710/announce | |
udp://11.rarbg.com:80/announce | |
http://tracker.skyts.net:6969/announce | |
udp://tracker.skyts.net:6969/announce |
function mapSeries(arr) { | |
if (!Array.isArray(arr)) throw new Error('mapSeries requires an Array'); | |
const length = arr.length; | |
const results = new Array(length); | |
arr.reduce((chain, item, i) => { | |
return chain.then(() => item).then(val => results[i] = val); | |
}, Promise.resolve()) | |
.then(() => results); | |
} |
version: '2.2' | |
services: | |
proxy: | |
image: nginx:1-alpine | |
restart: always | |
ports: | |
- 5601:80 | |
- 9200:9201 | |
volumes: |
/* eslint @typescript-eslint/no-var-requires: 0 */ | |
console.log('WARNING: Make sure you run `yarn arc env` before updating your env file') | |
const parse = require('@architect/parser') | |
const fs = require('fs/promises') | |
const readline = require('readline') | |
function ask(question) { | |
const rl = readline.createInterface({ |
const { Machine, assign, interpret } = require('xstate'); | |
const glassMachine = Machine( | |
{ | |
id: 'glass', | |
// the initial context (extended state) of the statechart | |
context: { | |
amount: 0, | |
}, | |
initial: 'empty', |
Disable Window Animation
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO
import { createElement, Attributes, ComponentType } from 'react'; | |
import PropTypes from 'prop-types'; | |
import { graphql } from '@apollo/react-hoc'; | |
import { GraphQLRequest } from 'apollo-boost'; | |
interface Config { | |
name: string; | |
} | |
interface Props { |