Skip to content

Instantly share code, notes, and snippets.

View joshuaogle's full-sized avatar
👨‍🎨
Making the cloud a better place to live

Joshua Ogle joshuaogle

👨‍🎨
Making the cloud a better place to live
View GitHub Profile
@ryanburnette
ryanburnette / sass-to-scss.sh
Last active March 15, 2019 15:48
Convert all .scss to .sass in the current directory, or vice versa.
#!/usr/bin/env bash
for file in *.sass
do
sass-convert -F sass -T scss $file `echo $file | sed s/.sass/.scss/g`;
done
rm *.sass
@joshuaogle
joshuaogle / animate.css.scss
Created October 7, 2014 16:50
Animate on scroll
# Requires BourbonJS
@include keyframes(reveal) {
0% {
@include transform(translateY(em(30)));
opacity: 0;
}
100% {
@include transform(translateY(0));
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active November 16, 2025 11:36
A badass list of frontend development resources I collected over time.

Using Homebrew versions in place of rbenv/rvm

Installation

For the git checkout commands we'll want to be in /usr/local. Let's go there now:

cd /usr/local
@ericboehs
ericboehs / gist:3863345
Last active October 11, 2015 13:07
How I setup my server (Ubuntu 12.04)
#!/usr/bin/env bash
###
# Run this script as root
###
# Setup variables for this script
USER=ericboehs
SSH_PUBLIC_KEY="ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEApqtopvozpyuX+ELj9a78eFY0AmU5Zl3V3l2n7XW49ZVszdJFGX6l3Lsb9tZW1zNSPtt9hDzh7m4R/y0l/Qxzitk0xcQWyuIFIIifiqY2ZFgEPXKcZ/i+6E1rQL8f44eLkgIH8evTB15TPcIefbdWHlhLXn7WoG/aboC9TzLgtUG05m2Mtp8/gDYI93cZHgK9hLsuQR/iSbt3obx6id2bB4MQSjPu7wPpjVbsn6pglbbjgkE9qkERckLDAUDuFQfJRQUMjbJ01Vnp6w0D6Ffg8kE3VFnBxNc4eZHS/nvPTTd35ZhCnnOIQ5brfTAoMpvctlfoh0fjaWhXJbny39CHow== [email protected]"
GITHUB_USER=$USER
@jonathanmoore
jonathanmoore / gist:2640302
Created May 8, 2012 23:17
Get the share counts from various APIs

Share Counts

I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.

If you want to roll up all of these into a single jQuery plugin check out Sharrre

Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.

Twitter