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
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-
@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;
}
@askucher
askucher / _setup.md
Last active August 15, 2019 21:46
Cloud9 ACE Editor LSX Highlighting

Cloud9 ACE Editor LSX Highlighting

Install

cd c9sdk

curl https://gist.githubusercontent.com/askucher/4ffe22d43cba7ef727ae8208c525228b/raw/79e27fa5423c06ba5ef0e2a635aa729223687473/livescript.js > ./plugins/node_modules/ace/lib/ace/mode/livescript.js
---
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
ru = {
"Login Form" : "Форма входа"
"Lost your password?" : "Забыли пароль?"
"Check here to confirm that you are not a U.S. citizen, resident or entity (a “U.S. Person”) nor are you obtaining KRPT Tokens or signing on behalf of a U.S. Person." : "Отметьте здесь, чтобы подтвердить, что вы не являетесь гражданином США, резидентом или юридическим лицом (« лицо США »), и вы не получаете токены PGL или не подписываете от имени человека США"
"Check here to confirm that you have read, understand and agree to the" : "Отметьте здесь, чтобы подтвердить, что вы прочитали, поняли и согласны с "
"Terms of Use" : "Условиями использования"
"and" : "и"
"Privacy Policy" : "Политикой конфиденциальности"
"New to site?" : "Что нового на сайте?"