Skip to content

Instantly share code, notes, and snippets.

View cumanzor's full-sized avatar

Carlos Umanzor cumanzor

  • TicketSauce.com, Inc.
  • Costa rica
View GitHub Profile
@vincentzierigen
vincentzierigen / Clean Object
Created November 16, 2015 16:50
Deletes all empty keys from an Object
/*
* Clean Object
* Cleans object from keys are not being used
* @param {Object} dirty
* @returns {Object} clean
*/
function cleanObject(object) {
var keys = Object.keys(object);
keys.map(function(obj, i) {
var value = object[obj];
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active May 10, 2024 18:21
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
@mshafrir
mshafrir / states_hash.json
Created May 9, 2012 17:05
US states in JSON form
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",