This file contains 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
export default class Buffer extends Uint8Array { | |
/** | |
* @param {number} length | |
*/ | |
constructor(length) { | |
super(length); | |
this._cursor = 0; | |
} | |
/** |
This file contains 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
node_modules |
This file contains 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
const Nimiq = require('@nimiq/core'); | |
Nimiq.load().then(async function() { | |
// Configure for Testnet. For Mainnet, use main(). | |
Nimiq.GenesisConfig.test(); | |
// Instantiate a config builder. | |
const configBuilder = Nimiq.Client.Configuration.builder(); | |
// Require a mempool |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Nimiq Key Derivation</title> | |
<script src="https://rawgit.com/emn178/js-sha512/master/build/sha512.min.js"></script> | |
<script src="https://cdn.nimiq.com/web-offline.js"></script> | |
<script> |
This file contains 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
<html> | |
<head> | |
<script src="setImmediate.js"></script> | |
<script> | |
new Worker('webworker.js'); | |
function work() { | |
for(i = 0; i < 20000; i++) { | |
Math.sqrt(1239081730591); | |
} |
This file contains 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
local TaskManager = require "TaskManager" | |
local missionutil = require "missionutil" | |
local function makeIntroTask(labelParams, doneFn) | |
local info = { | |
name = _("Überblick"), | |
paragraphs = { | |
{ text = _("Wir schreiben das Jahr 1987 und Margaret Thatcher ist soeben das dritte Mal in Folge zur Premierministerin Grossbritanniens gewählt worden. Nun endlich kann ein Projekt in Angriff genommen werden, das schon seit über zweihundert Jahren geplant wird: Eine Landverbindung, die Reisende trockenen Fusses von Frankreich nach England bringt – ein Tunnel unter dem Ärmelkanal!\n\n\z | |
Wir wurden auserwählt, dieses Meisterwerk der Technik zu bauen. Zeigen wir unser Können!") |
This file contains 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
<?php | |
# Cron job command for Laravel 4.2 | |
# Inspired by Laravel 5's new upcoming scheduler (https://laravel-news.com/2014/11/laravel-5-scheduler) | |
# | |
# Author: Soren Schwert (GitHub: sisou) | |
# | |
# Requirements: | |
# ============= | |
# PHP 5.4 |