0x059c21e080e00802736c0b5518acd7184b4ebdb99f475fc7e3898677d7c6fa2a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verify Github on Galxe. gid:6QTfuzjMGLFPf48odykKgk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; | |
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; | |
import "@openzeppelin/contracts/utils/math/SafeMath.sol"; | |
import "./IApprovalTarget.sol"; | |
import "./EIP712Helper.sol"; | |
/// @notice ApprovalTarget is an immutable contract that accepts token approvals |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that "mhluongo.id" is my Blockstack ID. https://onename.com/mhluongo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +mhluongo is my Bitcoin username. You can send me #bitcoin here: https://onename.io/mhluongo |
I hereby claim:
- I am mhluongo on github.
- I am mhluongo (https://keybase.io/mhluongo) on keybase.
- I have a public key whose fingerprint is 4821 DDEA 0EBC 82D4 1FF6 4494 4E70 50F4 BBE7 9624
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tastypie.resources import ModelResource | |
from .models import Entry | |
class EntryResource(ModelResource): | |
class Meta: | |
queryset = Entry.objects.all() | |
resource_name = 'entry' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> from .models import Family, Person | |
>>> | |
>>> family_1 = Family.objects.create(status='married') | |
>>> family_2 = Family.objects.create() | |
>>> | |
>>> pete = Person.objects.create(name='Pete') | |
>>> mary = Person.objects.create(name='Mary') | |
>>> | |
>>> family_1.spouses.add(pete, mary) | |
>>> family_2.children.add(pete) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import neo4django | |
from neo4django.db import models | |
class Preceding(models.NodeModel): | |
precedes_events = models.Relationship('Event', rel_type=neo4django.Outgoing.PRECEDES_EVENT, | |
related_name='preceded_by') | |
precedes_conditions = models.Relationship('Condition', rel_type=neo4django.Outgoing.PRECEDES_CONDITION, | |
related_name='preceded_by') | |
class Event(Preceding): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
START n=node({startId}) | |
MATCH (n)-[?:DID]->(thing) | |
WITH thing, (thing.year? = null) AS year_is_null | |
WITH thing, STR(year_is_null) as null_year | |
ORDER BY null_year, thing.year? DESC | |
RETURN thing, thing.year? as year |
NewerOlder