Skip to content

Instantly share code, notes, and snippets.

Avatar
🐦
咕咕咕

Eming Kwok EmingK

🐦
咕咕咕
View GitHub Profile
View Patchable.swift
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 {
@EmingK
EmingK / wubi86.custom.yaml
Created Apr 21, 2018
Rime wubi config for hardware colemak keyboard layout
View wubi86.custom.yaml
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}
@EmingK
EmingK / ImageLoadVC.h
Created Jan 11, 2016
Test image rendering with kCAFilterTrilinear on iPhone 5C
View ImageLoadVC.h
//
// ImageLoadVC.h
// touchtest
@import UIKit;
@interface ImageLoadVC : UIViewController
@end
View p60.cpp
#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
vector<long long> *primeTable;
long long nextPrime()
{
long long lastPrime = *--(primeTable->end());