Skip to content

Instantly share code, notes, and snippets.

@emajcher
emajcher / UIColor+Hex.swift
Created June 28, 2016 03:53
Create a UIColor from a hex string
//
// UIColor+Hex.swift
//
// Created by Edward Majcher on 6/27/16.
//
//
import Foundation
extension UIColor {
//
// KeyboardHandler.swift
//
// Helper protocol and extension to consolidate keyboard notification handling for
// UIViewControllers.
//
// Created by Edward Majcher on 6/21/16.
//
import UIKit
@emajcher
emajcher / gist:a2c7a696ae15ae326d50
Created July 21, 2014 16:40
Simple audio waveform display for iPhone using Core Graphics similar to iOS voice memo's app (configured for 320 x 60 display)
//
// WaveformView.m
//
// Created by Edward Majcher on 7/17/14.
//
#import "WaveformView.h"
//Gain applied to incoming samples
static CGFloat kGain = 10.;