Skip to content

Instantly share code, notes, and snippets.

View scottcarter's full-sized avatar

Scott Carter scottcarter

View GitHub Profile
@KyLeggiero
KyLeggiero / LICENSE.txt
Last active April 14, 2022 19:49
Make UIColor Codable
BLUE HUSKY LICENSE 0 - PUBLIC DOMAIN - OPUS 7
0: LAYMAN'S TERMS
This section is meant to explain the purpose of this License in Layman's
terms, and should thusly never be seen as legally binding. This disclaimer does
not apply to further sections of this License.
1. This is no one's product and is in the public domain
2. You're not responsible for any bad things that might happen because someone
used this product
@danreeves
danreeves / setup.md
Last active November 26, 2022 03:08
New Mac

Applications

  • Chrome
  • AppCleaner
  • Dashlane
  • Alfred
  • Sublime Text
  • iTerm2
  • Boxy
  • Bartender 2
  • RescueTime
@romantomjak
romantomjak / CustomRootCAAPIClient.h
Last active August 25, 2017 10:04
SSL with custom root CA certificate using AFNetworking 2.x on iOS 7 and iOS 8
//
// CustomRootCAAPIClient.h
//
// Created by Roman Tomjak on 19/12/14.
// Copyright (c) 2014 Roman Tomjak. All rights reserved.
//
#import <AFHTTPSessionManager.h>
@interface CustomRootCAAPIClient : AFHTTPSessionManager
@nicbell
nicbell / 1_primitive_comparison.js
Last active September 23, 2022 16:56
JavaScript object deep comparison. Comparing x === y, where x and y are values, return true or false. Comparing x === y, where x and y are objects, returns true if x and y refer to the same object. Otherwise, returns false even if the objects appear identical. Here is a solution to check if two objects are the same.
//Primitive Type Comparison
var a = 1;
var b = 1;
var c = a;
console.log(a == b); //true
console.log(a === b); //true
console.log(a == c); //true
console.log(a === c); //true