Skip to content

Instantly share code, notes, and snippets.

View jplwood's full-sized avatar

Justin Leatherwood jplwood

View GitHub Profile
@jplwood
jplwood / .bashrc
Last active February 11, 2020 15:19
Command Line
###################
## general stuff ##
###################
alias rb='rm -Rf ACRSelect/*/bin/*' # delete all bin contents
alias l='ls -lairt'
alias c='clear'
###################
## git stuff ##
@jplwood
jplwood / ng-import-xlsx-parse.js
Last active May 17, 2017 16:41
ng1 excel file upload and client side XLSX parsing
angular.module('acrSelect.portal.directives')
.directive('organizationImport', function () {
return {
restrict: 'E',
templateUrl: '/app/templates/organization/organizationImport.html?v=' + window.ApplicationBuildVersion,
scope: {
'organizations': '=',
'timeZones': '=',
'utils': '='
},
@jplwood
jplwood / us-states-territories-enum.cs
Last active October 22, 2021 15:40
States and Territories of the US - C# Enum
using System.ComponentModel;
/// <summary>
/// States and Territories of the US
/// </summary>
public enum StatesTerritories
{
// States
[Description("Alabama")] AL = 1,
[Description("Alaska")] AK = 2,
@jplwood
jplwood / ISO-3166-1-alpha-2-country-codes-enum.cs
Last active February 20, 2024 16:57
ISO 3166-1 Alpha 2 Country Codes - C# Enum
using System.ComponentModel;
/// <summary>
/// States and Territories of the US
/// </summary>
public enum Countries
{
[Description("Afghanistan")] AF = 1,
[Description("Åland Islands")] AX = 2,
[Description("Albania")] AL = 3,