Skip to content

Instantly share code, notes, and snippets.


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 / wubi86.custom.yaml
Created Apr 21, 2018
Rime wubi config for hardware colemak keyboard layout
View wubi86.custom.yaml
import_preset: default
- {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 / 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
View p60.cpp
#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
vector<long long> *primeTable;
long long nextPrime()
long long lastPrime = *--(primeTable->end());