Skip to content

Instantly share code, notes, and snippets.

@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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.define :opencenter do |config|
config.vm.box = 'precise64'
config.vm.host_name = 'opencenter-server.vm'
config.vm.customize ['modifyvm', :id, '--memory', 1024]
config.vm.network :hostonly, '172.20.0.10'
config.vm.provision :shell, :inline => 'apt-get update; apt-get -y install curl htop vim'