###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
import { | |
ConnectorNotFoundError, | |
UserRejectedRequestError, | |
RpcError, | |
ResourceUnavailableError, | |
SwitchChainNotSupportedError, | |
} from "wagmi"; | |
import { InjectedConnector } from "wagmi/connectors/injected"; | |
import { Chain, Ethereum } from "@wagmi/core"; |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.13; | |
contract Lottery { | |
event Receive(address indexed from, address to, uint amount); | |
address owner; | |
address public winner; | |
uint public totalBets; |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
import "@openzeppelin/contracts/utils/Counters.sol"; | |
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
import "hardhat/console.sol"; | |
contract NFTMarketplace is ERC721URIStorage { |
const firstString = '6' | |
console.log(firstString.padStart(4, '0')) | |
// result: "0006" | |
const creditCard = '09290201320409' | |
const getLast4Digits = (str) => str.slice(-4) | |
const maskedCreditCardNumber = getLast4Digits(creditCard).padStart(creditCard.length, '*') |
class LongMethod { | |
quantity: number = 10 | |
itemPrice: number = 34.0 | |
calculateTotal() { | |
const basePrice = this.quantity * this.itemPrice | |
if (basePrice > 500) { | |
return basePrice * 0.95 | |
} | |
return basePrice * 0.98 |
class LongMethod { | |
description: string = 'I need Refactoring' | |
printBanner(): void { | |
console.log('printBanner') | |
} | |
getOutMethod(): string { | |
return 'getOutMethod' | |
} |
RN < 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache | |
RN >= 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache | |
npm >= 5 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache | |
Windows - del %appdata%\Temp\react-native-* & cd android & gradlew clean & cd .. & del node_modules/ & npm cache clean --force & npm install & npm start -- --reset-cache |
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
{ | |
"id": 85636117, | |
"name": "react-redux-study", | |
"full_name": "jeftarmascarenhas/react-redux-study", | |
"owner": { | |
"login": "jeftarmascarenhas", | |
"id": 574887, | |
"avatar_url": "https://avatars2.githubusercontent.com/u/574887?v=4", | |
"gravatar_id": "", | |
"url": "https://api.github.com/users/jeftarmascarenhas", |
{ | |
"current_user_url": "https://api.github.com/user", | |
"current_user_authorizations_html_url": "https://github.com/settings/connections/applications{/client_id}", | |
"authorizations_url": "https://api.github.com/authorizations", | |
"code_search_url": "https://api.github.com/search/code?q={query}{&page,per_page,sort,order}", | |
"commit_search_url": "https://api.github.com/search/commits?q={query}{&page,per_page,sort,order}", | |
"emails_url": "https://api.github.com/user/emails", | |
"emojis_url": "https://api.github.com/emojis", | |
"events_url": "https://api.github.com/events", | |
"feeds_url": "https://api.github.com/feeds", |