Skip to content

Instantly share code, notes, and snippets.

function onEdit(e) {
const now = new Date();
const utcNow = new Date(Date.UTC(
now.getUTCFullYear(),
now.getUTCMonth(),
now.getUTCDate(),
now.getUTCHours(),
now.getUTCMinutes(),
now.getUTCSeconds(),
now.getUTCMilliseconds()
@amccloud
amccloud / input.scss
Created July 25, 2022 22:29
Generated by SassMeister.com.
.ccx-ss-plus-card-content,
.ccx-ss-request-card-content,
.ccx-ss-user-card-content {
.ccx-ss-plus-card-row,
.ccx-ss-request-card-row,
.ccx-ss-user-card-row {
.ccx-ss-plus-card-details,
.ccx-ss-request-card-details,
.ccx-ss-user-card-details {
.ccx-ss-request-card-second-line,

Common Flow Issues

Below are a list of common flow issues with a brief explanations of the problem and possible solutions. The dynamic parts of the error message have all been replaced with a wildcard character * in the error message to aid with finding it on this page

Cannot resolve module *

// $FlowError: Cannot resolve module *
import example from "example";
woot
const polarToCartesian = ({ angle, radius }) => ({
x: radius * Math.cos(angle),
y: radius * Math.sin(angle)
});
const ball = document.querySelector('#b .ball');
const ballStyler = styler(ball);
let pointerTracker;
physics({
ChangePane('render', {
apiUrl: '//' + location.host + '/v1/1',
badge: 'Dot',
theme: {red: 'pink'}
});
// becomes
const root = document.getElementById('#root');
ChangePane.render(root, {
module TypographyHelper
WIDOW_EXPRESSION = /([^\s])\s+([^\s]+)\s*$/
def widont(text, count=1)
count.times.inject(text) do |text|
text.sub(WIDOW_EXPRESSION, '\1 \2')
end
end
end
#!/bin/bash
PWD=`pwd`
PREFIX="$PWD/build"
EXPORT_DIR='ImageMagick.framework'
LIB_PNG='libpng-1.5.17'
LIB_IMAGEMAGICK='ImageMagick-6.8.7-8'
[[ ! -d 'jpeg-9' && ! -f 'jpegsrc.v9.tar.gz' ]] && curl -OL http://www.imagemagick.org/download/delegates/jpegsrc.v9.tar.gz
from gevent import pywsgi
from geventwebsocket.handler import WebSocketHandler
def hello_world(environ, start_response):
ws = environ['wsgi.websocket']
while ws.socket:
print ws.receive()
ws.close()
defaults
mode http
timeout client 15s
timeout server 15s
timeout connect 5s
frontend http
bind *:80
bind *:443 ssl crt /path/to/ssl.pem
option forwardfor