창고 3/[Dev] My Codes3 블록체인 합의 알고리즘 컨셉 Golang 데모 : Proof of Safe Number package main import ( "fmt" "log" "math" "math/rand" "time" ) func main() { // Create a safe and safeNumber. mySafe := safe{} mySafeNumber := safePassword{} // Enter a user name, NFT token ID, and locktime to store. // Exmaple - owner: jonghyun, lock_time: 20210615, token_id: goBlock fmt.Println("유저 네임을 입력하세요: ") fmt.Scanln(&mySafeNumber.owner) fmt.Println("저장할 NFT 토큰 ID를 입력하세요: ") fmt.Scanln(&m.. 2021. 12. 31. 예약 스크린샷 자동 저장 파이썬 데모 import pyautogui import schedule import time # Set a classtime in a dictionary form. classTime = dict({ 1 : "09:05", 2 : "10:05", 3 : "11:05", 4 : "12:05", 5 : "14:05", 6 : "15:05", 7 : "16:05", 8 : "17:05", }) # Screenshot automator ver 1.0 # Create a screenShot function to take a screenshot. def screenShot(i): myFileName = str(i) + "교시" + ".png" myShot = pyautogui.screenshot() myShot.save(r'./.. 2021. 12. 29. 블록체인 DID 컨셉 SSO(싱글 사인온) 파이썬 데모 코드 # Import abstract class module to create an abstract class import abc # import wraps module to use wraps. from functools import wraps # Create an abstract class1 : Customer class Customer(metaclass = abc.ABCMeta): # Create an abstract method @abc.abstractmethod def SignUp(self): pass # Create an abstract class2 : CustomerInfo class CustomerInfo(metaclass = abc.ABCMeta): # Create an abstract meth.. 2021. 12. 28. 이전 1 다음