Skip to content

Instantly share code, notes, and snippets.

View yunho0130's full-sized avatar
🎯
Focusing

Yunho Maeng yunho0130

🎯
Focusing
View GitHub Profile
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.
@yunho0130
yunho0130 / ballot.sol
Created June 6, 2018 06:41
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
contract Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate;
}
struct Proposal {
uint voteCount;
@yunho0130
yunho0130 / ballot.sol
Created June 5, 2018 12:53
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
contract Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate;
}
struct Proposal {
uint voteCount;
# -*- 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
# -*- 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
# -*- coding: utf-8 -*-
"""
Created on Sat Jan 07 12:54:55 2017
@author: Yunho
"""
ab = {'홍길동':['hgdong1111@gmail.com', '010-1234-5678', '조선 개경시 일동면 11']}
print ab
# -*- coding: utf-8 -*-
"""
Created on Sat Jan 07 12:00:41 2017
@author: Yunho
"""
def plus(a,b):
print a+b
return a+b
# -*- coding: utf-8 -*-
"""
Created on Fri Dec 30 06:08:45 2016
@author: Yunho
"""
def factorial(a):
if a == 1:
print "크기가 1인 인형이 나옵니다."
# -*- 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)
# -*- 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