Skip to content

Instantly share code, notes, and snippets.

View gabrielecanepa's full-sized avatar
🇮🇹
in italy

Gabriele Canepa gabrielecanepa

🇮🇹
in italy
View GitHub Profile
@gabrielecanepa
gabrielecanepa / mixins.scss
Last active April 29, 2020 01:52 — forked from hofmannsven/README.md
Sass Cheatsheet
// Useful Mixins
@mixin shadow($x, $y, $blur, $color) {
box-shadow: $x $y $blur $color;
}
@mixin animate($property: all, $duration: 1s, $easing: ease) {
transition: $property $duration $easing;
}
@gabrielecanepa
gabrielecanepa / rails-http.md
Last active April 7, 2020 23:16 — forked from mlanett/rails http status codes
HTTP status code symbols in Rails

HTTP in Rails

Code Symbol About
1xx Informational
100 :continue
101 :switching_protocols
102 :processing
2xx Success
200 :ok
@gabrielecanepa
gabrielecanepa / ruby-lamdbas.md
Last active April 7, 2020 23:17 — forked from Integralist/Ruby Lambdas.md
Ruby Lambdas

Ruby Lambdas

Lambda: standard

# Creating a lambda
l = lambda { |name| "Hi #{name}!" }

# Executing the lambda
l.call("foo") # => Hi foo!