git pull
git add .
git commit -m "clean push"
git push
//DECODE JSON WEB TOKEN (JWT) IN IOS (OBJECTIVE-C) | |
//http://popdevelop.com/2013/12/decode-json-web-token-jwt-in-ios-objective-c/ | |
NSString *jwt = @"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmb28iOiJiYXIifQ.bVhBeMrW5g33Vi4FLSLn7aqcmAiupmmw-AY17YxCYLI"; | |
NSArray *segments = [jwt componentsSeparatedByString:@"."]; | |
NSString *base64String = [segments objectAtIndex: 1]; | |
NSLog(@"%@", base64String); | |
// => "eyJmb28iOiJiYXIifQ" |
import UIKit | |
import CoreLocation | |
class ViewController: UIViewController, CLLocationManagerDelegate { | |
// ์ค๋ต | |
@IBOutlet var requestWeatherButton : UIButton! | |
override func viewDidAppear(animated: Bool) { |
class ParentViewController: UIViewController { | |
let button: UIButton() | |
... | |
func onTapButton() { | |
let popupVC = PopupViewController() | |
popupVC.onDoneBlock = { [weak self] in | |
self?.moveToNextView() | |
} | |
} | |
import Foundation | |
import UIKit | |
import Dotzu | |
import SnapKit | |
class APDynamicHeaderTableViewController : UIViewController { | |
var largeWideSize = CGSize(width: UIScreen.main.bounds.width , height: 285 ) | |
let headerView = APDynamicHeaderView () | |
import Foundation | |
func query(address: String) -> String { | |
let url = URL(string: address) | |
let semaphore = DispatchSemaphore(value: 0) | |
var result: String = "" | |
let task = URLSession.shared.dataTask(with: url!) {(data, response, error) in | |
result = String(data: data!, encoding: String.Encoding.utf8)! |
- ์๋ฌธ: http://www.nurkiewicz.com/2016/06/functor-and-monad-examples-in-plain-java.html
- ์์ฑ์: Tomasz Nurkiewicz
์ด ๊ธ์ ์ฐ๋ฆฌ๊ฐ ์ด ์ฑ , 'Reactive Programming with RxJava' ์ ๋ถ๋ก์ด์๋ค. Reactive programming๊ณผ ๊ด๋ จ์ด ๊น์ ์ฃผ์ ๊ธด ํ์ง๋ง ๋ชจ๋๋๋ฅผ ์๊ฐํ๋ค๋ ๊ฒ ์ฑ ๊ณผ ์ฉ ์ด์ธ๋ฆฌ์ง๋ ์์๋ค. ๊ทธ๋์ ๋๋ ๋ฐ๋ก ๋ธ๋ก๊ทธ์ ์ฌ๋ฆฌ๊ธฐ๋ก ํ๋ค. ํ๋ก๊ทธ๋๋ฐ์ ๋ค๋ฃจ๋ ๋ธ๋ก๊ทธ์์ *"๋ฐ์ ๋ง๊ณ ๋ฐ์ ํ๋ฆด ์ง ๋ชจ๋ฅด๋ ๋๋ง์ ๋ชจ๋๋ ์ค๋ช "*์ด๋ ๊ฒ์ด ์๋ก์ด *"Hello World"*๋ผ๋ ์ ์ ๋๋ ์ ์๋ค. ํ์ง๋ง ์ด ๊ธ์ ํํฐ(functor)์ ๋ชจ๋๋(monad)๋ฅผ ์๋ฐ ์๋ฃ ๊ตฌ์กฐ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ผ๋ ๊ฐ๋์์ ๋ฐ๋ผ๋ณด๊ณ ์์ผ๋ฉฐ, ์ด๋ ๊ณต์ ํ ์ ๋์ ๊ฐ์น๋ ์์๊ฑฐ๋ผ ์๊ฐํ๋ค.
Markdown์ ํ ์คํธ ๊ธฐ๋ฐ์ ๋งํฌ์ ์ธ์ด๋ก 2004๋ ์กด๊ทธ๋ฃจ๋ฒ์ ์ํด ๋ง๋ค์ด์ก์ผ๋ฉฐ ์ฝ๊ฒ ์ฐ๊ณ ์ฝ์ ์ ์์ผ๋ฉฐ HTML๋ก ๋ณํ์ด ๊ฐ๋ฅํ๋ค. ํน์๊ธฐํธ์ ๋ฌธ์๋ฅผ ์ด์ฉํ ๋งค์ฐ ๊ฐ๋จํ ๊ตฌ์กฐ์ ๋ฌธ๋ฒ์ ์ฌ์ฉํ์ฌ ์น์์๋ ๋ณด๋ค ๋น ๋ฅด๊ฒ ์ปจํ ์ธ ๋ฅผ ์์ฑํ๊ณ ๋ณด๋ค ์ง๊ด์ ์ผ๋ก ์ธ์ํ ์ ์๋ค. ๋งํฌ๋ค์ด์ด ์ต๊ทผ ๊ฐ๊ด๋ฐ๊ธฐ ์์ํ ์ด์ ๋ ๊นํ(https://github.com) ๋๋ถ์ด๋ค. ๊นํ์ ์ ์ฅ์Repository์ ๊ดํ ์ ๋ณด๋ฅผ ๊ธฐ๋กํ๋ README.md๋ ๊นํ์ ์ฌ์ฉํ๋ ์ฌ๋์ด๋ผ๋ฉด ๋๊ตฌ๋ ๊ฐ์ฅ ๋จผ์ ์ ํ๊ฒ ๋๋ ๋งํฌ๋ค์ด ๋ฌธ์์๋ค. ๋งํฌ๋ค์ด์ ํตํด์ ์ค์น๋ฐฉ๋ฒ, ์์ค์ฝ๋ ์ค๋ช , ์ด์ ๋ฑ์ ๊ฐ๋จํ๊ฒ ๊ธฐ๋กํ๊ณ ๊ฐ๋ ์ฑ์ ๋์ผ ์ ์๋ค๋ ๊ฐ์ ์ด ๋ถ๊ฐ๋๋ฉด์ ์ ์ ์ฌ๋ฌ ๊ณณ์ผ๋ก ํผ์ ธ๊ฐ๊ฒ ๋๋ค.
// | |
// main.swift | |
// UnitConverter | |
// | |
// Created by Doran & Dominic on 02/04/2019. | |
// Copyright ยฉ 2019 hw. All rights reserved. | |
// | |
import Foundation |