Skip to content

Instantly share code, notes, and snippets.

View lynnwallenstein's full-sized avatar
🏡
Working Remotely from Pacific Time

Lynn Wallenstein lynnwallenstein

🏡
Working Remotely from Pacific Time
View GitHub Profile
@bruce
bruce / _color-fallback.scss
Created September 4, 2011 00:35
Color Fallbacks
// Mixin that uses the format-color function to create a color fallback for a property
@mixin color-fallback($property, $hsla-color) {
#{$property}: format-color($hsla-color, hex);
#{$property}: format-color($hsla-color, rgb);
#{$property}: format-color($hsla-color, rgba);
#{$property}: format-color($hsla-color, hsl);
#{$property}: format-color($hsla-color, hsla);
}
@thulstrup
thulstrup / compass-retina-sprites.scss
Created March 20, 2012 19:18
Using Compass to generate normal and retina sprite maps
$sprites: sprite-map("sprites/*.png");
$sprites-retina: sprite-map("sprites-retina/*.png");
@mixin sprite-background($name) {
background-image: sprite-url($sprites);
background-position: sprite-position($sprites, $name);
background-repeat: no-repeat;
display: block;
height: image-height(sprite-file($sprites, $name));
width: image-width(sprite-file($sprites, $name));
class ApplicationController < ActionController::Base
extend AttributeViewable
end
@mailtruck
mailtruck / colormeter.js
Created April 18, 2012 07:09 — forked from krypton/colormeter.js
Calculate difference in percentage between 2 hex colors
function color_meter(cwith, ccolor) {
if (!cwith && !ccolor) return;
var _cwith = (cwith.charAt(0)=="#") ? cwith.substring(1,7) : cwith;
var _ccolor = (ccolor.charAt(0)=="#") ? ccolor.substring(1,7) : ccolor;
var _r = parseInt(_cwith.substring(0,2), 16);
var _g = parseInt(_cwith.substring(2,4), 16);
var _b = parseInt(_cwith.substring(4,6), 16);
@jamiew
jamiew / Procfile
Last active October 4, 2015 12:28
Using unicorn on Heroku
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
@rachelmyers
rachelmyers / Chromebook_setup.md
Last active October 19, 2024 04:52
How I set up my Chromebooks' dev environment

Chromebook Setup Options

Option 1: Stay in Chrome OS

If you're writing bare-bones javascript for the browser, creating Chrome Apps and Extensions, or using remote coding apps like cloud9, Koding, or Nitrous, you may not need to install Ubuntu. Some tutorials can be done entirely within the browser. The tradeoff is that you won't have a full-featured command line, and you may hit a point where you can't install something that you need.

To start coding within Chrome OS, install Text or Caret as a text editor. (Text stores files in Google Docs and Caret stores the files locally on your machine, which may help you choose.) After that, you're good to go, since Chromebooks come with a browser installed.

Optio

@cvfernandez
cvfernandez / Cristina’s Off-boarding Gist.md
Last active January 8, 2021 16:38
Cristina’s Off-boarding Gist

Cristina’s Off-boarding Gist

Recently I’ve was on-boarding with Anais’s team and getting a better understanding of how internal-tools works as well as the needs we had for the staff tools project.

People I talked to about staff tools overhaul:

  • Security: @darcyck, @usingh013, @ktfeucht
  • Eng-Ops/Internal-tools: @camicano, @anaisftw, @lynnwallenstein
  • App-Eng: @corywilkerson (cc: @nadaaldahleh, @ohitsmekatie because of permissions discussion)
  • Other: @gnawhleinad