Skip to content

Instantly share code, notes, and snippets.

View RickDT's full-sized avatar

Rick Terrill RickDT

  • Parallel Markets
  • Dallas, TX
  • X @rickdt
View GitHub Profile
@RickDT
RickDT / Monokai Pro Machine for Slack
Last active August 20, 2020 15:52
Monokai Pro Machine Filter theme for Slack
#1D2528,#1E1F2B,#1D2528,#BAA0F8,#3A4449,#F2FFFC,#FFB270,#FF6D7E,#1D2528,#8B9798

Keybase proof

I hereby claim:

  • I am rickdt on github.
  • I am rickdt (https://keybase.io/rickdt) on keybase.
  • I have a public key ASByBAalYWxDANKjdzUoA0w8G096OK7SFzsswTs8xOhQuwo

To claim this, I am signing this object:

@RickDT
RickDT / List+AppendDecoding.swift
Created October 25, 2018 22:00
Realm Lists + appendable convenience during Decodable init
// Convenience for Lists that have Decodable Elements
extension List where Element: Decodable {
/// Appends the coded values, if present
/// - parameter from: A Keyed Decoding Container
/// - parameter forKey: A Coding Key
public func append<Key>(from values: KeyedDecodingContainer<Key>, forKey key: KeyedDecodingContainer<Key>.Key) throws where Key: CodingKey {
let decodedValues = try values.decodeIfPresent([Element].self, forKey: key) ?? []
self.append(objectsIn: decodedValues)
}
@RickDT
RickDT / Firebug error
Last active August 22, 2016 14:32
Auth response with error
{
"request": {
"service": {
"config": {
"credentials": {
"expired": true,
"expireTime": null,
"params": {
"IdentityPoolId": "us-east-1:157fdbaf-c652-4c1c-be5b-6082a5499401"
},
@RickDT
RickDT / sign.py
Created June 10, 2014 11:27 — forked from koenbok/sign.py
#!/usr/bin/env python
import os
import sys
import shutil
import subprocess
if len(sys.argv) < 3:
sys.exit("Usage: python sign.py <identity> <myApp.app>")