Skip to content

Instantly share code, notes, and snippets.

Avatar

Torkil Johnsen torkiljohnsen

View GitHub Profile
View Trooper
Luke is dead! ,ooo888888888888888oooo,
o8888YYYYYY77iiiiooo8888888o
8888YYYY77iiYY8888888888888888
[88YYY77iiY88888888888888888888]
88YY7iYY888888888888888888888888
[88YYi 88888888888888888888888888]
i88Yo8888888888888888888888888888i
i] ^^^88888888^^^ o [i
oi8 i o8o i 8io
,77788o ^^ ,oooo8888888ooo, ^ o88777,
@torkiljohnsen
torkiljohnsen / SassMeister-input.scss
Created Dec 15, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
// sRGB GAMMA CORRECTION, per spec: https://en.wikipedia.org/wiki/SRGB
@function re-gamma($n) { @if $n <= 0.0031308 { @return $n * 12.92; } @else { @return 1.055 * pow($n,1/2.4) - 0.055; } }
@function de-gamma($n) { @if $n <= 0.04045 { @return $n / 12.92; } @else { @return pow((($n + 0.055)/1.055),2.4); } }
// sRGB BT-709 BRIGHTNESS
@torkiljohnsen
torkiljohnsen / _nav--horizontal.scss
Last active Dec 14, 2015
Example of the issue at hand: .nav gets imported multiple times
View _nav--horizontal.scss
@import 'nav'; // "Extending" .nav
.nav--horizontal {
/* horizontal nav is a variant of nav */
}
@torkiljohnsen
torkiljohnsen / dabblet.css
Created Sep 24, 2012
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
section {
background: gray;
max-width: 700px;
display: flex;
flex-flow: row wrap;
}
@torkiljohnsen
torkiljohnsen / vendors.php
Created Jan 22, 2012 — forked from mathiasverraes/deps.ini
vendors script, replaces git submodules and svn externals
View vendors.php
#!/usr/bin/env php
<?php
/*
* Custom version of Symfony2's vendor script
* Put this file in /bin and make a deps.ini file in the root, looking like this:
*
* [some_name]
* git=REPO
* target=path/to/vendor/name
* version=COMMITISH