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 ipfsAPI = require("ipfs-http-client"); | |
const chalk = require("chalk"); | |
const { clearLine } = require("readline"); | |
const { globSource } = ipfsAPI; | |
const infura = { host: "ipfs.infura.io", port: "5001", protocol: "https" }; | |
// run your own ipfs daemon: https://docs.ipfs.io/how-to/command-line-quick-start/#install-ipfs | |
// const localhost = { host: "localhost", port: "5002", protocol: "http" }; |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; | |
contract CopyItem is ERC1155 { | |
constructor() public ERC1155("http://mars.muzamint.com:3000/{id}.json") { | |
// _mint(msg.sender, 0, 1000, "GOLD"); // owner, token id, amount, data | |
// to use id for cryptokitty id as a copy of cryptokitty erc721 token | |
} |
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
// contracts/GameItems.sol | |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.6.0; | |
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; | |
contract GameItems is ERC1155 { | |
uint256 public constant GOLD = 0; | |
uint256 public constant SILVER = 1; | |
uint256 public constant THORS_HAMMER = 2; |
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
/** | |
*Submitted for verification at Etherscan.io on 2021-01-27 | |
*/ | |
pragma solidity 0.6; | |
contract Demo { | |
event Echo(string message); | |
function echo(string calldata message) external { |
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> | |
<link rel="stylesheet" type="text/css" href="./style.less" /> | |
</head> | |
<body> | |
<img src="./images/header.png" /> | |
More content: <a href="./other.html">Link to another page</a>. | |
<script type="module" src="./index.ts"></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
'use strict'; | |
// Load modules | |
const Boom = require('boom'); | |
const Hoek = require('hoek'); | |
const Joi = require('joi'); | |
// Declare internals |
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 request = { method: 'POST', url: '/', headers: { authorization: internals.header('john', '123:45') } }; | |
server.inject(request, (res) => { | |
expect(res.result).to.equal('ok'); | |
done(); | |
}); |
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
I, [2017-08-14T03:09:32.987205 #26197] INFO -- : Started GET "/voordeel_locaties/golfpark-spandersbosch" for 119.77.228.244 at 2017-08-14 03:09:32 +0000 | |
I, [2017-08-14T03:09:32.988249 #26197] INFO -- : Processing by GreenLocationsController#show as HTML | |
I, [2017-08-14T03:09:32.988291 #26197] INFO -- : Parameters: {"id"=>"golfpark-spandersbosch"} | |
D, [2017-08-14T03:09:32.988398 #26197] DEBUG -- : Geokit is using the domain: codegreenit.com | |
D, [2017-08-14T03:09:32.990838 #26197] DEBUG -- : Location Load (0.6ms) SELECT `locations`.* FROM `locations` WHERE `locations`.`sane_name` = 'golfpark-spandersbosch' LIMIT 1 | |
D, [2017-08-14T03:09:32.991733 #26197] DEBUG -- : GreenLocation Load (0.3ms) SELECT `green_locations`.* FROM `green_locations` WHERE `green_locations`.`location_id` = 134 LIMIT 1 | |
D, [2017-08-14T03:09:32.992762 #26197] DEBUG -- : Attachment Load (0.2ms) SELECT `attachments`.* FROM `attachments` WHERE `attachments`.`attachable_id` = 134 AND `attachments`.`attachable_type` = 'Location' |
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
%{IPORHOST:s_ip} ?(%{IPORHOST:c_ip}|%{NOTSPACE:c_ip}) %{NOTSPACE:remote_logname} %{NOTSPACE:remote_user} \[%{MONTHDAY:day}/%{MONTH:month}/%{YEAR:year}:%{HOUR:hour}:%{MINUTE:minute}:%{SECOND:second} %{ISO8601_TIMEZONE:timezone}\] %{WORD:request} %{NOTSPACE:file_path} ?(%{NOTSPACE:http_version}| ) %{WORD:status} %{INT:bytes} %{NOTSPACE:referer} %{GREEDYDATA:user_agent} %{NOTSPACE:data} %{BASE16FLOAT:time_taken} |
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
https://download.elasticsearch.org/kibana/kibana/kibana-4.6.1-x86_64.rpm |
NewerOlder