Skip to content

Instantly share code, notes, and snippets.

View dbgrandi's full-sized avatar

David Grandinetti dbgrandi

View GitHub Profile
@dbgrandi
dbgrandi / output
Created December 19, 2014 17:06
NSDecimalNumber for Euler
2014-12-19 12:03:03.985 Untitled[96114:507] The maximum NSDecimalNumber is 3402823669209384634633746074317682114550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2014-12-19 12:03:03.987 Untitled[96114:507] Making an NSDecimalNumber 1 less than that (via an NSString) will be interpreted as 3402823669209384634633746074317682114540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
@dbgrandi
dbgrandi / main.swift
Created August 21, 2015 02:06
Swift public class with private var equality
let t1 = TinkerObject(id:1)
let t2 = TinkerObject(id:2)
// this will work
print (t1==t2)
// this would be an error:
// 'TinkerObject' does not have a member named 'id'
// print(t1.id)
@dbgrandi
dbgrandi / public_diff.rb
Created February 23, 2016 02:33
Script I use to check public API diffs between pod specs
#!/usr/bin/env ruby
require 'cocoapods'
def get_public_changes_between_versions(path, podspec, old_tag, new_tag)
pathlist = Pod::Sandbox::PathList.new(Pathname.new(path))
headers = []
spec = Pod::Specification.from_file podspec
# https://github.com/CocoaPods/cocoadocs.org/issues/35
@dbgrandi
dbgrandi / gems.txt
Created December 19, 2018 04:05
AWS Ruby Lambda Gems
aws-eventstream (1.0.1)
aws-partitions (1.117.0)
aws-sdk (3.0.1)
aws-sdk-acm (1.14.0)
aws-sdk-acmpca (1.7.0)
aws-sdk-alexaforbusiness (1.13.0)
aws-sdk-amplify (1.0.0)
aws-sdk-apigateway (1.23.0)
aws-sdk-applicationautoscaling (1.16.0)
aws-sdk-applicationdiscoveryservice (1.8.0)