Skip to content

Instantly share code, notes, and snippets.

View cube-drone's full-sized avatar

Cube Drone cube-drone

View GitHub Profile
# Hash Functions Taste Great with Anything
* Name : Curtis Lassam
* Twitter : [@classam](http://twitter.com/classam)
* Github : [classam](http://github.com/classam)
* Website A : [curtis.lassam.net](http://curtis.lassam.net)
* Website B : [cube-drone.com](http://cube-drone.com)
## Abstract
@cube-drone
cube-drone / gist:9903789
Created March 31, 2014 22:25
5 Usability Tips
5 Usability Tips for App Designers
----------------------------------
Hey, everyone. I'm a guest speaker, and I'm here to share some very simple
usability guidelines with you for application development.
Make clickable links obviously clickable.
Or touchable if you're designing for a phone or a tablet or something.
@cube-drone
cube-drone / gist:9906199
Created April 1, 2014 01:45
sushi order
Sushi Bar Ajisai
3xTuna
3xSalmon
California Roll
Tekka Maki
Negi Hama
Crispy Hot Tuna
Spicy Tuna
Ebi Battera
5 Crucial Usability Tips for App Designers and Developers
----------------------------------
Hey, everyone. I'm here to share some very simple
usability guidelines with you for application development.
By the end of this video, you should have a better understanding of how to
design a UI that is intuitive and easy for your users to make sense of.
Let's begin by examining one of the fundamental pieces of applications
CONTRACT_REVIEW_CHOICES = Choices(
('PEND', 'Pending'),
('PROM', 'Promoted'),
('DENY', 'Denied'),
('MEGADENY', 'Denied, and then made fun of, like, right to their face')
)
@cube-drone
cube-drone / gist:f47db61a8f1a634af463
Last active August 29, 2015 14:03
Django tips for Bill
  1. Because you're on a greenfield project, you have the option to use Python3. Seriously consider it - you lose access to a few old, less-maintained libraries, but you gain infinitely less Unicode woes, which was the big change from python to python3
  2. To parse DAT XML, you're going to want to look at lxml and BeautifulSoup. lxml provides the Proper Parser For XML, and BeautifulSoup sits on top of it and does things like "does its best to guess at how to deal with broken xml" and "provides a pretty, pythonic search interface".
  3. Django comes with so much User Auth out of the box. There's a pre-baked User model that you should use as your core 'user' model. There are pre-built views providing login, registration, and password-reset. Because there's a pre-cooked User model that the system provides for you, and it might not always have all of the fields that you need to attach to a user, a common pattern is to create a "UserPreferences" application, containing just the one UserPreference model, and views t
@cube-drone
cube-drone / gist:8d44b11d236c56d63506
Last active August 29, 2015 14:04
HR Questions for _gtz_
  • What exactly, would you say it is that HR does, here? I think, as far as I can understand from the Wikipedia article, it's:
    • Providing a fair, unbiased mediation process for employees experiencing conflict, particularly the kind of conflict that can end in costly lawsuits or negative media attention. (Sexual harassment, discrimination, accusations of nepotism...)
    • Preventive maintenance, so that (Sexual harassment, discrimination, nepotism...) is less likely to occur.
    • Recruitment, analysis of such. (How many people are applying here? Why so few techies? Is something scaring them off?)
    • Retention, analysis of such. (What's churn? Why are so many people leaving?)
    • Hiring, analysis of such. (More anti-sexual-harassment/discrimination/nepotism layers here)
    • If there's a union, Dealing With Union Bullshit (generally ignored in software)
    • If there's government regulation dealing with employment law, making sure those regulations are being followed. (generally ignored in software)
#!/bin/python3
# -*- coding: utf-8 -*-
"""
Intro
-----
![me](curtis.jpg)
Hi, I'm Curtis Lassam!
I'm awesome!
@cube-drone
cube-drone / gist:af66cbdc8d6eee3fb3a9
Created May 1, 2015 20:39
I collected all of my tweets containing the word "upcoming blackberry watch"

If you think THAT's impressive, wait'll you see the upcoming Blackberry watch. It weighs over 10lbs, 9 of which are semi-precious metals

The upcoming Blackberry Watch will have falcon wing doors.

The upcoming BlackBerry watch was designed as a luxury piece, which is why it contains over 6 ounces of precious, precious bauxite

The upcoming BlackBerry watch will be preloaded with a surprisingly good spoken-word William Shatner album

The upcoming BlackBerry watch can be used to auto-pay at over 500 Tim Hortons locations worldwide. (498 of which are in Canada)

Cube Drone: Walt, why in the world are we working for a Telecom?

Walt: When a lioness chases after a herd of antelopes, she doesn't chase the strong ones - she chases the slow, weak, old ones who are no longer useful to the pack.

Cube Drone: And we're the lionesses? Walt: What? No, I was watching Animal Planet on my iPhone.