Skip to content

Instantly share code, notes, and snippets.

@mixin all-retina-sprites($map, $map2x) {
@media (min--moz-device-pixel-ratio: 1.5),
(-o-min-device-pixel-ratio: 3/2),
(-webkit-min-device-pixel-ratio: 1.5),
(min-device-pixel-ratio: 1.5),
(min-resolution: 1.5dppx) {
$base-class: sprite-map-name($map);
.#{$base-class}-all-retina-sprites {
@hlb
hlb / gist:4636803
Last active December 11, 2015 17:48 — forked from hungtatai/gist:4636786
# encoding: utf-8
require 'nokogiri'
require 'open-uri'
require 'pp'
base = 'http://www.ptt.cc'
url = 'http://www.ptt.cc/bbs/joke/index.html'
yesterday = Date.today - 1
stop_flag = false
@hlb
hlb / Brewfile
Last active June 14, 2022 02:48 — forked from saetia/gist:1623487
Clean Install Script
cask_args appdir: '/Applications'
tap 'caskroom/cask'
tap "homebrew/cask-fonts"
tap 'caskroom/versions'
tap "homebrew/bundle"
tap "homebrew/core"
tap "homebrew/services"
tap "hsatac/toybox"
brew "coreutils"
brew "gnu-sed"