Skip to content

Instantly share code, notes, and snippets.

View LilyStoney's full-sized avatar
😴
とても眠いよ・・・

Lily Stoney LilyStoney

😴
とても眠いよ・・・
View GitHub Profile
@LilyStoney
LilyStoney / alias_matchers.md
Created September 7, 2021 09:55 — forked from JunichiIto/alias_matchers.md
List of alias matchers in RSpec 3

This list is based on aliases_spec.rb.

You can see also Module: RSpec::Matchers API.

matcher aliased to description
a_truthy_value be_truthy a truthy value
a_falsey_value be_falsey a falsey value
be_falsy be_falsey be falsy
a_falsy_value be_falsey a falsy value
@LilyStoney
LilyStoney / SCSS.md
Created August 11, 2020 16:29 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

@LilyStoney
LilyStoney / CONDTIONALS
Created May 15, 2020 15:28 — forked from alptugan/CONDTIONALS
Sonic Pi Cheat Sheet
So, let’s flip a coin: if it’s heads, play a drum, if it’s tails, play a cymbal. Easy. We can emulate a coin flip with our one_in function (introduced in the section on randomness) specifying a probability of 1 in 2: one_in(2). We can then use the result of this to decide between two pieces of code, the code to play the drum and the code to play the cymbal:
loop do
if one_in(2)
sample :drum_heavy_kick
else
sample :drum_cymbal_closed
end
### Keybase proof
I hereby claim:
* I am lilystoney on github.
* I am lilys (https://keybase.io/lilys) on keybase.
* I have a public key ASC3IAnDUh_4ntFPwOJXXjvct9KQnnrfjgRpOXzuCyrcHgo
To claim this, I am signing this object:
### Keybase proof
I hereby claim:
* I am lilystoney on github.
* I am lilys (https://keybase.io/lilys) on keybase.
* I have a public key ASC3IAnDUh_4ntFPwOJXXjvct9KQnnrfjgRpOXzuCyrcHgo
To claim this, I am signing this object: