Skip to content

Instantly share code, notes, and snippets.

View jordanskomer's full-sized avatar

Jordan Skomer jordanskomer

  • distributed
View GitHub Profile
@jordanskomer
jordanskomer / Country.ts
Created August 31, 2022 21:38
Typescript Country Enum
export enum Country {
Afghanistan = 'AF',
AlandIslands = 'AX',
Albania = 'AL',
Algeria = 'DZ',
AmericanSamoa = 'AS',
Andorra = 'AD',
Angola = 'AO',
Anguilla = 'AI',
Antarctica = 'AQ',
@jordanskomer
jordanskomer / State.ts
Created August 31, 2022 21:37
Typescript State Enum
/**
* Represents every state 2 digit letter code. Derrived from https://www.ssa.gov/international/coc-docs/states.html
*
* @author jordanskomer
*/
export enum State {
Alabama = "AL",
Alaska = "AK",
AmericanSamoa = "AS",
Arizona = "AZ",
@jordanskomer
jordanskomer / HttpStatusCode.ts
Last active August 31, 2022 21:37
Typescript HTTP Status Code Enum
/**
* A enum mapping for a more descriptive use of HttpStatus Codes. Derived from the docs link below
*
* @docs https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
* @author jordanskomer
*/
export enum HttpStatusCode {
// Information responses
/**
* This interim response indicates that the client should continue the request or ignore the response if the request is already finished.
@jordanskomer
jordanskomer / vue-gotchas
Created November 14, 2017 21:16
The Gotchas of Vue.js
--------
Don't use ES6 in computed values
--------
Ex: Won't Work
computed: {
test: () => {
return 'test'
}
}
Ex: Will Work

Squerge Manatee

![image](http://i.giphy.com/3og0IuECgoRILJUAfu.gif)

image

Merge

![image](https://media.giphy.com/media/sMG7wCjOtUWeA/giphy.gif)

image