I hereby claim:
- I am kafran on github.
- I am kafran (https://keybase.io/kafran) on keybase.
- I have a public key ASCJv9SJ3qWI58rLwTSMBNjmJJIsJy9wuf4TlNklej_V-Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import CloudKit | |
| import Foundation | |
| import Locksmith | |
| /** | |
| API Key used by this app is fetched from CloudKit. This class manages fetching and saving it into Keychain | |
| */ | |
| class ApiKey { | |
| private static let RECORD_NAME = <# RECORD_NAME_IN_CLOUDKIT #> | |
| private static let KEY = <# KEY_NAME_IN_CLOUDKIT #> |
| import SwiftUI | |
| // pre-create one instance of MeasurementFormatter for our format needs | |
| // re-use as needed | |
| extension MeasurementFormatter { | |
| static private let formatter: MeasurementFormatter = { | |
| let formatter = MeasurementFormatter() | |
| let numberFormatter = NumberFormatter() | |
| numberFormatter.numberStyle = .decimal | |
| numberFormatter.minimumFractionDigits = 2 |
| public func CVPixelBufferGetPixelFormatName(pixelBuffer: CVPixelBuffer) -> String { | |
| let p = CVPixelBufferGetPixelFormatType(pixelBuffer) | |
| switch p { | |
| case kCVPixelFormatType_1Monochrome: return "kCVPixelFormatType_1Monochrome" | |
| case kCVPixelFormatType_2Indexed: return "kCVPixelFormatType_2Indexed" | |
| case kCVPixelFormatType_4Indexed: return "kCVPixelFormatType_4Indexed" | |
| case kCVPixelFormatType_8Indexed: return "kCVPixelFormatType_8Indexed" | |
| case kCVPixelFormatType_1IndexedGray_WhiteIsZero: return "kCVPixelFormatType_1IndexedGray_WhiteIsZero" | |
| case kCVPixelFormatType_2IndexedGray_WhiteIsZero: return "kCVPixelFormatType_2IndexedGray_WhiteIsZero" | |
| case kCVPixelFormatType_4IndexedGray_WhiteIsZero: return "kCVPixelFormatType_4IndexedGray_WhiteIsZero" |
| import Foundation | |
| import CoreData | |
| extension MyCoredataObject { | |
| @nonobjc public class func createFetchRequest() -> NSFetchRequest<MyCoredataObject> { | |
| return NSFetchRequest<MyCoredataObject>(entityName: "MyCoredataObject") | |
| } | |
| @NSManaged public var sortId: Int64 |
| from airflow.utils import db | |
| from airflow.models import Connection | |
| import csv | |
| outfile = open('myconnections.csv', 'w') | |
| outcsv = csv.writer(outfile) | |
| with db.create_session() as session: | |
| connections = session.query(Connection).all() |
| import json | |
| import base64 | |
| import os | |
| # make sure the output directory exists before running! | |
| folder = os.path.join(os.getcwd(), "imgs") | |
| with open("scr.har", "r") as f: | |
| har = json.loads(f.read()) |
| --- /home/kafran/Downloads/biblatex-abnt-3.1/latex/cbx/abnt.cbx | |
| +++ /home/kafran/Downloads/biblatex-abnt-3.1/latex/cbx/abnt-changed.cbx | |
| @@ -70,12 +70,12 @@ | |
| {\namepartgiveni}% | |
| {\namepartprefix}% | |
| {\namepartsuffixi}}% | |
| - {\usebibmacro{name:given-family}% | |
| + {\usebibmacro{name:family-given}% | |
| {\iftoggle{sccite}% | |
| {\textsc{\MakeLowercase{\namepartfamily}}}% |