Skip to content

Instantly share code, notes, and snippets.

💭
🤔🤔🤔

Isaac Carol Weisberg isaac-weisberg

💭
🤔🤔🤔
Block or report user

Report or block isaac-weisberg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ass2.json
{"com_c_eta":{"AF":"CI","AL":"CI,IN,LK","DZ":"CI,LK","AD":"AU,CA,LK,US,CI,IN","AO":"CI,IN,LK","AG":"CI,IN,LK","AR":"CI,IN,LK","AM":"CI,IN,LK","AU":"CA,CI,IN,LK,US","AT":"AU,CA,LK,US,CI,IN","AZ":"CI,IN,LK","BS":"CA,CI,IN,LK","BH":"CI,LK","BD":"CI,LK","BB":"CA,CI,IN,LK","BY":"CI,LK","BE":"AU,CA,LK,US,CI,IN","BZ":"CI,IN,LK","BJ":"LK","BT":"CI,LK","BO":"CI,IN,LK","BA":"CI,IN,LK","BW":"CI,IN,LK","BR":"CI,IN,LK","BN":"AU,CA,CI,IN,LK,US","BG":"LK,AU,CA,CI,IN","BF":"LK","BI":"CI,IN,LK","KH":"CI,IN,LK","CM":"CI,IN","CA":"AU,CI,IN,LK","CV":"IN,LK","CF":"LK","TD":"LK","CL":"CA,CI,IN,LK,US","CN":"CI,IN,LK","CO":"CI,IN,LK","KM":"CI,IN,LK","CG":"","CD":"CI","CR":"CI,IN,LK","CI":"IN","HR":"CA,LK,AU,CI,IN","CU":"CI,IN,LK","CY":"CA,LK,AU,CI,IN","CZ":"CA,LK,US,AU,CI,IN","DK":"AU,CA,LK,US,CI,IN","DJ":"CI,IN,LK","DM":"CI,IN,LK","DO":"CI,IN,LK","EC":"CI,IN,LK","EG":"CI","SV":"CI,IN,LK","GQ":"CI,LK","ER":"CI,IN,LK","EE":"CA,LK,US,AU,CI,IN","SZ":"CI,IN,LK","ET":"CI,LK","FJ":"CI,IN,LK","FI":"AU,CA,LK,US,CI,IN","FR":"AU,CA,LK,US,CI,I
View ass.js
// https://www.passportindex.org/comparebyPassport.php
var RES = {}
const labels = ["com_c_eta", "com_c_vf", "com_c_voa", "com_c_vr"];
labels.forEach(label => {
RES[label] = {}
const store = window[label];
for (const key in store) {
RES[label][key] = store[key]
}
View ModelsStorageService.swift
import Foundation
import RxSwift
protocol ModelsStorageServiceProtocol {
}
enum ModelsStorageServiceError: Error {
case db(DBAccessServiceError)
case deserialization(Error)
View DBAccessService.swift
import Foundation
import RxSwift
protocol DBAccessServiceProtocol {
func select(sql: String) -> Single<Result<Data, DBAccessServiceError>>
}
enum DBAccessServiceError: Error {
case deserialization(Error)
case `internal`(Error)
View JSONDownloaderService.swift
import RxSwift
import Foundation
protocol JSONDownloaderServiceProtocol {
}
enum JSONDownloaderServiceError: Error {
case download(FileDownloaderServiceError)
case deserialization(Error)
View FileDownloaderService.swift
import Foundation
import RxSwift
protocol FileDownloaderServiceProtocol {
func download(url: URL) -> Single<Data>
}
enum FileDownloaderServiceError: Error {
case download(Error)
}
View react-jsx.md

typings/react/react-jsx.d.ts

@isaac-weisberg
isaac-weisberg / ResultTing.swift
Created Apr 15, 2019
Can't wait for Swift.Result
View ResultTing.swift
enum ResultTing<Value, Error> {
case success(Value)
case failure(Error)
}
extension ResultTing {
func then<NewValue>(_ predicate: (Value) -> NewValue) -> ResultTing<NewValue, Error> {
switch self {
case .success(let value):
@isaac-weisberg
isaac-weisberg / XibbyView.m
Last active Apr 8, 2019
Load your views from xib
View XibbyView.m
// XibbyView.h
@interface XibbyView : UIView
@property UIView* xibView;
@end
// XibbyView.m
@interface XibbyView ()
You can’t perform that action at this time.