Skip to content

Instantly share code, notes, and snippets.

View nex3's full-sized avatar

Natalie Weizenbaum nex3

View GitHub Profile
@nex3
nex3 / input.scss
Created February 18, 2021 23:58 — forked from umairhm/input.scss
Generated by SassMeister.com.
@mixin some-component-a {
.some-component {
display: inline;
body[lang='fr'] & div {
display: flex;
}
& div {
display: block;
@mixin clearfix {
*zoom: 1;
&:after {
content: "";
display: table;
clear: both;
}
}
@mixin generate-grid($cols, $width) {
@nex3
nex3 / splitcube.tsv
Created October 23, 2012 08:23 — forked from pfirpfel/splitcube.tsv
pfirpfel's splitcard-cube as tab-sepeerated list
Tundra Mirrorweave
Underground Sea Undermine
Badlands Blightning
Taiga Artifact Mutation
Savannah Aura Mutation
Scrubland Zealous Persecution
Volcanic Island Prophetic Bolt
Bayou Maelstrom Pulse
Tropical Island Aether Mutation
Plateau Master Warcraft
%ul
%li #{link_to "Home", root_path} |
%li #{link_to "Foo", foo_path} |
%li= link_to "Blog", blog_path
$dark-button-style:
hover-border #abcdef,
hover-background #abcdef,
hover-text #abcdef,
hover-text-shadow #abcdef,
hover-gradient-1 #abcdef,
hover-gradient-2 #abcdef;
$light-button-style:
hover-border #abcdef,
@nex3
nex3 / out.css
Created January 31, 2011 23:52 — forked from tj/out.css
body {
foo: bottom;
foo: right;
foo: bottom right;
}
%ul
%li #{link_to "Link", "#"},
%li #{link_to "Link", "#"},
%li= link_to "Link", "#"
border: 1px solid !border_default
%p
Here is
%a{:href => 'http://www.example.com'}<
a link
\. Why won't the period fall right after the word 'link'? I can get it to work
%a{:href => 'http://www.example.com'}><
like this
, but now there's no space between the word 'work' and the link. And, for an example in Rails, here is
= link_to 'another link', 'http://www.example.com'
\. I'm not sure how to get the
@nex3
nex3 / bench.rb
Created October 11, 2009 20:25 — forked from alexch/bench.rb
#!/usr/bin/env ruby
# Alex's changes:
# * erector and erector_mixin
# * each template now includes a loop and a variable (this affects HAML quite a lot)
# * automated comparison and benchmarking
# * make sure variable is truly being interpolated
# # of iterations = 10000
# user system total real