This file contains hidden or 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
| (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)) |
This file contains hidden or 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
| 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"); |
This file contains hidden or 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
| function getRowLength(worldLength){ | |
| return Math.sqrt(worldLength); | |
| } | |
| function validateWorldLength(length){ | |
| var rowLength = getRowLength(length); | |
| return 0 == (rowLength - Math.floor(rowLength)); | |
| } | |
| function last(a){ |
This file contains hidden or 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
| pragma solidity ^0.4.11; | |
| contract EthTermDeposits{ | |
| /* | |
| deployed at 0x8b2c66d91F5751B905fa801668C9B61AE3975282 | |
| */ | |
| mapping(address => uint) public deposits; | |
| mapping(address => uint) public depositEndTime; | |
This file contains hidden or 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
| (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) |
This file contains hidden or 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
| (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"] |