国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| //SPDX-License-Identifier: Unlicense | |
| pragma solidity ^0.8.0; | |
| import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
| import "@openzeppelin/contracts/utils/Counters.sol"; | |
| contract Versioned is ERC721URIStorage { | |
| using Counters for Counters.Counter; | |
| using Strings for uint256; |
| pragma solidity 0.5.3; | |
| /* | |
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, | |
| INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
| IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | |
| DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | |
| ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| pragma solidity ^0.4.24; | |
| // ---------------------------------------------------------------------------- | |
| // Sample token contract | |
| // | |
| // Symbol : LCST | |
| // Name : LCS Token | |
| // Total supply : 100000 | |
| // Decimals : 2 | |
| // Owner Account : 0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| pragma solidity ^0.4.19; | |
| contract ERC721 { | |
| string constant private tokenName = "My ERC721 Token"; | |
| string constant private tokenSymbol = "MET"; | |
| uint256 constant private totalTokens = 1000000; | |
| mapping(address => uint) private balances; | |
| mapping(uint256 => address) private tokenOwners; | |
| mapping(uint256 => bool) private tokenExists; | |
| mapping(address => mapping (address => uint256)) private allowed; | |
| mapping(address => mapping(uint256 => uint256)) private ownerTokens; |
| 1) Generate a private key and certificate signing request: | |
| openssl genrsa -out ios_distribution.key 2048 | |
| openssl req -new -key ios_distribution.key -out ios_distribution.csr -subj '/[email protected], CN=Example, C=US' | |
| 2) Upload CSR to apple at: https://developer.apple.com/account/ios/certificate/create | |
| - choose Production -> App Store and Ad Hoc | |
| 3) Download the resulting ios_distribution.cer, and convert it to .pem format: |
| import { IonicApp, App, MenuController } from 'ionic-angular'; | |
| @Component ({...}) | |
| export class MyWebApp { | |
| constructor (private _app: App, private _ionicApp: IonicApp, private _menu: MenuController) { | |
| platform.ready().then(() => { | |
| // Do your thing... |
| import { Directive, ElementRef, Input, OnDestroy, OnInit } from '@angular/core'; | |
| import { Keyboard } from '@ionic-native/keyboard'; | |
| import { Content, Platform } from 'ionic-angular'; | |
| import { Subscription } from 'rxjs/Subscription'; | |
| /** | |
| * @name KeyboardAttachDirective | |
| * @source https://gist.github.com/Manduro/bc121fd39f21558df2a952b39e907754 | |
| * @description |
| NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services | |
| Download the following ZIPs: | |
| ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
| Download the correct GApps for your Android version: | |
| Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip) | |
| Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip) | |
| Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) |