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
| :: See also "set-background-color.bat". | |
| :: Sometimes, when you're using the best performance settings, with no shadows under icon labels, | |
| :: it's important to specify the solid background-color too, to display the contrast color for the icon labels. | |
| :: If your primary wallpaper color is dark, set the solid color to black (000000). When it's light -- set solid color to white (ffffff). | |
| @echo off | |
| if [%1]==[] ( | |
| echo USAGE: set-wallpaper.bat [full/path/to/filename.jpg] | |
| exit |
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
| // This is replacement for regular localStorage or sessionStorage objects, | |
| // if they blocked by some paranoiac browser, like Brave with default settings.... | |
| var expireStorage = { | |
| length: function() { | |
| return data.length; | |
| }, | |
| key: function(key) { | |
| return Object.keys(data)[key]; | |
| }, |
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
| // The unicode-safe ucwords() func for JS (to capitalize the first characters of words), | |
| // which additionally respects double-lastnames like Russian Засс-Ранцев and weird French names, | |
| // like Honoré de Balzac and d'Artagnan. | |
| String.prototype.ucwords = function() { | |
| return this.toLowerCase() | |
| .replace(/(^|\s|\-)[^\s$]/g, function(m) { | |
| return m.toUpperCase(); | |
| }) | |
| // French, Arabic and some noble names... |
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
| <style> | |
| /* Original idea of styling peeped at https://codersblock.com/blog/checkbox-trickery-with-css/ */ | |
| input[type="checkbox"], | |
| input[type="radio"] { | |
| position: absolute; | |
| left: -9999px; | |
| } | |
| .check-label, |
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
| /* This code make for Ukrainian language only. | |
| Перетвоює пару В-У в строках відповідно до правила милозвучності української мови. | |
| Перетворює «в» на «у» чи навпаки, залежно від контексту (наявності голосних-приголосних поруч). | |
| Фаворит Експертів в номінації --> Фаворит Експертів у номінації | |
| Фаворит Успіху у номінації --> Фаворит Успіху в номінації | |
| */ | |
| function mielophone($s, $l = false) { | |
| global $lang; | |
| if (!$l) $l = $lang; |
NewerOlder