Last active
July 13, 2021 08:20
-
-
Save Nixinova/6817e82fffe85f0b33491d32ad8742eb to your computer and use it in GitHub Desktop.
Linguist language ID generator
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
#!/usr/bin/env ruby | |
require 'digest' | |
language = 'InsertLangHere' # replace with full lang name | |
id = Digest::SHA256.hexdigest(language).to_i(16) % (2**30 - 1) | |
puts id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use on e.g. https://repl.it/languages/ruby