This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$_base: "abcdefghijklmnopqrstuvwxyz"; | |
@function power ($x, $n) { | |
@if $n == 0 { | |
@return 1; | |
} | |
$ret: 1; | |
@if $n >= 0 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var spawn = require('child_process').spawn; | |
var tinylr = require('tiny-lr')(); | |
var jekyllPid; | |
function notifyLiveReload(event) { | |
var fileName = require('path').relative(__dirname, event.path); | |
tinylr.changed({ | |
body: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@function mapReverse ($map) { | |
$result: null; | |
@if type-of($map) == "map" { | |
$keys: map-keys($map); | |
$map-reversed: (); | |
@for $i from length($keys) through 1 { | |
$map-reversed: map-merge( | |
$map-reversed, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="foo-1"></div> | |
<div class="foo-2"></div> | |
<div class="foo-3"></div> | |
<div class="foo-4"></div> | |
<div class="foo-5"></div> | |
<div class="foo-6"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test | |
<hr /> | |
test | |
<hr class="test" /> | |
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ported from Bourbon's Flexbox mixins: https://github.com/thoughtbot/bourbon | |
.display-box { | |
display: -webkit-box; | |
display: -moz-box; | |
display: -ms-flexbox; // IE 10 | |
display: box; | |
} | |
// Custom shorthand notation for flexbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="test"> | |
<div class="col-xs-5th"></div> | |
<div class="col-xs-5th"></div> | |
<div class="col-xs-5th"></div> | |
<div class="col-xs-5th"></div> | |
<div class="col-xs-5th"></div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
@for $i from 1 through 4 { | |
.votes li:nth-of-type(#{$i}) | |
{ | |
background: url('../bilder/keyvisual_#{$i}.png') no-repeat; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Requires the 'blueutil' utility that is installed via homebrew | |
-- | |
-- Find blueutil on GitHub: https://github.com/toy/blueutil | |
-- | |
-- Note: This will _not_ work with the original blueutil written by Frederik Seiffert | |
property blueutilPath : "/usr/local/bin/blueutil" | |
if execBlueutil("power") ends with "0" then | |
-- Toggle BT on |