Skip to content

Instantly share code, notes, and snippets.

View langford's full-sized avatar

Michael Langford langford

View GitHub Profile
@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
}
@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: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.
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 / 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
activate application "Safari"
repeat 100 times
tell application "System Events"
key code 28 using {shift down}
keystroke "a"
key code 34 using {shift down}
key code 124
delay (1)
end tell
end repeat
@langford
langford / gist:03b090a55ed3f5f8a5ab100d7118b632
Last active October 6, 2016 19:21
Dash/Kapeli Prediction

I think there are a few things that could have happened here.

First the obvious ones:

  1. Fraud that both knew was fraud occured. I don't think that's likely but people are people.

  2. Something Apple calls "fraud" happened that may have been something more arguable, and a strong personality ran head first into a brick wall. This happens a lot in the iOS/Mac AppStore process, as anyone who's tried to moderate this situation on behalf of anyone else can attest.

The less obvious one:

@langford
langford / Client Slack Questions
Last active November 12, 2016 19:10
Use of Slack in Client - Provider relationships
How do y'all handle the "join my slack" request from clients/prospective
clients?
I'm unexcited to do so before a contract is signed due to people's tendency to
hook automation into it, so I'd be in a dubious insurance predicament if
something went wrong
Afterwards that goes away, but there are arguments against using it then too,
that I don't really love, but makes sense
#From Oh My Oh My Oh Dinosaurs! by Sandra Boynton
# https://smile.amazon.com/Oh-My-Dinosaurs-Boynton-Board/dp/1563054418/
# For Sonic Pi: http://sonic-pi.net
use_bpm 145
play :c4
sleep 1.0
play :d4
sleep 1.0/2.0
play :f4
@langford
langford / gist:e0d3c1a6253f594ebda15ded3b3b65d8
Created March 27, 2017 05:18
Some self QA at a high level:
How do you self QA (in UIs)
By @mj_langford on twitter
I write down what success looks like from a user goals and timing level. After that, important tests, and what is likely to be wrong in a UI test environment. What I can do next tends to stick out as a series of testable bits that a machine can check, as well as a list of tools, and platforms, I can manually check the app on to verify he app functions this way.
Then looking at the stakes and dev budget, I can winnow down the possible testing and verification procedures to fit the time we have, or request more budget/less nitpicking if the quality/delivery speed tradeoff does not match with larger standard project goals and professional and reputation standards as well as ethics.
I also try to use input validation on APIs standardized checking tools and common mistake checking tools (linters, project analysis tools, etc) to check automated errors.