Skip to content

Instantly share code, notes, and snippets.

View jabruder's full-sized avatar

Jason Bruder jabruder

View GitHub Profile
@derickfay
derickfay / fix_notes.applescript
Created April 16, 2015 16:55
Change Keynote Presenter Notes Font and Size for All Slides
tell application "Keynote"
tell document 1
set theSlides to slides
repeat with s in the slides
tell presenter notes of s
set font to "Helvetica"
set size to 24
end tell
end repeat
end tell
@joanromano
joanromano / Bisect.swift
Created September 8, 2019 10:10
Bisection searching algorithms
extension Array where Element: Comparable {
// This implementations are inspired in https://github.com/python/cpython/blob/master/Lib/bisect.py
/// Return the index where to insert value in the receiver, assuming the receiver is sorted
///
/// - Parameters:
/// - value: The position of the text in current context
/// - min: The lower bound where to perform the search
/// - max: The upper bound where to perform the search
/// - Returns: An index such that all elements in self[:i] have element < value, and all elements in