This file contains hidden or 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
find . -type f '(' -name '*.storyboard' -o -name '*.xib' -o -name '*.swift' ')' -exec sed -E -i '' 's/[Find]/[Replaced]/g' {} + |
This file contains hidden or 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 ViewController: UIViewController { | |
let targetView = UIView(frame: .init(x: 50, y: 150, width: 50, height: 50)) | |
let slider = UISlider(frame: .init(x: 0, y: 100, width: 300, height: 30)) | |
var animator: UIViewPropertyAnimator? | |
var displayLink: CADisplayLink? | |
var token: NSKeyValueObservation? | |
override func loadView() { |
This file contains hidden or 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 Foundation | |
import Alamofire | |
private extension Date { | |
static func second(from referenceDate: Date) -> Int { | |
return Int(Date().timeIntervalSince(referenceDate).rounded()) | |
} | |
} | |
public class Throttler { |
This file contains hidden or 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
public class DynamicHeightTableView: UITableView { | |
public var maxHeight: CGFloat = UIScreen.main.bounds.height | |
override public var contentSize: CGSize { | |
didSet { | |
self.invalidateIntrinsicContentSize() | |
} | |
} | |
override public func reloadData() { |
This file contains hidden or 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
// Created by ์ด๊ด์ฉ on 2018. 7. 3.. | |
// Copyright ยฉ 2018๋ ์ด๊ด์ฉ. All rights reserved. | |
// | |
import UIKit | |
typealias KeyboardInfo = (CGRect, TimeInterval)->() | |
protocol KeyboardControlDelegate: class { | |
func setKyeboardControl(willShow: KeyboardInfo?, willHide: KeyboardInfo?) | |
func removeKeyboardControl() |
This file contains hidden or 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
#include <iostream> | |
#include <vector> | |
#include <stack> | |
using namespace std; | |
vector<vector<int>> singer_vector; | |
stack <int> result; | |
bool visited[1001] = { false }; | |
bool finish[1001] = { false }; | |
bool cycle = false; |
This file contains hidden or 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
#include<iostream> | |
#include<algorithm> //sort ํจ์๋ฅผ ์ถ๋ ฅํ๊ธฐ ์ํ ํค๋ | |
#include<vector> | |
#include<queue> | |
using namespace std; | |
int n, m, v; //n : vertex(์ ์ )์ ๊ฐ์, m : edge(๊ฐ์ )์ ๊ฐ์, v : ์ ์ ์ ๋ฒํธ | |
vector<vector<int>> adj; //vector-vector๋ฅผ ์ ์ธ | |
vector<bool> visited; //node์ ๋ฐฉ๋ฌธ ์ฌ๋ถ์ ๋ํ ํจ์ |
This file contains hidden or 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
#include <iostream> | |
#include <algorithm> | |
#include <vector> | |
#include <stack> | |
#include <queue> | |
#include <cstring> | |
using namespace std; | |
int arr[1020][1020]; | |
bool visited[1020]; | |
int vertex_num, edge_num; |
This file contains hidden or 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
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
int chess_size; | |
int map[11][11]; | |
int max_black = 0, max_white = 0; | |
bool slash[22]; | |
bool back_slash[22]; | |
void black(int y, int x, int cnt) { |
NewerOlder