Create React App 4.0 is currently in alpha and supports using React 17 and the new JSX transform. To use it, follow these instructions.
Create a new app with npx create-react-app@next --scripts-version=@next --template=cra-template@next my-js-app
| // paste in console of any https site to run (e.g. this page) | |
| // sample arguments for registration | |
| // https://fidoalliance.org/specs/fido-u2f-v1.1-id-20160915/fido-u2f-raw-message-formats-v1.1-id-20160915.html#authentication-response-message-success | |
| var createCredentialDefaultArgs = { | |
| publicKey: { | |
| // Relying Party (a.k.a. - Service): | |
| rp: { | |
| name: "Acme" | |
| }, |
| import path from "path"; | |
| import fsExtra from "fs-extra"; | |
| import hre from "hardhat"; | |
| import { Artifact } from "hardhat/types"; | |
| const artifactsDir: string = path.join(__dirname, "..", "artifacts"); | |
| const contracts: string[] = [ | |
| "Admin", | |
| "AdminInterface", |
Create React App 4.0 is currently in alpha and supports using React 17 and the new JSX transform. To use it, follow these instructions.
Create a new app with npx create-react-app@next --scripts-version=@next --template=cra-template@next my-js-app
| pragma solidity ^0.5.0; | |
| /** | |
| * @title RBAC | |
| * @author Alberto Cuesta Canada | |
| * @notice Implements runtime configurable Role Based Access Control. | |
| */ | |
| contract RBAC { | |
| event RoleCreated(uint256 role); |
| const Web3 = require('web3'); | |
| const ZeroEx = require('0x.js').ZeroEx; | |
| const BigNumber = require('bignumber.js'); | |
| // Default provider for TestRPC | |
| const provider = new Web3.providers.HttpProvider('http://localhost:8545') | |
| // Instantiate 0x.js instance | |
| const zeroEx = new ZeroEx(provider); |
The best way to safely and securely use local domains pointing to 127.0.0.1 is to edit your local settings (/etc/hosts) and add your own settings. Keep in mind if you want to use subdomains, you need to enter all variations.
Example:
# Adding bottom of your current file /etc/hosts
################# MY LOCAL DOMAINS
127.0.0.1 local.com admin.local.com
127.0.0.1 domain1.com| kbpgp = require 'kbpgp' | |
| {exec, spawnSync} = require('child_process') | |
| ### | |
| gpg_gen_cv25519.txt is: | |
| %echo Generating cv25519 | |
| Key-Type: eddsa | |
| Key-Curve: Ed25519 | |
| Key-Usage: sign |
※この記事は"How it feels to learn JavaScript in 2016"著者であるJose Aguinaga氏による、以下のツイートの本文を確認して記事を翻訳しています。
https://twitter.com/jjperezaguinaga/status/784058480613322752?lang=ja
As long as you reference the original article, please feel free to translate/quote “How it feels to learn JavaScript in 2016” in any media.
また、このような素晴らしい記事を書いて頂いたJose Aguinaga氏に感謝致します。
ありがとうございました。
※追記2016_11_23
| #!/bin/bash | |
| # Download_Songs.sh | |
| # By Noah Betzen (Nezteb) | |
| # | |
| # Requires youtube-dl: https://rg3.github.io/youtube-dl/ | |
| # You can install youtube-dl via most package managers: | |
| # brew install youtube-dl | |
| # apt-get install youtube-dl | |
| # |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Simple Identicon Generator</title> | |
| <script src="script.js"></script> | |
| </head> | |
| <body> | |
| Type Your ID: <input id="id" /> | |
| <div> |