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
<?xml version="1.0" encoding="iso-8859-1"?> | |
<!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by [email protected] (HaCon Ingenieurges. mbH) --> | |
<!-- ======================================================================= --> | |
<!-- location validation request/result --> | |
<!-- connection request/result --> | |
<!-- connection scroll request/result --> | |
<!-- ======================================================================= --> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> | |
<xs:element name="ReqC"> | |
<xs:annotation> |
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
module Jekyll | |
class CategoryAwarePrevNextGenerator < Generator | |
safe true | |
priority :high | |
def generate(site) | |
site.categories.each_pair do |category_name, posts| | |
posts.sort! { |a, b| a <=> b } |
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
grunt.registerMultiTask('filerevreplace', 'filerev task', function() { | |
var files = grunt.file.expand(this.files[0].src) | |
var assets = grunt.filerev.summary; | |
for (var i = 0, length = files.length; i < length; i++) { | |
var fileContent = grunt.file.read(files[i]); | |
for (var key in assets) { | |
origArr = key.split('/'); | |
origFile = origArr[origArr.length-1]; | |
revArr = assets[key].split('/'); | |
revFile = revArr[revArr.length-1]; |
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
$selectorItems: str-to-list(#{&}); | |
@each $selectorItem in $selectorItems { | |
@debug $selectorItem; | |
} |
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.4) | |
// Compass (v1.0.1) | |
// ---- | |
// | |
// use this together with modernizr feature detection | |
// | |
@mixin supports-feature($feature) { | |
.#{$feature} & { |
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
/* | |
NZZ Euro 2016 Orakel | |
http://nzz.ch/-ld.17757 | |
The algorithm | |
this works like this: |
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
license: gpl-3.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
{ | |
"width": 500, | |
"autosize": { | |
"type": "fit-x", | |
"contains": "padding" | |
}, | |
"signals": [ | |
{ | |
"name": "barWidth", | |
"value": 24 |
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 promoteTiffBufferToBlack(tiffBuffer) { | |
const ifds = UTIF.decode(tiffBuffer); | |
// tiff tag descriptions: https://www.loc.gov/preservation/digital/formats/content/tiff_tags.shtml | |
// tiff image file format: http://www.fileformat.info/format/tiff/corion.htm | |
const bitsPerSample = ifds[0].t258; | |
const stripOffsets = ifds[0].t273[0]; | |
const stripByteCounts = ifds[0].t279[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
// The standard chrome points per pixel value | |
const chromePPI = 96; | |
function mmToInch(mm) { | |
return mm / 25.4; | |
} | |
// this is NZZ print specific | |
const columnGap = 5; | |
const columnWidth = 54.2; |
OlderNewer