Skip to content

Instantly share code, notes, and snippets.

View noe's full-sized avatar

Noe Casas noe

View GitHub Profile
@noe
noe / keynote_copy_presenter_notes.scpt
Created December 11, 2023 14:29
Applescript to copy a Keynote document's presenter notes to the clipboard
-- Copyright 2023 Noe Casas.
-- License: CC-BY-SA 2.5 (because it's derived from a 2014 SO question, see https://stackoverflow.com/help/licensing)
-- Copies the presenter notes from a Keynote presentation into the clipboard,
-- adding the slide index before each slide's presenter note's.
-- Derived from https://apple.stackexchange.com/a/142533/181485
global presenterNotes
tell application "Keynote"
activate
tell front document
@noe
noe / splitview.kt
Last active February 15, 2024 15:43
Split view in Jetpack Compose
//
// Copyright 2020 Noe Casas.
//
// MIT License:
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
@noe
noe / SideDrawer.swift
Created September 30, 2020 15:38
SwiftUI component to integrate SideMenu (https://github.com/jonkykong/SideMenu) in a SwiftUI application. It hides all UIKit details.
//
// Copyright 2020 Noe Casas.
//
// MIT License:
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is