Skip to content

Instantly share code, notes, and snippets.

View fionawhim's full-sized avatar
🏳️‍🌈

Fiona Hopkins fionawhim

🏳️‍🌈
View GitHub Profile
// Fix for https://github.com/tannerlinsley/react-table/issues/1797
//
// The bug is that useFilters modifies the row objects such that instance.rows
// and instance.flatRows contain different objects. This breaks useRowSelect,
// which sets "isSelected" on instance.rows but then reads it back from
// instance.flatRows.
//
// We fix it by manually reconstructing instance.flatRows from the objects in
// instance.rows.
//
@fionawhim
fionawhim / unlock.scpt
Created May 31, 2012 20:31
Unlock screensaver via AppleScript in Lion
tell application "System Events"
if name of every process contains "ScreenSaverEngine" then
tell application "ScreenSaverEngine"
quit
end tell
keystroke <YOUR PASSWORD HERE>
keystroke return
end if
end tell