Skip to content

Instantly share code, notes, and snippets.

def test_example(self):
s = Serializer(*data)
native = {}
self.assertEqual(s.to_native(), native)
So I'm gonna try and draw this out...
In the following diagram the || and the = are "strips" of mole skin. You create a window around your blister.
||====||
|| O ||
||====||
then you get a peice of second skin (it looks like boogers) and you place it inside the window on your blister.
class Foo(object):
def __init__(*args, **kwargs):
self.a = kwargs.get('a')
self.b = kwargs.get('b')
self.c = kwargs.get('c')
@property
def prop_1(self):
return self.a + self.b
my point is this.
there are say a couple thousand of elite marathoners.
there are probalby millions of people who have only run a 5k. Only WANT to run a 5k.
america is a country fill with obese people, and many of them trying to get into shape, and an easy goal is to get a 5k.
The whole start of this conversation was "why are treadmils defaulted to km?" my suggestion for an answer is most people who use a treadmill are only interested in doing 5k.
Last login: Fri Dec 7 09:26:27 on console
[Oh My Zsh] Would you like to check for updates?
Type Y to update oh-my-zsh: y
/bin/sh: /tools/upgrade.sh: No such file or directory
{
events: function(start, end, callback) {
$.ajax({
url: '{% url api_dispatch_list resource_name="coachactivitypost" api_name="v1" %}',
dataType: 'json',
type: 'GET',
data: {
start_time__gte: dateFormat(start, "yyyy-mm-dd"),
start_time__lt: dateFormat(end, "yyyy-mm-dd"),
status: 4,
I threw a wish in the well,
Don't ask me, I'll never tell
I looked at Hope as I ran,
And now it's in my way
I'd trade my soul for some air,
Oh shit is that a bear?
I wasn't looking for this,
But now it's in my way
$ which lessc
/usr/bin/lessc
ERT WERS THE BERST ERF TERMAHS, ERT WERS THE WERST ERF TERMAHS, ERT WERS THE ERGE ERF WERSDERM, ERT WERS THE ERGE ERF FERLERSHNERSS, ERT WERS THE ERPERCH ERF BERLERF, ERT WERS THE ERPERCH ERF ERNCRERDERLERTER, ERT WERS THE SERSERN ERF LERGHT, ERT WERS THE SERSERN ERF DERKNERSS, ERT WERS THE SPRERNG ERF HERPER, ERT WERS THE WERNTER ERF DERSPER, WE HERD ERVERERTHERNG BERFERE ERS, WE HERD NERTHERNG BERFERE ERS, WE WERE ERLL GERNG DERERCT TO HERVERN, WE WERE ERLL GERNG DERERCT THE ERTHER WE - ERN SHERT, THE PERERD WERS SO FER LERKE THE PRERSERNT PERERD, THERT SERME ERF ERTS NERSERST ERTHERERTERS ERNSERSTERD ERN ERTS BERNG RERCERVERD, FER GERD ER FER ERVERL, ERN THE SERPERLERTERVE DERGRE ERF CERMPERERSERN ERNLER.
@fxdgear
fxdgear / gist:3146540
Created July 19, 2012 20:26
Template Choices
Something along these lines:
class SiteTemplate
name - Business user "friendly" name
path - The path to the actual template
type - ('style', 'boutique')
class SiteTemplateContext
"""