This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity 0.4.21; | |
| /** | |
| Nhancv token contract | |
| Contract address: https://ropsten.etherscan.io/address/0x9291b8194962bdaff76521358274900ae0d0f2ae#code | |
| Token address : https://ropsten.etherscan.io/token/0x9291b8194962bdaff76521358274900ae0d0f2ae | |
| Deployed at : 0x9291b8194962bdaff76521358274900ae0d0f2ae | |
| Symbol : NC | |
| Name : Nhan Cao Token |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity 0.4.21; | |
| contract Voting { | |
| // @nhancv: Define candidate | |
| struct Candidate { | |
| uint8 id; | |
| string name; | |
| uint8 point; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity 0.4.21; | |
| /** | |
| ICO CrowdSale token contract | |
| Abstract | |
| Start date : Tuesday, March 27, 2018 5:31:11 PM GMT+07:00 | |
| Bonus end date : Wednesday, March 27, 2019 5:31:11 PM GMT+07:00 | |
| End date : Thursday, March 26, 2020 5:31:11 PM GMT+07:00 | |
| Normal price : 100 NKEM Tokens per 1 ETH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:math'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/widgets.dart'; | |
| import 'package:flutter/animation.dart'; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(new MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:async'; | |
| import 'dart:ui' as ui; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/widgets.dart'; | |
| import 'package:flutter/animation.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/scheduler.dart' show timeDilation; | |
| class DemoPage extends StatefulWidget { | |
| @override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:math'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/widgets.dart'; | |
| import 'package:flutter/animation.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/scheduler.dart' show timeDilation; | |
| class DemoPage extends StatefulWidget { | |
| @override | |
| _DemoPageState createState() => new _DemoPageState(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:async'; | |
| class April { | |
| // Public by default, private by prefixing “_” | |
| int publicInt = 2; | |
| int _privateInt = 2; | |
| // Collection literals | |
| void collectionLiterals() { | |
| print([1, 2, 3, 4]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Offset getQuadraticBezier(List<Offset> offsetList, double t, | |
| {Canvas canvas, Paint paint}) { | |
| return getQuadraticBezier2( | |
| offsetList, t, 0, offsetList.length - 1, canvas, paint); | |
| } | |
| Offset getQuadraticBezier2(List<Offset> offsetList, double t, int i, int j, | |
| Canvas canvas, Paint paint) { | |
| if (i == j) return offsetList[i]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Make sure you grab the latest version | |
| curl -OL https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip | |
| # Unzip | |
| unzip protoc-3.2.0-linux-x86_64.zip -d protoc3 | |
| # Move protoc to /usr/local/bin/ | |
| sudo mv protoc3/bin/* /usr/local/bin/ | |
| # Move protoc3/include to /usr/local/include/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| brew install python@2 | |
| pip install --upgrade virtualenv | |
| # clonde labelimg source | |
| rm -rf /tmp/labelImgSetup | |
| mkdir /tmp/labelImgSetup | |
| cd /tmp/labelImgSetup | |
| curl https://codeload.github.com/tzutalin/labelImg/zip/master --output labelImg.zip |