Skip to content

Instantly share code, notes, and snippets.

View ggamel's full-sized avatar
👁️
 👄  👁

Greg Gamel ggamel

👁️
 👄  👁
View GitHub Profile
@ggamel
ggamel / dabblet.css
Created January 4, 2012 16:22 — forked from LeaVerou/dabblet.css
Lined paper that follows the text
/**
* Lined paper that follows the text
* Support: Chrome, FF 3.6+, Saf 5.1+, Opera 11.50+, IE10
*/
/* Just decorative */
padding: 20px;
/* The font. Try changing font-size and see how the lines
@ggamel
ggamel / rsync.sh
Created March 22, 2012 15:59 — forked from desandro/rsync.sh
basic rsync
# sync up
rsync -rav -e "ssh -l username" /local/path/ server.com:path/
# sync down
rsync -rav -e "ssh -l username" server.com:path/ /local/path/
@ggamel
ggamel / dabblet.css
Created May 7, 2012 17:27 — forked from jackie/dabblet.css
FizzBuzz with CSS
/**
* FizzBuzz with CSS
*/
body {
counter-reset: fizzbuzz;
}
div {
@ggamel
ggamel / dabblet.css
Created May 17, 2012 04:16 — forked from daneden/dabblet.css
Don't call it a comeback
/**
* Don't call it a comeback
*/
html {
font: 100%/1.5 Helvetica Neue, Helvetica, Arial, sans-serif;
background-image: linear-gradient(left,rgba(0,0,0,.9) 0%, rgba(0,0,40,.9) 50%,rgba(0,0,0,.9) 100% );
min-height: 100%;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
@ggamel
ggamel / pop-stripe.md
Created July 19, 2012 05:31
Rainbow stripe mixin with SCSS + Compass

Rainbow stripe mixin with SCSS + Compass

I'm trying to make a horizontal rainbow stripe background gradient mixin, but I feel like this is way too verbose. How can it be better?

Goals:

  1. Use variables for colors so they can be swapped out for different colors.
  2. The widths are hard coded for 8 colors. Can it be done smarter where it adjusts to the number of colors you add? Or is that asking too much?
  3. The colors are defined twice for the color starts and stops. Can this be done better?
  4. Right now I define the colors as variables at the top level, then pass them in the mixin. Should they instead be created inside the mixin and then colors are brought in as arguments? Or does that matter?
@ggamel
ggamel / dabblet.css
Created July 24, 2012 01:57 — forked from daneden/dabblet.css
Chat
/* Chat */
* {
margin: 0;
padding: 0;
}
html {
background-image: url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAPAAA/+4ADkFkb2JlAGTAAAAAAf/bAIQABgQEBAUEBgUFBgkGBQYJCwgGBggLDAoKCwoKDBAMDAwMDAwQDA4PEA8ODBMTFBQTExwbGxscHx8fHx8fHx8fHwEHBwcNDA0YEBAYGhURFRofHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8f/8AAEQgAyQDJAwERAAIRAQMRAf/EAGsAAQEBAQEAAAAAAAAAAAAAAAEAAgMIAQEBAQEAAAAAAAAAAAAAAAAAAQIDEAABAgQEBQUAAwEBAQAAAAABABEhMUFR8GFxAoGRobESwdHhIjLxQlJicoIRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/APQQOlaFdGUPyJSFEDtmZTsboCF+hQRa/QoIgeMxyKCEpjqgf/oUvdAUMRLNBR8ZhAl7oKLzpmgotO90AHcR7oIu/wDKAHl4/wAoInc/DNAh/EoAOgtpLhBB3rJBB88FBMXkemSBi0j090FFjDtbVBuNuyDmNNvTNBD8iG2lBkgdrOYbZ2F0E0obeiCLWHRBEfWnRBD8yHRAxsOl0GTIw7IH+vHLJBbhkEEBlRAtNACY4oIjEUEBCXUoAiPyUCAPE+5QAA63KB2iI+UEBKNLlAAC/e6CYPPvkgWhzugWniiDbIOdDHDlEA/Ijb0RSBONfVBNn0QRAeY5FBQaY5IIAeNOXwgoZcs9EAQGMRy+EEwae2dvhA7ht/5nZBAbf+ZWQQG2P5rRBMISrRBEDLHBAQamDogiz0QO1vGiChlNBbCHEAgARCFEA4th0CCHlh0C4aV0F5BzDDaoNvl0+UGOIn6lAAfUREh6INBoxr6
@ggamel
ggamel / dabblet.css
Created August 1, 2012 23:31 — forked from dstorey/dabblet.css
set the size of the boxes and any decoration
.slider {
/* set initial width */
width: 520px;
/* hide the content that overflows (to allow second box to show through) */
overflow: hidden;
display: inline-block;
/* skew container so that it has angled edge, and set up transition */
transform: skewX(-20deg);
//
// Sass rotation mixin for IE6+
//
@mixin ms-rotate($degrees) {
@if (not unitless($degrees)) { $degrees: $degrees / 1deg }
$deg2rad: pi() * 2 / 360;
$radians: $degrees * $deg2rad;
$costheta: cos($radians);
$sintheta: sin($radians);
@ggamel
ggamel / gist:3879182
Created October 12, 2012 13:25 — forked from srobbin/gist:1979034
Intelligist Demo: Live JS
/*
We can even execute JavaScript.
For example, here is a simple jQuery plugin that shuffles the "Demo" heading text above.
http://tutorialzine.com/2011/09/shuffle-letters-effect-jquery/
*/
$("#demo-header").shuffleLetters();
@ggamel
ggamel / guilloche.js
Created December 4, 2012 19:43 — forked from 3n/guilloche.js
/*
---
name: guilloche
script: guilloche.js
description: guilloche
provides: [Guilloche]
...
*/