Skip to content

Instantly share code, notes, and snippets.

View askucher's full-sized avatar
💭
I may be slow to respond.

Andrey askucher

💭
I may be slow to respond.
  • Kiev
View GitHub Profile
export type = 'coin';
export token = "gbx";
export image = "https://res.cloudinary.com/nixar-work/image/upload/v1548537659/gobyte.png"
export usd-info = "url(https://min-api.cryptocompare.com/data/pricemulti?fsyms=GBX&tsyms=USD).GBX.USD"
export mainnet = {
decimals: 8,
txFee: '0.0005',
txFeeOptions: {
auto: '0.0005',
cheap: '0.00000226',
html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:0.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace, monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-
@askucher
askucher / query.js
Last active January 9, 2019 14:58
Jobeus Site counter
$.post({
url: 'https://tokensale.sparklemobile.io/api/panel',
data: '{"sessionId": "590f5eed-bc0b-dc31-4e97-f9ddc4e59c9e"}',
contentType: "application/json",
dataType: "json",
success: function(data){
return console.log(data.campaign);
}
});
@font-face{font-family:Work Sans;font-style:normal;font-weight:300;src:local("Work Sans Light"),local("WorkSans-Light"),url(https://fonts.gstatic.com/s/worksans/v2/FD_Udbezj8EHXbdsqLUplxampu5_7CjHW5spxoeN3Vs.woff2) format("woff2")}@font-face{font-family:Work Sans;font-style:normal;font-weight:400;src:local("Work Sans"),local("WorkSans-Regular"),url(https://fonts.gstatic.com/s/worksans/v2/ElUAY9q6T0Ayx4zWzW63VJBw1xU1rKptJj_0jans920.woff2) format("woff2")}@font-face{font-family:Work Sans;font-style:normal;font-weight:500;src:local("Work Sans Medium"),local("WorkSans-Medium"),url(https://fonts.gstatic.com/s/worksans/v2/Nbre-U_bp6Xktt8cpgwaJBampu5_7CjHW5spxoeN3Vs.woff2) format("woff2")}@font-face{font-family:Work Sans;font-style:normal;font-weight:600;src:local("Work Sans SemiBold"),local("WorkSans-SemiBold"),url(https://fonts.gstatic.com/s/worksans/v2/z9rX03Xuz9ZNHTMg1_ghGRampu5_7CjHW5spxoeN3Vs.woff2) format("woff2")}@font-face{font-family:Work Sans;font-style:normal;font-weight:700;src:local("Work Sans Bold"),l
@askucher
askucher / sol.ls
Last active November 24, 2018 02:05
calc =(a, b) --> (a^2 + b^2) / (a * b + 1)
l = (str)->
| str.length >= 30 => str
| _ => l(str + " ")
get-index = (a)->
m = 100000
arr = [1 to m]
solutions =
arr |> map calc a
// I wrote the bonus logic on javascript for better understanding
// Once we confirm this logic I will rewrite it on solidity
//var e18 = Math.pow(10, 18); - I commented it because javascript does not work noramlly with big numbers
var e18 = 1;
//Exchange function. Contributor Send WEI and obtain Tokens
function exchangeRate(usdToEth, contributorSendWei, totalTokenSold) {
pragma solidity ^0.4.21;
contract Ownable {
address public owner;
function Ownable() public {
owner = msg.sender;
}
@askucher
askucher / Ethnamed.sol
Last active May 22, 2018 10:39
Ethnamed Protocol
pragma solidity ^0.4.21;
contract Ethnamed {
struct Name {
string record;
address owner;
uint256 expires;
}
pragma solidity ^0.4.21;
contract Ownable {
address public owner;
function Ownable() public {
owner = msg.sender;
}
---
name: Token0x
description: ERC20 Tokenization platform
ssr: false
port: 8080
links:
community: https://t.me/token0x
pressKit: https://drive.google.com/file/d/1pIhI3XVRpGl7EqYWySSn1ji6MiaasKIr/view?usp=sharing
whitepaper: https://t.me/token0x_whitepaper
api: https://github.com/token0xio/api