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
Created March 16, 2017 16:02
Horizontal Cols 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 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 00:02
Horizontal Auto Width Help Right 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 Form</title>
<!-- Bootstrap -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
@redgeoff
redgeoff / index.html
Last active February 23, 2017 23:40
GoExpo New UI
<!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>
<!-- Bootstrap -->
@redgeoff
redgeoff / index.html
Last active December 23, 2016 21:45
GoExpo SOAP To RESTful API Example
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
</head>
<body>
<script>
var username = 'TODO';
var password = 'TODO';
var url = 'INSERT-PATH-HERE/soapToRestful.php';
@redgeoff
redgeoff / index.html
Created November 24, 2016 00:42
Rotated Rectangles
<body>
<script>
var Point = function (x, y) {
this.x = x;
this.y = y;
};
var rotatePoint = function (p, rads) {
@redgeoff
redgeoff / index.html
Created November 23, 2016 22:44
Rotated Squares
<canvas style="position:absolute;left:100px;top:100px;" id="canvas1"></canvas>
<canvas style="position:absolute;left:242px;top:100px;" id="canvas2"></canvas>
<canvas style="position:absolute;left:171px;top:171px;" id="canvas3"></canvas>
<canvas style="position:absolute;left:171px;top:29px;" id="canvas4"></canvas>
<script>
// An example that demonstrates how rotated squares can be drawn without rounding
// errors. This method uses a canvas for each rectangle and rotates the entire
// canvas. Our initial approach was to calculate the vertices, rotate them around
@redgeoff
redgeoff / mysql-replace-string.php
Created November 6, 2016 21:22
Globally replace a string in a MySQL database
<?php
// A way to globally replace strings in a MySQL database, particularly useful for changing the name
// of a host when moving a WordPress installation from one server to another. This script also auto
// detects any serialized PHP objects, unserializes them, replaces the string and then saves the
// reserialized object.
if (sizeof($argv) !== 7) {
die("usage: php mysql-replace-string.php host db-name username password old-string new-string\n");
}
@redgeoff
redgeoff / index.html
Last active April 9, 2025 21:08
Image Paste Textarea
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Paste Image Example</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.4.6/bluebird.min.js"></script>
</head>
<body>
@redgeoff
redgeoff / index.html
Last active December 23, 2022 16:06
Paste Image Div
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Paste Image Example</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.4.6/bluebird.min.js"></script>
</head>
<body>
@redgeoff
redgeoff / index.html
Last active September 23, 2016 13:15
Ionic Paste Image
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Todo</title>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<link href="https://cdnjs.cloudflare.com/ajax/libs/ionic/1.3.1/css/ionic.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/ionic/1.3.1/js/ionic.bundle.js"></script>