Skip to content

Instantly share code, notes, and snippets.

@Nixinova
Last active July 13, 2021 08:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nixinova/6817e82fffe85f0b33491d32ad8742eb to your computer and use it in GitHub Desktop.
Save Nixinova/6817e82fffe85f0b33491d32ad8742eb to your computer and use it in GitHub Desktop.
Linguist language ID generator
#!/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
@Nixinova
Copy link
Author

Nixinova commented Feb 6, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment