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
$("head").append("<link rel='stylesheet' id='extracss' href='https://cdn.rawgit.com/dkesberg/cc1543b56a8e36964afeb9a3a69f6669/raw/57048e794abdf5f8362a2359c893ea1604759cfd/poe-print.css' type='text/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
body, .container, .content { | |
background: none !important; | |
} | |
.header, .topBar, .botBar, .forumTable tr { | |
display: none !important; | |
} | |
.forumTable tr:first-child, | |
.forumTable tr:first-child td { | |
display: block !important; | |
background: none !important; |
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/sh | |
# Usage 1: | |
# optimize-images.sh /images/dir | |
# | |
# Usage 2: | |
# cd /images/dir | |
# optimize-images.sh | |
EXTENSIONS="jpe?g" |
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
// IE9 css can contain only up to 4095 selectors | |
// source: http://stackoverflow.com/questions/9906794/internet-explorers-css-rules-limits | |
function countCSSRules() { | |
var results = '', | |
log = ''; | |
if (!document.styleSheets) { | |
return; | |
} | |
for (var i = 0; i < document.styleSheets.length; i++) { |
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
/* | |
Foundation 5 Grid for print media | |
based on: http://foundation.zurb.com/forum/posts/2820-printing-foundation-5 | |
*/ | |
@media print { | |
.large-1 { | |
width: 8.33333%; | |
} |
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
<?php | |
function slice_equal($source, $columns) { | |
$count = count($source); | |
$perColumn = floor($count / $columns); | |
$overflow = $count % $columns; | |
// set start values | |
$sliceOffset = 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
// Based on http://www.elmastudio.de/programmierung/css/css-tipp-eingebettete-videos-fur-responsive-webdesigns-optimieren/ | |
.elastic-video { | |
position: relative; | |
padding-bottom: 55%; | |
padding-top: 15px; | |
height: 0; | |
overflow: hidden; | |
} | |
.elastic-video iframe { |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |