Skip to content

Instantly share code, notes, and snippets.

View kennyadsl's full-sized avatar
❤️
Ruby

Alberto Vena kennyadsl

❤️
Ruby
View GitHub Profile
require 'date'
data = File.read("CHANGELOG.md")
versions = []
data.scan(/## Solidus ([0-9\.]+)\.0 \(([0-9]+)-([0-9]+)-([0-9]+)\)/) do
version = $1
release_date = Date.new($2.to_i, $3.to_i, $4.to_i)
eol = [release_date >> 18, Date.new(2018, 05, 05)].max
@kennyadsl
kennyadsl / dabblet.css
Created November 29, 2015 11:48 — forked from csssecrets/dabblet.css
Flexible background positioning
/**
* Flexible background positioning
* via extended background-position
*/
div {
background: url(http://csssecrets.io/images/code-pirate.svg)
no-repeat #58a;
background-position: calc(100% - 20px) calc(100% - 10px);
@kennyadsl
kennyadsl / dabblet.css
Created November 29, 2015 10:41 — forked from anonymous/dabblet.css
Multiple borders
/**
* Multiple borders
*/
div {
width: 100px;
height: 60px;
margin: 25px;
background: yellowgreen;
border: 10px solid #655;