Skip to content

Instantly share code, notes, and snippets.

View stulevine's full-sized avatar

Stu Levine stulevine

  • @wildcatproductions.com
  • Auburn Hills, MI
  • 03:15 (UTC -04:00)
View GitHub Profile
@stulevine
stulevine / gist:6778835
Created October 1, 2013 13:57
hapi.version output for the lb.create method
"parameters" : {
"General" : [
{
"name" : "format",
"description" : "Output format, one of: json, xml",
"deprecated" : false,
"required" : false,
"internal" : false,
"unimplemented" : false,
"undocumented" : false,
@stulevine
stulevine / ximgfix
Last active January 3, 2016 00:39
A script to allow Fuji X camera users who utilize SDXC cards 64GB and greater to adjust the file system create date of the image files (JPEG/RAF) under Mac OS X. This is a know bug without resolution at this time. I wrote this script to allow me, as an X-E1 and X-E2 user, to have the correct create date of my images show properly in the Mac OS X…
#!/usr/bin/perl
###############
# Author: Stu Levine
# Date: 2014-01-12
# Purpose:
# A script to allow Fuji X camera users who utilize SDXC cards 64GB and >
# to adjust the file system create date of the file under Mac OS X. This
# is a know bug without resolution at this time. I wrote this script to
# allow me, as an X-E1 and X-E2 user, to have the correct create date of
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCtX6cMHZCIcqW5Pt+3HGn7iR/KHMPrPxdzV96nrRwCUnFfQ3m8Axxnd4hTTgyKdBN74zYEaZCpoVUwthyRwzqzXLb87iLkUtzGBUOqMg6q2TpciHcUMhpmgqTR/Xwtpu9bvshJ1+FYUHW9oMfeN1UMhraeXSMG6aoaQPgPWTfigN/CG0f77szKqOXTimBpwbCU7/4jixkZdIosvy8r2oKVQxR2kPy2/qUetQB19eS28eu02WBWeGQuLc1l04gmezGcYGcc1Tac6IiyWqDrJwZGh0Yrbv2U3Zvuv2idcyIFPpTK/l9n90UyA+iPs/ct9mJr6/g1xYGVZLxOyLje1FO4un0w1JhcXcquS2nNU/9zIF7efCdNe2XJQgex/xfcv5CkAnZComRCIQpokQd1byVCOUfLn5OpfYtgfClJQOZI5zlH0prx9DV85FDIAYIaJ2tFnw4u8PZoyF0zGElM4fxd3S8sSh2qUw4goAHGBKtDOI5Fi18qkt/4xmtHGsJo+rdR+OjWlZMLrPp/A9vWQvKkldFSFWxANNFx3No7HIWlauZrgZqKmt2/deHHCxFZxCJLPbiV5LKueNXQFxRVwQ44BK8/r9HJ24QfYwG5t82ydJB4+m1YhfM0nWgrI4063jzRZ0rqTJJTMWdH0wgViTniA/rCKQd5raY0YDC32dZ1qQ== slevine@Stuart-MBA.local

Keybase proof

I hereby claim:

  • I am stulevine on github.
  • I am stulevine (https://keybase.io/stulevine) on keybase.
  • I have a public key whose fingerprint is 5EA6 2ED1 A8B4 9430 E3F2 690C 54A8 6D17 262F 1F86

To claim this, I am signing this object:

//: Playground - noun: a place where people can play
import UIKit
/*
* Description: a String extension to convert roman numerals to their respective integer values
* Synopsis:
* Any of the letters representing numbers in the Roman numerical system:
*
* I = 1, V = 5, X = 10, L = 50, C = 100, D = 500, M = 1,000.
//: Playground - noun: a place where people can play
import UIKit
import PlaygroundSupport
class IndexCardImageView: UIImageView {
let topSpacing: CGFloat = 80.0
var lineColor = UIColor.clear
var lineWidth: CGFloat = 1.0
@stulevine
stulevine / UIImageFunExtensions.swift
Created February 25, 2017 13:11
Swift 3 - Xcode Playground Code
//: Playground - noun: a place where people can play
import UIKit
import PlaygroundSupport
var str = "Hello, playground"
extension UIImage {
class func circle(diameter: CGFloat, color: UIColor) -> UIImage? {
@stulevine
stulevine / AnimatedBarGraphInStackView.swift
Last active February 25, 2017 13:13
Swift 3 - Playground code
//: Playground - noun: a place where people can play
import UIKit
import PlaygroundSupport
class BarGraphView: UIView {
lazy var greenBar: UIView = {
let view = UIView(frame: .zero)
view.translatesAutoresizingMaskIntoConstraints = false
@stulevine
stulevine / ReduceExample.swift
Created February 25, 2017 13:16
Example of how to use .reduce in Swift 3
//: Playground - noun: a place where people can play
import UIKit
var str = "Hello, playground"
struct ChartItem {
var label: String = ""
var value: CGFloat = 0.0
}
@stulevine
stulevine / swfit_stuff.swift
Created February 25, 2017 13:20
Swift using maps and CustomStringConvertible
//: Playground - noun: a place where people can play
import UIKit
var str = "Hello, playground"
let a = ["a", "b", "c"]
let b = ["d", "e", "f"]
let c = ["g", "h", "i"]
let aa = [a, b, c]