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
pragma solidity ^0.4.16;
contract Ethnamed {
struct Name {
string record;
address owner;
uint256 expires;
}
@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:'GothamRounded-Medium';
src:url('https://assets.lydian.io/fonts/GothamRounded-Medium.eot?#iefix') format('embedded-opentype'), url('https://assets.lydian.io/fonts/GothamRounded-Medium.otf') format('opentype'), url('https://assets.lydian.io/fonts/GothamRounded-Medium.woff') format('woff'), url('https://assets.lydian.io/fonts/GothamRounded-Medium.ttf') format('truetype'), url('https://assets.lydian.io/fonts/GothamRounded-Medium.svg#GothamRounded-Medium') format('svg');
font-weight:400;
font-style:normal
}
@font-face {
font-family:'GothamRounded-Book';
src:url('https://assets.lydian.io/fonts/GothamRounded-Book.eot?#iefix') format('embedded-opentype'), url('https://assets.lydian.io/fonts/GothamRounded-Book.otf') format('opentype'), url('https://assets.lydian.io/fonts/GothamRounded-Book.woff') format('woff'), url('https://assets.lydian.io/fonts/GothamRounded-Book.ttf') format('truetype'), url('https://assets.lydian.io/fonts/GothamRounded-Book.svg#GothamRounded-Book') format('svg');
font-we
new-transaction = (transaction, cb)->
{ tx, email, amount-usd } = transaction
baser = "https://www.google-analytics.com"
based = "#baser/debug"
err, data <-! superagent.get "#based/collect?v=1&tid=UA-94112226-2&cid=#{email}&t=transaction&ti=#{tx}&tr=#{amount-usd}&cu=USD" .end
return cb err if not-valid data
err, data <-! superagent.get "#baser/collect?v=1&tid=UA-94112226-2&cid=#{email}&t=transaction&&ti=#{tx}&tr=#{amount-usd}&cu=USD" .end
return cb err if not-valid data
err, data <-! superagent.get "#based/collect?v=1&tid=UA-94112226-2&cid=#{email}&t=item&ti=#{tx}&in=snov&ip=#{amount-usd}&iq=1&ic=snov&cu=USD" .end
return cb err if not-valid data
//code.jquery.com/jquery-3.2.1.min.js
//ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.js
//__my_subdomain.flyber.net/cdn/flyber-angular.js
//cdn.rawgit.com/MikeMcl/bignumber.js/master/bignumber.min.js
//cdnjs.cloudflare.com/ajax/libs/ng-grid/2.0.11/ng-grid.min.js
//cdnjs.cloudflare.com/ajax/libs/ngStorage/0.3.6/ngStorage.min.js
//cdn.zingchart.com/zingchart.min.js
//cdn.zingchart.com/angular/zingchart-angularjs.js
//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.css
@askucher
askucher / hashcash.js
Created September 23, 2017 14:21
HashCash
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.hashcash = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
var asn1 = exports;
asn1.bignum = require('bn.js');
asn1.define = require('./asn1/api').define;
asn1.base = require('./asn1/base');
asn1.constants = require('./asn1/constant
angular
.module \app, [\flyber, \ngStorage, \pascalprecht.translate ]
.config ($translate-provider) ->
$translate-provider.translations \en ,
'NON_US_CITIZEN' : 'I hereby confirm that I am not a US citizen or resident, nor am I signing on behalf of a US citizen or resident.'
'PLEASE_CREATE_ETH' : 'You need to create ETHEREUM or WAVES address to obtain tokens. Please contribute from this address as well'
'WARNING_TEXT' : 'DO NOT send coins from exchanges like Coinbase, Poloniex, Kraken, or use Jaxx. In addition DO NOT make use of any Multi-Signature wallet as we will not support them and your transaction will not go through. By doing so your ETH may be permanently lost, and the token may not be created.'
$translate-provider.translations \ru ,
'or' : 'или'
'Crowdsale campaign' : 'Сбор средств на проект'
v = 1
type =
| typeof! v is \Number => v #-> Number
| typeof! v is \String => v #-> String
| _ => v #-> Object
require! {
\bitcoinjs-lib : bitcoin
\bip32-utils : bip32utils
\bip39
}
network = bitcoin.networks.testnet
// Generated by LiveScript 1.5.0
(function(){
var httpProxy, express, through, zlib, config, proxy, app, cache, getPath;
httpProxy = require('http-proxy');
express = require('express');
through = require('through');
zlib = require('zlib');
config = {
port: 80,
target: 'http://localhost:8083'