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
const data: Record<string, Set<string>> = { | |
MUM: new Set(['CHEN']), | |
BLR: new Set(['JAI']), | |
DEL: new Set(['BLR', 'AGRA']), | |
JAI: new Set(['MUM']), | |
AGRA: new Set(['DEL']) | |
}; | |
function findStart(data: Record<string, Set<string>>) { | |
const source: Record<string, number> = {}; |
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
pragma solidity ^0.8.0; | |
contract DAOLaunchpad { | |
// the name of the launchpad | |
string public name; | |
// the address of the owner of the launchpad | |
address public owner; | |
// the mapping of members of the launchpad |
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
pragma solidity ^0.5.0; | |
contract DAOLaunchpad { | |
// the name of the launchpad | |
string public name; | |
// the address of the owner of the launchpad | |
address public owner; | |
// the mapping to track which addresses are members of the launchpad |
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
pragma solidity ^0.8.0; | |
contract LaunchpadDAO { | |
// The address of the owner of this contract | |
address public owner; | |
// The list of projects currently managed by this DAO | |
Project[] public projects; | |
// The struct representing a project |
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
pragma solidity ^0.5.0; | |
// ERC-721 token interface | |
interface IERC721 { | |
function totalSupply() external view returns (uint256); | |
function balanceOf(address _owner) external view returns (uint256); | |
function ownerOf(uint256 _tokenId) external view returns (address); | |
function safeTransferFrom(address _from, address _to, uint256 _tokenId) external payable; | |
function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes memory _data) external payable; | |
function approve(address _approved, uint256 _tokenId) external payable; |
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
2017-05-11 16:00:00 1832.97 USD -0.06% 619.75 + 0.0447 null 1.91% 0.031060 BTC 2897.41 USD 195.43% +61.48% | |
{ days: 90, | |
profit_stop_enable_pct: 10, | |
profit_stop_pct: 1, | |
sell_rate: -0.006, | |
trend_ema: 36, | |
period: '1h', | |
strategy: 'trend_ema_rate', | |
sell_stop_pct: 4, | |
buy_stop_pct: 0, |
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
function memorySizeOf(obj) { | |
var bytes = 0; | |
function sizeOf(obj) { | |
if(obj !== null && obj !== undefined) { | |
switch(typeof obj) { | |
case 'number': | |
bytes += 8; | |
break; | |
case 'string': |
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
/* | |
Copyright 2004-present Facebook. All Rights Reserved. | |
A node script to help set up FBSDK frameworks for use with https://github.com/facebook/react-native-fbsdk | |
after you have already run `rnpm install react-native-fbsdk`. | |
Note that you need to create a Facebook App in https://developers.facebook.com/ | |
and get the Facebook APP ID and Facebook APP Name in order to set up the Info.plist. | |
Usage: |