Skip to content

Instantly share code, notes, and snippets.

View mikestratton's full-sized avatar

Mike Stratton mikestratton

View GitHub Profile
@mikestratton
mikestratton / README.md
Last active May 1, 2019 08:00 — forked from hofmannsven/README.md
MySQL Command Line Cheat Sheet
@mikestratton
mikestratton / cb_2017_us_state_20m
Created March 1, 2019 20:24
GeoJSON for United States Boundaries
This file has been truncated, but you can view the full file.
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"bbox": [
-179.174265,
51.219862,
179.773922,
@mikestratton
mikestratton / index.html
Created February 28, 2019 07:33
Random Moving Div
<div class='a'></div>
<div class='b'></div>
<div class='c'></div>
<div class='d'></div>
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.1.3",
"fideloper/proxy": "^4.0",
"laravel/framework": "5.7.*",
@mikestratton
mikestratton / blog.web.config
Created September 4, 2018 05:12 — forked from adilmughal/blog.web.config
Web.config URL rewriting rules for hosting WordPress (PHP) on IIS
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Remove html" stopProcessing="true">
<match url="(.*).html$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
@mikestratton
mikestratton / uiid.html
Created April 29, 2017 09:06
Embedded Google Assistant
<!DOCTYPE HTML>
<html>
<head>
<title>uiid virtual assistant</title>
</head>
<body>
<iframe width="350" height="430" src="https://console.api.ai/api-client/demo/embedded/cf3105b6-12b8-4047-8727-9dab8ec0d66a"></iframe>
/** https://github.com/mikestratton/jquery-quiz **/
for(var i = 1; i <= 45; i++) { // loop radio buttons
var radios = document.getElementsByName('q'+i); //used to increment questions in html
for(var j = 0; j < radios.length; j++) {
var radio = radios[j];
if(radio.value == "1" && radio.checked) {
amountCorrect = amountCorrect + 1; //add radio value to total
}
}
}
@mikestratton
mikestratton / mortgage_payment_calculator.cpp
Created February 22, 2017 19:54
Mortgage Payment Calculator. This program determines the monthly payments on a mortgage given the loan amount, the yearly interest, and the number of years.
//*****************************************************************
// Mortgage Payment Calculator program
// This program determines the monthly payments on a mortgage given
// the loan amount, the yearly interest, and the number of years.
//*****************************************************************
#include // Access cout
#include // Access power function
#include // Access manipulators
using namespace std;
<?php
decipherThis('72olle 103doo 100ya'); // 'Hello good day'
echo "<br />";
decipherThis('82yade 115te 103o'); // 'Ready set go'
echo "<br />";
decipherThis('a'); // 'a'
echo "<br />";
decipherThis('115da'); // 'sad'
echo "<br />";
@mikestratton
mikestratton / index.html
Created October 21, 2016 02:21 — forked from knownasilya/index.html
Google Maps Advanced Drawing
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="UTF-8">
<title>Drawing Tools</title>
<script type="text/javascript"
src="http://maps.google.com/maps/api/js?sensor=false&libraries=drawing"></script>
<style type="text/css">
#map, html, body {