#:via: hdtw-lib:config-util-pmb/pulseaudio/
#:web: https://gist.github.com/mk-pmb/2296fc95463d332b7c4d0c500be6864d
This file contains hidden or 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
| /* For browsers that don't understand import statements, the | |
| `preferDynamicImport` transform replaces them with dynamic import. | |
| The pseudo-code transpiler rule below explains the strategy. | |
| It's unrealistic to aim for that level of correctness with regexps, | |
| and in this project, simplicity wins over perfect accuracy. (If you | |
| want correctness, use babel.) | |
| Nonetheless, it' still useful to have a clear concept of what the | |
| theoretically ideal goal would be, to ensure a clear understanding |
This file contains hidden or 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 | |
| # -*- coding: utf-8, tab-width: 2 -*- | |
| function file_repl () { | |
| export LANG{,UAGE}=en_US.UTF-8 # make error messages search engine-friendly | |
| local SELFPATH="$(readlink -m -- "$BASH_SOURCE"/..)" | |
| cd -- "$SELFPATH" || return $? | |
| local BFN="$FUNCNAME.$(printf '%(%y%m%d-%H%M%S)T' -1)-$$" | |
| local DEFAULT_SCAN_INTV=10 |
This file contains hidden or 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
| console.log('This is a template for easily releasing example code as free software via gist.'); |
This file contains hidden or 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/perl | |
| # -*- coding: UTF-8, tab-width: 2 -*- | |
| # Origin: https://gist.github.com/mk-pmb/b8a32f005d507ae07733c9ccbcd7340f | |
| # License: CC-0 | |
| use strict; | |
| use warnings; | |
| use Data::Dumper; | |
| use HTML::Entities; # Not shipping in default Ubuntu :-( |
This file contains hidden or 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
| { "id": "urn:uuid:fbe641ee-6631-455f-9556-a20cb56c0052", | |
| "dc:title": "Red dress", | |
| "target": { | |
| "scope": "https://digi.ub.uni-heidelberg.de/diglit/cpg389/0055", | |
| "source": "https://digi.ub.uni-heidelberg.de/diglit/cpg389/0055/_image", | |
| "selector": { | |
| "type": "SvgSelector", | |
| "value": "<svg xmlns='http://www.w3.org/2000/svg' width='3000'><rect x='1800' y='3830' width='780' height='332' /></svg>" | |
| } | |
| }, |
This file contains hidden or 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
| // -*- coding: utf-8, tab-width: 2 -*- | |
| // https://github.com/mk-pmb/is-error-js/issues/5 | |
| const isError = require('is-error'); | |
| const FakeError = function() { | |
| this[Symbol.toStringTag] = 'Error'; | |
| }; |
This file contains hidden or 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
| +## BEGIN PATCHZONE search_external_id ################################## | |
| search --set=extroot --file /boot/external.id | |
| +## ................................................... (filler bytes) ## | |
| +## ENDOF PATCHZONE search_external_id ################################## | |
| +## BEGIN PATCHZONE config_external_cfg ################################# | |
| configfile ($extroot)/boot/grub/external.cfg | |
| +## ................................................... (filler bytes) ## | |
| +## ENDOF PATCHZONE config_external_cfg ################################# |
NewerOlder