Skip to content

Instantly share code, notes, and snippets.

View langford's full-sized avatar

Michael Langford langford

View GitHub Profile
@langford
langford / IANAL or an accountant, but choosing your business type:
Last active January 29, 2017 01:09
A business owner's take on business forms
I do apps for a living, and lots of the people I do apps for need to make companies. In addition to owning and operating a couple myself, I am often somewhat involved in the creation of others. There are many types of company you can make, and they each have different use cases and tax advantages and audit risks
Type one for small companies that do not expect to carry over losses very often, and do not need foreign ownership or venture capital:
LLC Filed federally as a C-corporation, promoted to a S-Corp shortly after founding for the purposes of taxes: This is what I have. You have to file taxes for it separately, but you largely do not pay tax directly from this for income taxes, but you don't have to do things like hold director meetings with yourself, or maintain minutes. You get the flexibility of a LLC operating agreement, and you can employ yourself easily as well. This form is also rarely audited, and the nature of the tax structure makes book keeping rather easy, taxes rather easy, and keeping your
Hi there Billy!
First off, there are hundreds if not thousands of other RPGs out there besides
D&D, especially a set of very modern ones (not the ones I mention below) from
the last 15 years or so that are laser focused on "getting the game to be
exactly what you want it to be", and ones that are focused on things other than
"a zero to hero narrative about people who go into places not inhabited by good
humans, and take their stuff". Let me know if you want more about those for a
particular experience.
@langford
langford / gist:7803283e9a232f5e85ef
Created June 11, 2015 05:32
Clojure Meetup on 6/9
Introduction to Pedestal --- They finally had a recruiter.
Rentpath is looking for a senior clojure and senior ruby
CareerBuilder is looking for a clojure person. They're moving a lot of stuff to clojure.
Stuart Hinson, asked about familiarity with Ring, works at RentPath
Aims to be simple.
@langford
langford / gist:b010bbad7c828a54c0f1
Created April 22, 2015 21:17
MACRO VERSION OF NEO NACHO'S ABOMINATION
#define LET(name,initializer) const typeof(initializer) (name) = (initializer)
#define VAR(name,initializer) typeof(initializer) (name) = (initializer)
void letsCry(void){
VAR(bojangles,@{}.mutableCopy);
bojangles = @{@"derp":@"yerp"};
NSLog(@"Bojangles is: %@",bojangles);
@langford
langford / gist:6dd2de2683d1684650e5
Last active August 29, 2015 14:17
linear cycle detection in a directed graph (pseudocode)
graph data struture:{
list-of-all-nodes
head
}
node data structure:{
data
childrenList
hasBeenSeen
}
import AddressBook
import UIKit
typealias CThingPtr = UnsafeMutablePointer <ABRecordRef>
func cthing_dispose(o:CThingPtr?)->(){
}
func cthing_create(cString:UnsafePointer<Int8>)->CThingPtr{
return nil
@langford
langford / gist:70c9c8c735eae310ef8d
Created February 5, 2015 17:48
Build production, passing "FORCE_PROD" environment variable (which I pass to the preprocessor in my build scheme)
#!/bin/sh
OUTPUTDIR="$HOME/Desktop/The_App"
APPNAME="The_App"
SCHEME="The_App"
SRCROOT=`pwd`
APP_WORKSPACE="$SRCROOT/The_App.xcworkspace"
ARCHIVE_PATH="$OUTPUTDIR/$APPNAME-production.xcarchive"
rm -f "$OUTPUTDIR/$APPNAME-production.ipa"
@langford
langford / gist:68b86eb3ee274f426f35
Created January 30, 2015 20:03
Doing IPA builds from the command line because you're tired of the lack of repeatability in Xcode Adhoc builds
#!/bin/sh
# Current as working as of 2014/09/22
# modified form of http://stackoverflow.com/questions/25056144/xcode-6-how-to-pick-signing-certificate-provisioning-profile-for-ad-hoc-distri
# Xcode 6
MYAPP="HELLOWORLD"
OUTPUTDIR="$HOME/Desktop/$MYAPP"
APPNAME="ANAppName"
SCHEME="ASchemeName"
@langford
langford / gist:8c2e3d4e40c423bf4cb2
Created December 13, 2014 02:06
Good Mac Software
https://itunes.apple.com/us/app/numbers/id409203825?mt=12 It's like excel but free and from apple
https://www.apple.com/mac/keynote/ arguably better than powerpoint in almost every way
https://itunes.apple.com/us/app/alfred/id405843582?mt=12 Alfred (Makes launching apps easy)
https://itunes.apple.com/us/app/transmit/id403388562?mt=12 Makes copying files to internet sites easy
https://itunes.apple.com/us/app/mail-notifr/id808154494?mt=12 Makes "mail to" web browser sites work with gmail
@langford
langford / pp-hickory.clj
Created November 22, 2014 17:11
Raw hickory file generated from the Class Warfare book
This file has been truncated, but you can view the full file.
{:type :document,
:content
[{:type :document-type,
:attrs
{:name "html",
:publicid "-//W3C//DTD XHTML 1.0 Transitional//EN",
:systemid
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"}}
{:type :element,
:attrs {:xmlns "http://www.w3.org/1999/xhtml"},