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 { Logger } from 'aws-amplify'; | |
const logger = new Logger('fetchItemsNextToken', 'VERBOSE'); | |
/** | |
* @desc Recursively fetch all items in a list query using nextToken | |
* @param {Object} client An AppSyncClient instantiation | |
* @returns {Object} { items, key } Items are results, | |
* key is the name of the query called. | |
*/ |
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
diff --git a/old.sol b/new.sol | |
index 0184107..1419bcd 100644 | |
--- a/old.sol | |
+++ b/new.sol | |
@@ -1,16 +1,35 @@ | |
pragma solidity ^0.4.18; | |
- | |
+contract KittyCoreInterface { | |
+ function cooAddress() public returns(address); |
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
// Copied from: https://ethfiddle.com/09YbyJRfiI | |
// CryptoKitties Source code | |
// Copied from: https://etherscan.io/address/0x06012c8cf97bead5deae237070f9587f8e7a266d#code | |
pragma solidity ^0.4.11; | |
/** | |
* @title Ownable | |
* @dev The Ownable contract has an owner address, and provides basic authorization control |
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
[ | |
{ | |
"action": { | |
"type": "block" | |
}, | |
"trigger": { | |
"url-filter": ".*", | |
"resource-type": ["script"], | |
"load-type": ["third-party"], | |
"if-domain": ["imore.com"] |
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
==== SNIP ==== | |
class DistanceSerializer(serializers.Serializer): | |
km = serializers.FloatField() | |
m = serializers.FloatField() | |
mi = serializers.FloatField() | |
ft = serializers.FloatField() | |
class SearchResultSerializer(serializers.Serializer): |
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
require 'sqlite3' | |
sdb = SQLite3::Database.new('net-a-porter.sqlite3') | |
ddb = SQLite3::Database.new('net-a-porter-backup.sqlite3') | |
b = SQLite3::Backup.new(ddb, 'main', sdb, 'main') | |
begin | |
b.step(1) | |
end while b.remaining > 0 |