๐ฏ
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.18; | |
| // Import the MintableToken contract you just wrote. | |
| import "./MintableToken.sol"; | |
| /** Create contract that generates your very own custom ERC20 token with minting capabilities. | |
| * You'll be "selling" the tokens this contract generates to your classmates using your crowdsale contract. | |
| * Make sure to inherit functionality from the MintableToken contract. | |
| * Rename the contract file to the name of your custom token (i.e. EricToken.sol or BuidlDApps.sol or RocketCoin.sol) | |
| */ |
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.18; | |
| // Import OpenZeppelin's SafeMath contract to prevent overflow/underflow security issues | |
| // import "./SafeMath.sol"; | |
| // Import the custom token contract you just wrote. | |
| import "./HachToken.sol"; | |
| /** This is an assignment to create a smart contract that allows you to run your own token crowdsale. | |
| * Your contract will mint your custom token every time a purchase is made by your or your classmates. | |
| * We've provided you with the pseudocode and some hints to guide you in the right direction. |
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.18; | |
| // Import OpenZeppelin's SafeMath contract to prevent overflow/underflow security issues | |
| // import "./SafeMath.sol"; | |
| // Import the custom token contract you just wrote. | |
| import "./HachToken.sol"; | |
| // Set up your contract. | |
| contract HachTokenLoan { | |
| // Attach SafeMath library functions to the uint256 type. |
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
| contract Ballot { | |
| struct Voter { | |
| uint weight; | |
| bool voted; | |
| uint8 vote; | |
| address delegate; | |
| } | |
| struct Proposal { | |
| uint voteCount; |
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
| contract Ballot { | |
| struct Voter { | |
| uint weight; | |
| bool voted; | |
| uint8 vote; | |
| address delegate; | |
| } | |
| struct Proposal { | |
| uint voteCount; |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Sat Jan 14 11:21:47 2017 | |
| @author: Yunho | |
| """ | |
| class Monster: | |
| def __init__(self, name, level, element): | |
| self.name = name |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Sat Jan 14 11:21:47 2017 | |
| @author: Yunho | |
| """ | |
| class Monster: | |
| def __init__(self, name, level, element): | |
| self.name = name |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Sat Jan 07 12:54:55 2017 | |
| @author: Yunho | |
| """ | |
| ab = {'ํ๊ธธ๋':['hgdong1111@gmail.com', '010-1234-5678', '์กฐ์ ๊ฐ๊ฒฝ์ ์ผ๋๋ฉด 11']} | |
| print ab |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Sat Jan 07 12:00:41 2017 | |
| @author: Yunho | |
| """ | |
| def plus(a,b): | |
| print a+b | |
| return a+b |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Fri Dec 30 06:08:45 2016 | |
| @author: Yunho | |
| """ | |
| def factorial(a): | |
| if a == 1: | |
| print "ํฌ๊ธฐ๊ฐ 1์ธ ์ธํ์ด ๋์ต๋๋ค." |