Skip to content

Instantly share code, notes, and snippets.

Nick Punt nickpunt

Block or report user

Report or block nickpunt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View coda-darkmode.css
div.kr-editable.canvas_ranges_editor--root--1O0sYyVL {
color: #dedede;
background-color: #2b2b2b;
}
div.kr-span {
color: #e6e6e6;
}
div.left_rail_view--root--21r3Zn9y.left_rail_view--expanded--1yBdK1dz {
@nickpunt
nickpunt / lightswitch.js
Last active Sep 12, 2019
Lightswitch: A dark mode switcher with user override
View lightswitch.js
/*******************************************************************************
LIGHTSWITCH: A DARK MODE SWITCHER WITH USER OVERRIDE
By Nick Punt 10/26/2018
How to use:
* Create two color schemes in CSS under the classes 'light' and 'dark'
* Add the class 'light' or 'dark' to your body as your default color scheme
* Add button to page with id 'lightswitch', which lets users change/override
View gist:013396734240d4467ae9cf440a8414a8
<Box>
{posts
.filter(post => post.node.title.length > 0)
.map(({ node: post }, index) => {
return (
<Box key={post.id}>
<Link to={post.slug} className={linkStyles}>
<Timestamp>{post.date}</Timestamp>
<h3>{post.title}</h3>
<div
View TrackpadFix (Non-Forcetouch).scpt
tell application "System Preferences"
reveal pane id "com.apple.preference.trackpad"
end tell
tell application "System Events" to tell process "System Preferences"
-- Uncheck Zoom
tell tab group 1 of window "Trackpad"
click radio button "Scroll & Zoom"
click checkbox 2
end tell
end tell
View TrackpadFix (Forcetouch).scpt
tell application "System Preferences"
reveal pane id "com.apple.preference.trackpad"
end tell
tell application "System Events" to tell process "System Preferences"
-- Uncheck lookup & data detectors
tell tab group 1 of window "Trackpad"
click radio button "Point & Click"
click checkbox 1
end tell
View Lightpack.ini
[General]
IsBacklightEnabled=false
LightpackMode=Ambilight
[Device]
Brightness=100
ColorDepth=128
Gamma=2.004
RefreshDelay=100
Smooth=5
You can’t perform that action at this time.