- git clone [URL]
pragma solidity ^0.4.21; | |
contract MyContract { | |
event Log(address addr); | |
constructor() public { | |
emit Log(this); | |
} | |
function add(uint256 a, uint256 b) public pure returns (uint256) { | |
return a + b; | |
} | |
} |
import {Dimensions, PixelRatio} from 'react-native'; const widthPercentageToDP = widthPercent => { const screenWidth = Dimensions.get('window').width; // Convert string input to decimal number const elemWidth = parseFloat(widthPercent); return PixelRatio.roundToNearestPixel(screenWidth * elemWidth / 100); }; const heightPercentageToDP = heightPercent => { const screenHeight = Dimensions.get('window').height; // Convert string input to decimal number const elemHeight = parseFloat(heightPercent); return PixelRatio.roundToNearestPixel(screenHeight * elemHeight / 100); }; export { widthPercentageToDP, heightPercentageToDP };
Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, Mac OSX, and Windows.
This module will install visual studio code
essential extensions and settings for react-native
.
echo 256 | sudo tee -a /proc/sys/fs/inotify/max_user_instances | |
echo 32768 | sudo tee -a /proc/sys/fs/inotify/max_queued_events | |
echo 65536 | sudo tee -a /proc/sys/fs/inotify/max_user_watches | |
watchman shutdown-server |