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
[ | |
{ | |
"country": "New Zealand", | |
"iso3": "NZL", | |
"region": "AP", | |
"year": 2020, | |
"score": 88, | |
"rank": 1, | |
"sources": 8, | |
"standardError": "1.48" |
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 fetch = require('@zeit/fetch-cached-dns')(require('node-fetch')); | |
const {RateLimit} = require(`async-sema`); | |
const lim = new RateLimit(50); | |
module.exports = function getPost(SEGMENT_API_SECRET, s) { | |
return async function post(events) { | |
await lim(); | |
const res = await fetch(`https://api.segment.io/v1/batch`, { | |
method: 'post', | |
body: JSON.stringify({batch: events}), |
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
async function sendPayment(franchisors: [string], newFranchisor: string, artist: string, bootlegger: string, price: number) { | |
franchisors.push(bootlegger) | |
franchisors.push(artist) | |
const dividedPrice = price/franchisors.length | |
for (let i = 0; i < franchisors.length; i++) { | |
const franchisor = franchisors[i] | |
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
license: mit |
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
// Generating ID's from seed for re-use purposes | |
const myIdentity = getSeededSimpleIdentity('me') | |
const myAccount = myIdentity.account | |
const toIdentity = getSeededSimpleIdentity('friend') | |
const toAccount = toIdentity.account | |
// TBD: Store RRI | |
let token; | |
// Define sample coin |
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 my Blockstack ID is secured with the address 1DjaRPgcAkgTRA5AFDfBAihitSgacUHQaf https://explorer.blockstack.org/address/1DjaRPgcAkgTRA5AFDfBAihitSgacUHQaf |
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
//@version=3 | |
study(title="Support Resistance Fibonacci Levels",shorttitle="SupResFib",overlay=true) | |
//Created by UCSgears | |
//Plots Standard deviation on pricechart based on Historical Volatility. | |
//This Code will be revised when Implied Volatility is available in trading view. | |
// strategy(title="UCS_Standard Deviation-Historical Volatility_V2", shorttitle="UCS_StdDev(HV)", overlay = true, pyramiding=1, initial_capital=100.00, commission_type=strategy.commission.percent, commission_value=1) |
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 { AppRegistry, Text } from 'react-native' | |
import { createStore } from 'redux' | |
// Define action types | |
const types = { | |
INCREMENT: 'INCREMENT', | |
} | |
// Define a reducer | |
const reducer = (state, action) => { |
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 fs = require('fs') | |
const port = process.env.PORT || 5000 | |
const express = require('express') | |
const app = express() | |
const http = require('http') | |
const bodyParser = require('body-parser') | |
const server = http.createServer(app) | |
const _ = require('lodash') |
NewerOlder