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 / keybase.md
Created September 8, 2018 10:05
keybase.md

Keybase proof

I hereby claim:

  • I am lunelson on github.
  • I am lunelson (https://keybase.io/lunelson) on keybase.
  • I have a public key ASCsx1FnyD0wK6eqcYAapRm9Yq-nZFYAbZU7ZPux2J-Vewo

To claim this, I am signing this object:

@lunelson
lunelson / karabiner.json
Created September 1, 2017 12:35
Karabiner Elements Caps Lock to HYPER config
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@lunelson
lunelson / test.scss
Created April 27, 2016 13:28
true failing on use of calll()
@function foo($a,$b,$c) {
@return $a $b $c;
}
.test {
$list: 1 2 3;
out: foo(1,2,3);
out: foo($list...);
out: call(foo, $list...);
out: call(join(foo, $list)...);
@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 / SassMeister-input.scss
Created February 23, 2016 13:09
Parsing selectors out of strings...
// ----
// Sass (v4.0.0.alpha.1)
// ----
/*
SKETCHES FOR SELECTOR MANIPULATION
mixins
@mixin adjacent-to()
@lunelson
lunelson / SassMeister-input.scss
Created January 29, 2016 14:20
Generated by SassMeister.com.
// ----
// Sass (v4.0.0.alpha.1)
// MathSass (v0.9.5)
// ----
@import "math";
@function mod-scale($base, $exp, $spread) {
@return pow($base, $exp / $spread);
}
@lunelson
lunelson / SassMeister-input.scss
Last active January 28, 2016 19:15
sketches for modular margin revival, sass-alpha
// ----
// Sass (v4.0.0.alpha.1)
// ----
@mixin foo($opts: null, $bar: 1, $baz: 2, $bif: 3) {
@if $opts { @include foo($opts...); } @else {
bar: $bar;
baz: $baz;
bif: $bif;
}
@lunelson
lunelson / SassMeister-input.scss
Last active January 26, 2016 17:48
mixin option-map pattern
// ----
// Sass (v4.0.0.alpha.1)
// ----
@mixin foo($opts: null, $bar: 1, $baz: 2, $bif: 3) {
@if $opts { @include foo($opts...); } @else {
bar: $bar;
baz: $baz;
bif: $bif;
}
@lunelson
lunelson / SassMeister-input.scss
Last active October 18, 2015 17:49
workup for "sass-calc" library
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
// str-lastindex -- get last index of substr in string
@function str-last-index($str, $substr) {
$length: str-length($str);
@for $n from $length - str-length($substr) through 1 {
$index: str-index(str-slice($str, $n, $length), $substr);
@function str-last-index($string, $substr) {
$index: null;
$length: str-length($string);
@for $n from $length through 1 {
$index: str-index(str-slice($string, $n, $length), $substr);
@if $index { @return $index + $n - 1; }
}
@return $index;
}