Skip to content

Instantly share code, notes, and snippets.

View jkubicek's full-sized avatar

Jim Kubicek jkubicek

View GitHub Profile
@jkubicek
jkubicek / NSManagedObject.swift
Created July 2, 2015 04:45
managed object creation extension
protocol ManagedObject {
static var entityName: String { get }
}
extension ManagedObject where Self: NSManagedObject {
static func createWithContext(context: NSManagedObjectContext) -> Self {
return Self.createWithContext(context, entityName: self.entityName)
@jkubicek
jkubicek / ascii_art
Last active December 15, 2015 19:10
Emoticon Faces
/code _-====-__-======-__-========-_____-============-__
_( coffee _)
OO( train )_
0 (_ choo! _)
o0 (_ choo! _)
o '=-___-===-_____-========-___________-===-dwb-='
.o _________
. ______ ______________ | | _____
_()_||__|| ________ | | |_________| __||___||__
(BNSF 1995| | | | | __Y______00_| |_ _|
@jkubicek
jkubicek / HelpfulMacros.h
Created April 19, 2011 21:48
Generally helpful macros I like to include in all my projects
//
// HelpfulMacros.h
//
// Created by Jim Kubicek on 4/19/11.
// Copyright 2011 Jim Kubicek. All rights reserved.
//
// Logging
// Based on code from http://cocoaheads.byu.edu/node/6
@jkubicek
jkubicek / AdHoc_Deployment.sh
Created April 19, 2011 10:59
Bash script to automate app deployment. Sets the updates the version numbers, sets a tag in git
#!/bin/sh
# AdHocDeployment.sh
# Newsgroup
#
# Created by Jim Kubicek on 4/1/11.
# Copyright 2011 jimkubicek.com. All rights reserved.
# Update version number
agvtool next-version -all
@jkubicek
jkubicek / Numbers Current Time.scpt
Created April 8, 2011 23:22
Paste the current time into the currently selected Numbers.app cell
tell application "Numbers"
set current_cell to cell 0 of selection range of table 0 of sheet 0 of document 0
set value of current_cell to (current date) as string
end tell