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
/* | |
* Minimum requirement: NodeJS 8.0.0 | |
* Put `*/15 * * * * /path/to/wget https://ethresear.ch -O /tmp/ethresear.ch >/tmp/stdout.log 2>/tmp/stderr.log && /path/to/node /path/to/ethresearch-localizer.js` | |
*/ | |
const cheerio = require('cheerio') | |
const fs = require('fs') | |
const LOCAL_FILE = "/tmp/ethresear.ch" | |
const html = fs.readFileSync(LOCAL_FILE) | |
const $ = cheerio.load(html) |
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
defmodule MerkleTree.Node do | |
@moduledoc """ | |
This module implements a tree node abstraction. | |
""" | |
defstruct [:value, :children, :height] | |
@type t :: %__MODULE__{ | |
value: String.t, | |
children: [MerkleTree.Node.t], |
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
#!/bin/bash | |
# For | |
# - ubuntu18.04 | |
# - t2.medium | |
# - Security Rule: port 22,25,80,443 | |
# - EBS 16GB | |
# - Discourse v2.3.0.beta9 | |
# - Amazon SES | |
# - bash ./discourse-build.sh forum bitcoin.com AKKSISNHFDCVBPDEOJBN BCokAid4stoJaOKSqnRJXpwJKKSvuA7thhomFajjKAp/ |
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
#!/bin/bash | |
# Discussion, issues and change requests at: | |
# https://github.com/nodesource/distributions | |
# | |
# Script to install the NodeSource Node.js 13.x repo onto a | |
# Debian or Ubuntu system. | |
# | |
# Run as root or insert `sudo -E` before `bash`: | |
# |
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
const conseil = require('conseiljs'); | |
require('dotenv').config(); | |
(async _=>{ | |
const addr = await conseil.TezosMessageUtils.writeAddress(process.argv[process.argv.length - 1]) | |
console.log(`${process.argv[process.argv.length - 1]} to 0x${addr}`) | |
console.log("Put it to .env") | |
})() |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.24; | |
import {Schema} from "bundle/main/storage/Schema.sol"; | |
import {Storage} from "bundle/main/storage/Storage.sol"; | |
import {MCTest} from "@devkit/Flattened.sol"; // MCTestをインポート | |
contract Borrow { |
OlderNewer