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
#!/usr/bin/ruby | |
# | |
# License: Public Domain | |
line_number = 0; | |
dry_run = ARGV[1] | |
if ARGV[0].nil? || ARGV[0].empty? | |
puts "Usage: ruby urlFetcher.rb [FILE_PATH] [OPTION]" | |
puts "" |
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
<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
// 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
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
<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
#!/bin/bash | |
if [ -z "$1" ] # Check if no argument was passed | |
then | |
echo "No extension specified." | |
exit | |
fi | |
# If someone passes * as an argument it'll pass all the | |
# files in the directory as arguments, so we just need |
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
#!/bin/bash | |
for css_file in css/* | |
do | |
if [[ "$css_file" == *".min."* ]] | |
then | |
continue | |
fi | |
if [[ "$css_file" -nt "${css_file%.*}.min.css" ]] |
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
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: { |
OlderNewer