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/env bash | |
| # Detect active Sway outputs and generate a left-to-right output configuration. | |
| # Requires: bash, jq, swaymsg. Run from inside an active Sway session. | |
| set -Eeuo pipefail | |
| usage() { | |
| cat <<'USAGE' | |
| Usage: | |
| sway-output-layout [--write [FILE]] [--internal NAME] [--external-order NAME,NAME] |
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
| export const DEFAULT_SETTINGS = { | |
| coutMatiereParMetre: 2, | |
| profondeurReferenceCm: 3.5, | |
| majorationProfondeurParCm: 0.15, | |
| tauxHoraire: 45, | |
| tempsBaseMinutes: 20, | |
| minutesPar10cmPerimetre: 3, | |
| perimetreParTrancheCm: 10, | |
| fraisFinition: 1, | |
| margeCommerciale: 0.2, |
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
| PREFIX dcterms: <http://purl.org/dc/terms/> | |
| PREFIX skos: <http://www.w3.org/2004/02/skos/core#> | |
| PREFIX marcrel: <http://id.loc.gov/vocabulary/relators/> | |
| PREFIX foaf: <http://xmlns.com/foaf/0.1/> | |
| PREFIX owl: <http://www.w3.org/2002/07/owl#> | |
| SELECT distinct ?aut ?auturi | |
| WHERE { | |
| { | |
| SELECT distinct ?auturi ?aut |
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
| tint2 & | |
| /usr/lib64/xfce4/notifyd/xfce4-notifyd & | |
| xfce4-clipman & | |
| xfce4-power-manager & | |
| nm-applet & | |
| volumeicon & |
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
| javascript: | |
| (async () => { | |
| let parentType = (element,type) => { | |
| if (element.nodeName.toLowerCase() == type.toLowerCase()) { | |
| return element; | |
| } else if (element.parentElement != null) { | |
| return parentType(element.parentElement,type); | |
| } else { | |
| return false; | |
| } |
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
| javascript:(() => { | |
| prompt().split("|").map(e => { | |
| let a = document.createElement("a"); | |
| a.href = e; | |
| a.target = "_blank"; | |
| a.click(); | |
| }); | |
| })(); |
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
| javascript:(() => { | |
| const pdftk = "https://web-pdftk.herokuapp.com/?inputs="; | |
| window.location.href = pdftk+[...document.querySelectorAll(".title a")] | |
| .map(url => { | |
| url = url.href.split("/"); | |
| if (typeof url.find(component => component == "pdf") === "undefined") { | |
| url.splice(-1,0,"pdf"); | |
| } | |
| url = url.join("/"); | |
| url = encodeURIComponent(pdftk+url+"&operation=cat&options=2-end"); |