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
// Jekyll Pygments syntax highlighter styles | |
// Color scheme | |
$base03: #002B36 | |
$base02: #073642 | |
$base01: #586E75 | |
$base00: #657B83 | |
$base0: #839496 | |
$base1: #93A1A1 | |
$base2: #EEE8D5 |
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
class DSU | |
def initialize(x) | |
@array = Array.new(x) {|i| i } | |
end | |
def find(x) | |
return x if @array[x] == x | |
@array[x] = find(@array[x]) | |
end |
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
// You need to be logged in on translate.unknownworlds.com in order to use this script | |
// "https://translate.unknownworlds.com/api/base-strings?project_id=9" | |
// "https://translate.unknownworlds.com/api/strings?project_id=9&language_id=5" | |
let filename = "Russian.json"; | |
let project_id = 9; | |
let language_id = 5; | |
responses = Promise.all([ | |
fetch(`/api/base-strings?project_id=${project_id}`).then(r => r.json()), |
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
KIWIX_FILES=/path/to/zim/files | |
KIWIX_PORT=2080 |