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
#!/bin/bash | |
TEAM_ID=Team ID | |
TOKEN_KEY_FILE_NAME=path to the private key file | |
AUTH_KEY_ID=your key identifier | |
TOPIC=App ID | |
DEVICE_TOKEN=device token for your app | |
APNS_HOST_NAME=api.sandbox.push.apple.com | |
read -r -d '' PAYLOAD <<'EOF' |
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
extension UIImage { | |
func applyBlur_usingClamp(radius: CGFloat) -> UIImage { | |
let context = CIContext() | |
guard let ciImage = CIImage(image: self), | |
let clampFilter = CIFilter(name: "CIAffineClamp"), | |
let blurFilter = CIFilter(name: "CIGaussianBlur") else { | |
return self | |
} | |
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
let albums = PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .any, options: nil) // system 앨범 | |
let albums2 = PHAssetCollection.fetchAssetCollections(with: .album, subtype: .any, options: nil) // 사용자가 만든? 앨범 | |
albums.enumerateObjects { (collection, _, _) in | |
let title = collection.localizedTitle | |
let count = PHAsset.fetchAssets(in: collection, options: nil).count | |
print(title, count) | |
} |
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
class GradientCircle: UIView, CAAnimationDelegate { | |
let gradientLayer: CAGradientLayer = CAGradientLayer() | |
var startAngle: CGFloat = (-(.pi) / 2) | |
var endAngle: CGFloat = 3 * ((.pi) / 2) | |
override func draw(_ rect: CGRect) { | |
let center = CGPoint(x: rect.midX, y: rect.midY) |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"net/http/httputil" | |
) | |
func handler(w http.ResponseWriter, r *http.Request) { |
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
1. Xcode 10.2로 프로젝트 생성 -> Xcode 10.2로 빌드 -> 12.2 디바이스 | |
= 1.9MB | |
1) Xcode 10.2로 프로젝트 생성 -> Xcode 10.2로 빌드 -> 13.0 디바이스 | |
= 못돌림 | |
2. Xcode 10.2로 프로젝트 생성 -> Xcode 11 (Beta Seed 1)로 빌드 -> 12.2 디바이스 | |
= 1.9MB | |
3. Xcode 10.2로 프로젝트 생성 -> Xcode 11 (Beta Seed 1)로 빌드 -> 13.0 디바이스 |
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
import UIKit | |
import Foundation | |
import SlackKit | |
class LonelyWolf { | |
let bot: SlackKit | |
init(token: String) { | |
bot = SlackKit() |
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
import UIKit | |
import AVFoundation | |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
addSwipe() | |
} | |
func addSwipe() { |
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
// | |
// MyCalender.swift | |
// date | |
// | |
// Created by woowabrothers on 2017. 7. 11.. | |
// Copyright © 2017년 woowabrothers. All rights reserved. | |
// | |
import Foundation |
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
// | |
// main.swift | |
// Misson | |
// | |
// Created by woowabrothers on 2017. 7. 10.. | |
// Copyright © 2017년 woowabrothers. All rights reserved. | |
// | |
import Foundation |
NewerOlder