Skip to content

Instantly share code, notes, and snippets.

View furkankaplan's full-sized avatar

Furkan KAPLAN furkankaplan

View GitHub Profile
@erikng
erikng / OSLogTest.swift
Created February 15, 2021 22:26 — forked from steipete/OSLogTest.swift
Sample code to access OSLogStore on iOS and macOS.
let subsystem = "com.steipete.LoggingTest"
func getLogEntries() throws -> [OSLogEntryLog] {
// FB8269189: OSLogStore does not work iOS.
let logStore = try OSLogStore(scope: .currentProcessIdentifier)
let oneHourAgo = logStore.position(date: Date().addingTimeInterval(-3600))
#if os(macOS)
let allEntries = try logStore.getEntries(at: oneHourAgo)
#else
@Drozerah
Drozerah / Firebase-Query.md
Created February 13, 2019 20:47
Firebase Realtime Database API - Query Exemples

Firebase Realtime Database API - Query Exemples

Documentation : firebase.database.Reference

── Query Methods ── firebase.database.Query

  orderByChild    (key)       Order children at location by the value of specified grandchild key.
  orderByKey      ()          Order children at location by child keys.

orderByValue () Order children at location by child values.