Skip to content

Instantly share code, notes, and snippets.

View MultiColourPixel's full-sized avatar
👋

Eddy Story MultiColourPixel

👋
View GitHub Profile
import UIKit.UICollectionViewCell
protocol CellReuseIdentifierProviding {
static var cellReuseIdentifier: String { get }
}
extension CellReuseIdentifierProviding where Self: UICollectionViewCell {
static var cellReuseIdentifier: String {
String(describing: self)
}
import XCTest
extension XCTestCase {
private class TestBundle { }
func deserializedObject<T: Decodable>(resourceName: String) throws -> T {
let bundle = Bundle(for: TestBundle.self)
let url = try XCTUnwrap(bundle.url(forResource: resourceName, withExtension: "json"))
let data = try Data(contentsOf: url)
@MultiColourPixel
MultiColourPixel / OpenSSL & cURL Dockerfile
Last active November 5, 2016 01:56 — forked from VictorLaskin/Dockerfile
Compile static libs: OpenSSL and CURL with https support for Android using clang3.6 (armv7)
# THIS DOCKERFILE TRIES TO COMPILE CURL/OPENSSL FOR ANDROID
#
# 5 july 2015
#
# More detals could be found here:
# http://vitiy.info/dockerfile-example-to-compile-libcurl-for-android-inside-docker-container/
FROM ubuntu
MAINTAINER Victor Laskin "victor.laskin@gmail.com"

Keybase proof

I hereby claim:

  • I am multicolourpixel on github.
  • I am multicolourpixel (https://keybase.io/multicolourpixel) on keybase.
  • I have a public key whose fingerprint is 87D3 5C77 AF0F 575B 2B32 D106 FA43 EA1D D2F6 B0DC

To claim this, I am signing this object: