I hereby claim:
- I am hardtack on github.
- I am hardtack (https://keybase.io/hardtack) on keybase.
- I have a public key ASCaFLZ-FdfnDWiw2auJLTmaXKLlJqeTXYualTQkg9xVGQo
To claim this, I am signing this object:
pragma solidity ^0.4.24; | |
/** | |
* @title ERC20Basic | |
* @dev Simpler version of ERC20 interface | |
* See https://github.com/ethereum/EIPs/issues/179 | |
*/ | |
contract ERC20Basic { | |
function totalSupply() public view returns (uint256); |
I hereby claim:
To claim this, I am signing this object:
최근 많은 프로그래밍 언어에서는 함수형 프로그래밍을 지원하기 위한 다양한 도구들을 제공하고 있습니다. 그중 Swift는 최신 트렌드가 많이 반영된 언어로써, 스몰토크형 객체지향 프로그래밍과 함수형 프로그래밍을 함께 지원함으로써 개발자들에게 함수형 프로그래밍에 대한 접근성을 증가시켰습니다.
그리고 Reactive 프로그래밍이 조명을 받기 시작하며, Reactive Extension과 같은 훌륭한 리액티브 프로그래밍을 위한 도구를 제공하고 있습니다. Reactive Extension은 Reactive 프로그래밍을 지향하고 있으며, 이를 기반으로 Functional Reactive 프로그래밍을 실현할 수 있습니다. 또한, 다양한 언어에 포팅이 되어있어 서로 다른 언어에서 일괄적인 패턴을 적용할 수 있습니다.
이 글에선 순수 함수적 상태 전이에 대해 간단하게 알아보고, 이를 기반으로 Functional Reactive 프로그래밍이 지향하는바와, 이러한 기법들의 장점을 극대화 할 수 있는 설계에 대한 기본 원칙, 그리고 그에 따른 설계의 예를 다룰 것 입니다.
{ | |
"presets": [ | |
"es2015", | |
"stage-0", | |
"react" | |
] | |
} |
import datetime | |
import decimal | |
import uuid | |
from marshmallow import Schema, fields | |
from formencode import validators as v | |
from formencode.api import Validator as FormencodeValidator, NoDefault | |
from formencode.schema import Schema as FormencodeSchema | |
# From https://github.com/fuhrysteve/marshmallow-jsonschema/blob/master/marshmallow_jsonschema/base.py |
def issublist(sublist, superlist): | |
if not sublist: | |
return True | |
idx = 0 | |
first = sublist[0] | |
cnt = len(sublist) | |
while True: | |
try: | |
idx = superlist[idx + 1:].index(first) + idx + 1 |
import os | |
import random | |
with open('people.txt') as f: | |
s = f.read().strip() | |
li = s.split('\n') | |
s = random.choice(li) |
""":mod:`crontab` --- Quick-and-dirty linux crontab-like event scheduler. | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
You can schedule tasks like this:: | |
import datetime | |
import crontab | |
def o_clock(): |
import code | |
from myapp import app | |
env = { | |
'app': app, | |
} | |
with app.app_context(): | |
code.interact(local=env) |
// | |
// NSDate+HTFormat.h | |
// | |
// Created by 최건우 on 13. 7. 1.. | |
// Copyright (c) 2013년 Hardtack. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
@interface NSDate (HTFormat) |