Skip to content

Instantly share code, notes, and snippets.

Ian Williams dictions

Block or report user

Report or block dictions

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 ReactFormHelper.js
this.createFormHelper('email')
// Returns:
{
get() {
return this.state
},
set(e) {
this.setState({email: e.target.value})
View sync-fonts.sh
#!/bin/bash
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `sync` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Reset font directories
sudo fontrestore default
You can’t perform that action at this time.