Skip to content

Instantly share code, notes, and snippets.

View nickpunt's full-sized avatar
🚀
Building and hiring 🚀

Nick Punt nickpunt

🚀
Building and hiring 🚀
View GitHub Profile
[General]
IsBacklightEnabled=false
LightpackMode=Ambilight
[Device]
Brightness=100
ColorDepth=128
Gamma=2.004
RefreshDelay=100
Smooth=5
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
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
@nickpunt
nickpunt / gist:013396734240d4467ae9cf440a8414a8
Created June 2, 2018 06:18
fix for gatsbyjs airtable blog
<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
@nickpunt
nickpunt / lightswitch.js
Last active September 12, 2019 13:39
Lightswitch: A dark mode switcher with user override
/*******************************************************************************
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
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 {