Skip to content

Instantly share code, notes, and snippets.

View lunelson's full-sized avatar
👀
Reading

Lu Nelson lunelson

👀
Reading
View GitHub Profile
@lunelson
lunelson / SassMeister-input.scss
Created March 17, 2016 07:26 — forked from anonymous/SassMeister-input.scss
String interpolation bug, libsass 3.3.3
// ----
// libsass (v3.3.2)
// ----
@function slice($list, $start: 1, $end: length($list), $sep: list-separator($list)) {
$output: ();
@if $start >= 1 and $end >= $start {
@for $i from $start through $end {
$output: append($output, nth($list, $i), $sep);
}
@lunelson
lunelson / introrx.md
Created October 5, 2015 09:06 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@lunelson
lunelson / 0_reuse_code.js
Last active August 29, 2015 14:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@lunelson
lunelson / info.md
Last active August 29, 2015 14:07 — forked from metaskills/info.md
Bookmarklets for Sassmeister "Presenter Mode"

Presenter Mode

This bookmarklet will put Sassmeister into presenter mode. I used it for screenshots for my talk.

javascript:(function(){var%20h,m,f;h=$('.site_header'),m=$('.main_body'),f=$('footer');if(h.is(':visible')){h.hide();m.css({top:0,bottom:0});f.hide();}else{h.show();m.css({top:'3.33333em',bottom:'1.77778em'});f.show()}}());

presenter-mode

Presenter Mode Zoomed

@lunelson
lunelson / parallaxbgs.js
Created February 24, 2014 10:51 — forked from jofralogo/parallaxbgs.js
Parallax backgrounds for non-touch devices (using jQuery & Modernizr)
/*
HTML SYNTAX:
<div id="example" data-parallax-bg="false" data-parallax-bg-speed="1.5">
CONTENT
</div>
IMPORTANT:
Don't forget tu place the background-image on your css file:
@lunelson
lunelson / SassMeister-input.scss
Created December 10, 2013 08:25 — forked from scottkellum/SassMeister-input.scss
HEX code Sass functions, normal and IE versions
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
@function baseten-hex($number) {
$hex-values: 0 1 2 3 4 5 6 7 8 9 a b c d e f;
@if round($number) != $number {
@warn "base10-hex() needs a integer";
}

FILL

fill	            Sets fill color of the shape.
fill-opacity	    Sets fill opacity of the shape.
fill-rule	    Sets fill rule of the shape.
  
  ** example **
  fill: #ccc;
  fill: rgba(0,0,0,.5);
  fill: red;
{
"folders":
[
{
"path": "Leanpub/sublime-productivity",
"folder_exclude_patterns": ["epub_images", "convert_html", "preview", "published"],
"file_exclude_patterns": [".gitignore", "*.sublime*", "*Icon*"]
},
{
"path": "SublimeTextTips"
@lunelson
lunelson / _contrast_mixin.scss
Created June 23, 2012 18:29 — forked from aaronrussell/_contrast_mixin.scss
Sass function and mixin for setting contrasting background and foreground colors
$contrasted-default-dark: #000;
$contrasted-default-light: #fff;
@mixin contrasted($bg, $dark:$contrasted-default-dark, $light:$contrasted-default-light){
background-color: $bg;
color: get_contrast_yiq($bg, $dark, $light);
}