Skip to content

Instantly share code, notes, and snippets.

View redgeoff's full-sized avatar

Geoff Cox redgeoff

View GitHub Profile
@redgeoff
redgeoff / index.html
Last active October 11, 2018 21:22
MSON: Basic Form 2
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>MSON: Basic Form 2</title>
</head>
<body>
<div id="root"></div>
<script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script>
@redgeoff
redgeoff / index.html
Last active October 11, 2018 18:51
MSON: Basic Form 1
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>MSON: Basic Form 1</title>
</head>
<body>
<div id="root"></div>
<script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script>
@redgeoff
redgeoff / create-cluster.sh
Created September 22, 2018 20:45
Create CouchDB Cluster
#!/bin/bash
# Usage: create-cluster.sh user password port local-port space-separated-ips
user=$1
password=$2
port=$3
localPort=$4
ips=$5
@redgeoff
redgeoff / index.html
Last active October 26, 2018 23:56
Synchronizer - basic synchronization using promise chaining
<script>
let synchronizer = Promise.resolve();
function synchronize(promiseFactory) {
const promise = synchronizer.then(() => {
return promiseFactory();
});
synchronizer = synchronizer.then(() => promise);
@redgeoff
redgeoff / couchdb-hash-password
Last active January 17, 2024 09:43
CouchDB Hash Password
#!/bin/bash
# Hashes a CouchDB user password
# Usage: couchdb-hash-password.sh url password
# e.g. couchdb-hash-password.sh http://admin:secret@localhost:5984 mypwd
# => -pbkdf2-7d66a7d6c73f83173f5d0f73b7570203f443dffd,8dab49491e28d59980a6436521822458,10
url=$1
password=$2
@redgeoff
redgeoff / index.html
Created March 31, 2017 22:40
GoExpo New UI With Page Color
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>GoExpo</title>
@redgeoff
redgeoff / index.html
Created March 30, 2017 21:18
Bootstrap Simulated Typography
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap Simulated Typography</title>
</head>
<body>
@redgeoff
redgeoff / index.html
Created March 30, 2017 21:18
Bootstrap Typography
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap Typography</title>
<!-- Bootstrap -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
@redgeoff
redgeoff / index.html
Created March 17, 2017 17:44
Horizontal Auto Width Help Right With Errors Form
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Horizontal Auto Width Help Right With Errors Form</title>
<!-- Bootstrap -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
@redgeoff
redgeoff / index.html
Created March 16, 2017 16:44
Horizontal Cols Auto Width Form
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Horizontal Cols Auto Width Form</title>
<!-- Bootstrap -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">