Skip to content

Instantly share code, notes, and snippets.

View nex3's full-sized avatar

Natalie Weizenbaum nex3

  • Google
  • Seattle
View GitHub Profile
// Imports zip.sass, zip.scss, or zip.css *nontransitively* with a "zip" prefix.
@use "zip";
// Uses the "foo" mixin from zip.
@include zip-foo;
// The prefix is now "zap".
@use "zip" as zap;
// Everything is in the global namespace.
@nex3
nex3 / susy.rb
Last active August 29, 2015 14:07
Susy in Ruby
#-s- file: /home/nweiz/src/susy/sass/susy/math/su/_maps.scss, name: nil, line: 1
def _s_import__home_nweiz_src_susy_sass_susy_math_su__maps_scss_5(_s_root, _s_env)
_s_importer = @_s_importer_0
# do nothing
# do nothing
_s_old_env_7 = _s_env
_s_env = Sass::Environment.new(_s_env)
#-s- type: function, name: _susy-truncate-list, line: 8
@_s_fn__susy_truncate_list_6 = lambda do |_s_var_list_8, _s_var_length_9|
@nex3
nex3 / SassMeister-input.sass
Created November 20, 2014 20:02
Generated by SassMeister.com.
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
a
b: 1s + 1ms
c: 1deg + 1rad
d: 1px + 1pt
e: 1kHz + 1Hz
@nex3
nex3 / SassMeister-input.sass
Created November 20, 2014 22:38
Generated by SassMeister.com.
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
a
s-to-ms: comparable(1s, 1ms)
s-to-px: comparable(1s, 1px)
import 'package:http/http.dart' as http;
import 'package:json_rpc_2/json_rpc_2' as rpc;
rpc.Client rpcOverHttp(Uri url) {
var client = new http.Client();
// This is untested and is missing some edge-case and error handling, but it
// represents the basic idea.
var requests = new StreamController();
var responses = new StreamController();
@nex3
nex3 / SassMeister-input.scss
Created January 17, 2015 03:50
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
.foo {
&:not(&--active) &__summaries:hover + &__inner {
color: blue;
}
}
@nex3
nex3 / SassMeister-input.scss
Created February 2, 2015 19:44
Generated by SassMeister.com.
// ----
// Sass (v3.4.11)
// Compass (v1.0.3)
// ----
$defaultcolour: red;
@mixin theme-page($theme) {
$colour: $defaultcolour;
@if $theme == "about" {
@nex3
nex3 / SassMeister-input.scss
Created February 2, 2015 19:45
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
$defaultcolour: red;
@mixin theme-page($theme) {
@if $theme == "about" {
$defaultcolour: blue;
= spans(!columns)
@for !column from 1 through !columns by 2 // through = .., to = ..., by = incrementor
+span(!column,!columns)
= span(!column, !columns)
.span-#{!column}
:width= 45px * !column + 15px
@if !column != !columns
:margin-right 15px
@nex3
nex3 / gist:3262
Created July 30, 2008 13:40 — forked from collin/gist:3223
$.password
:blur
if @value === ""
.hide()
// Eventually, indenting beneath something will set it as the context
.prev()
.show().val(@default_value)
.blur()