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
#include <iostream> | |
#include <vector> | |
#include <cmath> | |
using namespace std; | |
vector<long long> *primeTable; | |
long long nextPrime() | |
{ | |
long long lastPrime = *--(primeTable->end()); |
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
// | |
// ImageLoadVC.h | |
// touchtest | |
@import UIKit; | |
@interface ImageLoadVC : UIViewController | |
@end |
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
patch: | |
key_binder: | |
import_preset: default | |
bindings: | |
- {accept: f, send: e, when: always} | |
- {accept: p, send: r, when: always} | |
- {accept: g, send: t, when: always} | |
- {accept: j, send: y, when: always} | |
- {accept: l, send: u, when: always} | |
- {accept: u, send: i, when: always} |
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
struct Test1 { | |
var ww: Int | |
var xx: String | |
} | |
struct Partial<T> { | |
internal var values: [PartialKeyPath<T>: Any] = [:] | |
subscript<V>(key: KeyPath<T, V>) -> V? { | |
get { |
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
#include <iostream> | |
#include <type_traits> | |
template <char ...chars> | |
using TString = std::integer_sequence<char, chars...>; | |
template <typename T, T ...chars> | |
constexpr TString<chars...> operator""_tstr() { return { }; } | |
template <typename> |