Skip to content

Instantly share code, notes, and snippets.

View cdelaet's full-sized avatar

Chris De Laet cdelaet

  • APEXone
  • Belgium
  • 13:31 (UTC +01:00)
View GitHub Profile
@smosko
smosko / OSLog+Extensions.swift
Last active December 26, 2022 07:54
Unified Logging Wrapper
import Foundation
@_exported import os.log
public extension OSLog {
convenience init(_ bundle: Bundle = .main, category: String? = nil) {
self.init(subsystem: bundle.bundleIdentifier ?? "default", category: category ?? "default")
}
convenience init(_ aClass: AnyClass, category: String? = nil) {
@oldwestaction
oldwestaction / Code.gs
Last active January 3, 2023 01:37
google apps script to populate a google sheet w/ fragrance notes from fragrantica
// full instructions on using this script are available here: https://gist.github.com/oldwestaction/68b5c3bedf6d8acb84ff5a846cd3d8f8
// edit these variables depending on how your sheet is set up
// 1 = column A, 2 = column B, and so on
var googleSheetMenuButton = 'Custom scripts';
var perfumerColumn = 1;
var titleColumn = 2;
var fragranceNotesColumn = 3;