Skip to content

Instantly share code, notes, and snippets.

View dbc60's full-sized avatar
💭
It's all unicorns and rainbows

Douglas Cuthbertson dbc60

💭
It's all unicorns and rainbows
View GitHub Profile
// Greatest Common Divisor (gcd) in pure scss from
// https://gist.github.com/voxpelli/6304812
@function gcd($a, $b) {
// From: https://rosettacode.org/wiki/Greatest_common_divisor#JavaScript
@if ($b != 0) {
@return gcd($b, $a % $b);
} @else {
@return abs($a);
}
}
@dbc60
dbc60 / gist:5fd0db49bd06c27db2d6
Created May 14, 2014 14:45
Can't update gems today
Although the site http://rubygems.org/ is up. When I run "gem update jekyll" and http://status.rubygems.org/ says the site it up, I get
C:\> gem update jekyll
Updating installed gems
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ETIMEDOUT: A connection attempt failed because the connected party did not properly respond after a period of
time, or established connection failed because connected host has failed to respond. - connect(2) (http://au-m.rubygems
.org/specs.4.8.gz)
Is anyone else seeing this? Is there a workaroung?