Skip to content

Instantly share code, notes, and snippets.

View MRHarrison's full-sized avatar

Matthew Harrison MRHarrison

  • Earth
View GitHub Profile
""" This is a quick fix to provide full dehydration by demand
on Django Tastypie.
In order to use it you can query for:
/api/v1/user/1/related_full=True
"""
class RelatedResource(ModelResource):

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@MRHarrison
MRHarrison / ERC20.sol
Last active September 10, 2020 15:34 — forked from giladHaimov/BasicERC20.sol
Basic ERC20 implementation
pragma solidity >=0.4.22 <0.6.0;
contract ERC20 {
// Balances
mapping(address => uint) tokenBalances;
// Allowances
mapping(address => mapping(address => uint)) tokenAllowances;
// The owner of this token
address public owner;