This file contains 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 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 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 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 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 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 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 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인 인형이 나옵니다." |
This file contains 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 Sun Jan 01 17:46:04 2017 | |
@author: Yunho | |
""" | |
def hanoi(num_disks, start_peg, temp_peg ,end_peg): | |
if num_disks == 1: | |
print '{} -> {}'.format(start_peg, end_peg) |
This file contains 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 Tue Jan 03 11:44:16 2017 | |
@author: Yunho | |
""" | |
# 엔진 자동차 | |
class NormalCar(object): | |
def __init__(self,input_name): | |
self.input_name = input_name |