Skip to content

Instantly share code, notes, and snippets.

Man is distinguished, not only by his reason, but by this singular passion from other animals, which is a lust of the mind, that by a perseverance of delight in the continued and indefatigable generation of knowledge, exceeds the short vehemence of any carnal pleasure.
@matthewbeta
matthewbeta / scrim-gradient.scss
Last active May 21, 2024 06:35
A simple little SCSS mixin for creating scrim gradients
/*
A simple little SCSS mixin for creating scrim gradients
Inspired by Andreas Larson - https://github.com/larsenwork
https://css-tricks.com/easing-linear-gradients/
*/
@mixin scrimGradient($startColor: $color-black, $direction: 'to bottom') {
$scrimCoordinates: (
@dscamahorn
dscamahorn / sync-atom-settings.txt
Created September 15, 2015 01:15
Sync atom.io settings between computers with Dropbox.
$ mv ~/.atom ~/Dropbox/Apps/Atom
$ ln -s ~/Dropbox/Apps/Atom ~/.atom
@jczaplew
jczaplew / pgFormatDate.js
Created April 24, 2015 14:11
Javascript Date to Postgres-acceptable format
// Convert Javascript date to Pg YYYY MM DD HH MI SS
function pgFormatDate(date) {
/* Via http://stackoverflow.com/questions/3605214/javascript-add-leading-zeroes-to-date */
function zeroPad(d) {
return ("0" + d).slice(-2)
}
var parsed = new Date(date)
@filmgirl
filmgirl / yosemite-install-usb
Last active April 3, 2018 07:04
Create Bootable USB Drive for OS X Yosemite
sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction