Skip to content

Instantly share code, notes, and snippets.

View kokosro's full-sized avatar

Kokos kokosro

View GitHub Profile
(require 'package)
(add-to-list 'package-archives
'("melpa-stable" . "http://stable.melpa.org/packages/") t)
(package-initialize)
(defvar my-packages '(better-defaults
projectile
clojure-mode
cider
paredit))
var mnemonic = "puzzle destroy lawsuit area quote field wreck loop stone develop exit glow";
const bip39 = require("bip39");
const ed25519 = require('ed25519-hd-key');
const getPublicKey = ed25519.getPublicKey;
const derivePath = ed25519.derivePath;
const crypto = require("crypto");
const SLIP0044_lisk_code = 134;
const lisk = require("lisk-elements");
const nacl = require("tweetnacl");
function getRowLength(worldLength){
return Math.sqrt(worldLength);
}
function validateWorldLength(length){
var rowLength = getRowLength(length);
return 0 == (rowLength - Math.floor(rowLength));
}
function last(a){
pragma solidity ^0.4.11;
contract EthTermDeposits{
/*
deployed at 0x8b2c66d91F5751B905fa801668C9B61AE3975282
*/
mapping(address => uint) public deposits;
mapping(address => uint) public depositEndTime;
@kokosro
kokosro / limba.clj
Last active January 13, 2018 14:41
(ns limba
(:gen-lass))
(defn despica
"despica siru conform mijlocului"
[sir mijloc]
(let [l (count mijloc)]
(loop [s sir
stanga (transient [])]
(let [lf (take l s)]
(if (= lf mijloc)
(defproject website "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[http-kit "2.1.19"]
[ring "1.5.0"]
[compojure "1.4.0"]
[javax.servlet/servlet-api "2.5"]