Skip to content

Instantly share code, notes, and snippets.

View aericson's full-sized avatar

André Ericson aericson

View GitHub Profile

Keybase proof

I hereby claim:

  • I am aericson on github.
  • I am aericson (https://keybase.io/aericson) on keybase.
  • I have a public key ASDnIIldJjB1rA5otQ76KlNOWAVZ4QnJ2_8_DRBFlyVpAwo

To claim this, I am signing this object:

@aericson
aericson / mixins.py
Created February 13, 2017 20:23
Tests with email sending speed boost.
from unittest import mock
class SendsEmailTestCaseMixin(object):
# getfqdn can be too slow, mock it for speed.
# See: https://code.djangoproject.com/ticket/24380
@classmethod
def setUpClass(cls):
cls.getfqdn_patcher = mock.patch(
'django.core.mail.utils.socket.getfqdn',
@aericson
aericson / docstrings.ipynb
Created February 5, 2015 17:36
Exemplo de uso de metaclass
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aericson
aericson / designer.html
Last active August 29, 2015 14:14
designer
<link rel="import" href="../topeka-elements/avatars.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@aericson
aericson / designer.html
Last active August 29, 2015 14:14
designer
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-quiz-view.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@aericson
aericson / designer.html
Created November 26, 2014 00:01
designer
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>