在开发后端服务时, APP中已经写好了服务器地址, 如何在本地开发机器调试呢? 首先,需要设置本地机器的hosts。 最方便的工具是gas masks https://github.com/2ndalpha/gasmask
添加类似如下代码
127.0.0.1 dev.example.com
生成本地证书 copy default OpenSSL config
#!/usr/bin/env python2.7 | |
""" | |
YUICompress for BBEdit 10 | |
A quick script to install into your `~/Library/Application Support/BBEdit/Scripts` folder. | |
This runs yuicompressor (requires yuicompressor to be installed at `/usr/local/bin` - | |
try ``/usr/bin/easy_install yuicompressor``) | |
How it works | |
1.Copy this script to a new file named 'YUICompress' and install the plugin. |
########################################## | |
# | |
# c.f. http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4 | |
# | |
# Version 2.7 | |
# | |
# Latest Change: | |
# - Supports iPhone 5 / iPod Touch 5 (uses Apple's workaround to lipo bug) | |
# | |
# Purpose: |
adapter: | |
#ss代理, 在国内购买一台云服务器,安装好ShadowSocks代理服务器,iPhone版安装Wingy APP (SMART LIMITED的深蓝紫色免费版)。使用的本文的自定义配置YAML | |
- id: proxyAdapter | |
type: ss | |
#修改ss_host为服务器地址 | |
host: ss_host | |
#修改ss_port为端口号 | |
port: ss_port | |
#修改ss_password为密码 | |
password: ss_password |
adapter: | |
#ss代理, 在国内购买一台云服务器,安装好ShadowSocks代理服务器,iPhone版安装Wingy APP (SMART LIMITED的深蓝紫色免费版)。使用的本文的自定义配置YAML | |
- id: proxyAdapter | |
type: ss | |
#修改ss_host为服务器地址 | |
host: ss_host | |
#修改ss_port为端口号 | |
port: ss_port | |
#修改ss_password为密码 | |
password: ss_password |
{"sig":"53a00b60a3ce616e9608d6f9dbb05f50c20ffa5cbd95d35933e9fd514e683be5577af7a730ca1046220fd40e0f495036b32d64c25b2584399f9a739d96b76bc10","msghash":"5d0ce7f63dca01f074c1ae9c9e5626b9a245edcb5d6cd818694b182c1d919575"} |
在开发后端服务时, APP中已经写好了服务器地址, 如何在本地开发机器调试呢? 首先,需要设置本地机器的hosts。 最方便的工具是gas masks https://github.com/2ndalpha/gasmask
添加类似如下代码
127.0.0.1 dev.example.com
生成本地证书 copy default OpenSSL config
const tracer = require('tracer').colorConsole() | |
const console = tracer | |
const bitcoin = require('bsv') | |
const maxTried = 100000//Number.MAX_VALUE | |
class Block { | |
constructor(data, previousHash, difficulty) { | |
this.data = data.toString() | |
this.previousHash = previousHash | |
this.timestamp = Date.now().toString() |
// Original Source: | |
// https://stackoverflow.com/questions/1246198/show-iphone-cut-copy-paste-menu-on-uilabel | |
class CopyableLabel: UILabel { | |
override init(frame: CGRect) { | |
super.init(frame: frame) | |
self.sharedInit() | |
} | |
/** | |
*Submitted for verification at Etherscan.io on 2019-09-06 | |
*/ | |
pragma solidity 0.5.4; | |
library SafeMath { | |
uint256 constant internal MAX_UINT = 2 ** 256 - 1; // max uint256 |
/** | |
*Submitted for verification at Etherscan.io on 2019-09-06 | |
*/ | |
pragma solidity 0.5.4; | |
library SafeMath { | |
uint256 constant internal MAX_UINT = 2 ** 256 - 1; // max uint256 |