Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View dsoverby1986's full-sized avatar

Dustin Shane Overby dsoverby1986

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dsoverby1986 on github.
  • I am shaneoverby (https://keybase.io/shaneoverby) on keybase.
  • I have a public key ASCtIdKRuYGRIulH33qTCAtjZgzPqkeDD16yDnT2nkxJzQo

To claim this, I am signing this object:

var usTerritoryCapitals = [
{ name: 'Pago Pago', territoryAbbrev: 'AS' },
{ name: 'Hagåtña', territoryAbbrev: 'GU' },
{ name: 'Saipan', territoryAbbrev: 'MP' },
{ name: 'San Juan', territoryAbbrev: 'PR' },
{ name: 'Charlotte Amalie', territoryAbbrev: 'VI' }
];
var territoriesUS = [
{ name: 'American Samoa', abbrev: 'AS' },
{ name: 'Guam', abbrev: 'GU' },
{ name: 'Northern Mariana Islands', abbrev: 'MP' },
{ name: 'Puerto Rico', abbrev: 'PR' },
{ name: 'U.S. Virgin Islands', abbrev: 'VI' }
];
var stateCapitals = [
{ name: 'Montgomery', stateAbbrev: 'AL' },
{ name: 'Juneau', stateAbbrev: 'AK' },
{ name: 'Phoenix', stateAbbrev: 'AZ' },
{ name: 'Little Rock', stateAbbrev: 'AR' },
{ name: 'Sacramento', stateAbbrev: 'CA' },
{ name: 'Denver', stateAbbrev: 'CO' },
{ name: 'Hartford', stateAbbrev: 'CT' },
{ name: 'Dover', stateAbbrev: 'DE' },
{ name: 'Tallahassee', stateAbbrev: 'FL' },
var states = [
{ name: 'Alabama', abbrev: 'AL' },
{ name: 'Alaska', abbrev: 'AK' },
{ name: 'Arizona', abbrev: 'AZ' },
{ name: 'Arkansas', abbrev: 'AR' },
{ name: 'California', abbrev: 'CA' },
{ name: 'Colorado', abbrev: 'CO' },
{ name: 'Connecticut', abbrev: 'CT' },
{ name: 'Delaware', abbrev: 'DE' },
{ name: 'Florida', abbrev: 'FL' },
@dsoverby1986
dsoverby1986 / game.js
Last active February 27, 2018 03:42
My JavaScript/jQuery for Edford's random number crystal guessing game
/*
I've wrapped the calls to setRandomNumber() and setCrystalValues() in the window ready function so that
so that they won't be called until the page has completely loaded all elements. I am doing this to because
both of these functions work with DOM elements and I want to make sure that the elements exist before trying
to access them.
Also, have included a jQuery click event handler in the window ready function so that it's bound to the button image
elements only after they are loaded in the DOM.
*/
$(function(){
@dsoverby1986
dsoverby1986 / Program.cs
Created September 29, 2017 18:49
Number formatter
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace ConsoleApp
{
class Program
{
static void Main(string[] args)
@dsoverby1986
dsoverby1986 / Program.cs
Last active September 6, 2017 01:21
C# Number Guessing Game
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace NumberGuessingGame
{
class Program
{
private const string _MIN = "minimum";
@dsoverby1986
dsoverby1986 / form1.cs
Created March 9, 2015 23:48
Prime Calculator
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
@dsoverby1986
dsoverby1986 / GCD-LCM Calculator - Bugs Fixed -Check It y0
Last active August 29, 2015 14:16
This is the code for my GCD calculator. I couldn't help myself. It also calculates LCM.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;