Skip to content

Instantly share code, notes, and snippets.

View robotsquidward's full-sized avatar
☺️
alive and happy

A.J. Kueterman robotsquidward

☺️
alive and happy
View GitHub Profile
/**
* Use the number of seconds/10 since Jan 2020 as the versionCode.
* This lets us upload a new build at most every 10 seconds for the
* next 680 years. https://stackoverflow.com/a/38643838/1799007
*/
def generatedVersionCode = (int)(((new Date().getTime()/1000) - 1580319970) / 10)
**/
@robotsquidward
robotsquidward / why-enterprise-software-is-bad.md
Last active October 11, 2019 15:04
A great thread from Arvind Narayanan about the pitfalls of enterprise software. Reproduced here for posterity.

Arvind Narayanan on Enterprise Software (Twitter Thread)

My university just announced that it’s dumping Blackboard, and there was much rejoicing. Why is Blackboard universally reviled? There’s a standard story of why "enterprise software" sucks. If you’ll bear with me, I think this is best appreciated by talking about… baby clothes!

There are two types of baby outfits. The first is targeted at people buying gifts. It's irresistible on the rack. It has no fewer than 18 buttons. At least 3 people are needed to get a screaming baby into it. It's worn once, so you can send a photo to the gifter, then discarded.

Other baby outfits are meant for parents. They’re marked "Easy On, Easy Off" or some such, and they really mean it. Zippers aren't easy enough so they fasten using MAGNETS. A busy parent (i.e. a parent) can change an outfit in 5 seconds, one handed, before rushing to work.

The point is, some produc

@robotsquidward
robotsquidward / clearness-dark.css
Created July 26, 2019 16:58
Clearness Dark theme for Markdown
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote {
margin: 0;
padding: 0;
@robotsquidward
robotsquidward / clearness.css
Created July 26, 2019 16:58
Clearness CSS theme for Markdown
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote {
margin: 0;
padding: 0;
@robotsquidward
robotsquidward / ml-resources.md
Last active May 23, 2019 20:39
Machine Learning Resources
@robotsquidward
robotsquidward / sleep-trick.md
Created September 4, 2018 12:36
A secret military technique for falling asleep in 2 minutes.
  1. Relax the muscles in your face, including tongue, jaw and the muscles around the eyes
  2. Drop your shoulders as far down as they’ll go, followed by your upper and lower arm, one side at a time
  3. Breathe out, relaxing your chest followed by your legs, starting from the thighs and working down
  4. You should then spend 10 seconds trying to clear your mind before thinking about one of the three following images:
    • You’re lying in a canoe on a calm lake with nothing but a clear blue sky above you
    • You’re lying in a black velvet hammock in a pitch-black room
  • You say “don’t think, don’t think, don’t think” to yourself over and over for about 10 seconds.
@robotsquidward
robotsquidward / auth_token.md
Last active August 23, 2018 16:34
Get GitHub auth_token

Pass the auth_token in to make the request to GitHub.

func getAuthToken(code: URLQueryItem?) {
    // make network call to get actual token
    let requestManager = RequestManager()

    let session = URLSession.shared
    session.dataTask(with: requestManager.getAuthRequest(code: code),
                     completionHandler: { ( data: Data?, response: URLResponse?, error: Error?) -> Void in