https://github.com/zencephalon/unicode-short-id-rb
Use Unicode characters to map short appearing sequential ids
https://github.com/zencephalon/unicode-short-id-rb
Last synced: 2 months ago
JSON representation
Use Unicode characters to map short appearing sequential ids
- Host: GitHub
- URL: https://github.com/zencephalon/unicode-short-id-rb
- Owner: zencephalon
- License: mit
- Created: 2017-08-21T23:59:51.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-22T00:37:59.000Z (almost 9 years ago)
- Last Synced: 2025-03-06T10:54:48.268Z (over 1 year ago)
- Language: Ruby
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Short ID
Generates IDs that look like
```
irb(main):002:0> int_to_short_id(716)
=> "aỿ"
irb(main):003:0> int_to_short_id(715)
=> "Ỿ"
irb(main):004:0> int_to_short_id(1)
=> "a"
irb(main):005:0> int_to_short_id(7435)
=> "jƖ"
irb(main):006:0> int_to_short_id(74355)
=> "éẒ"
irb(main):007:0> int_to_short_id(743556)
=> "aDžǟ"
irb(main):008:0> int_to_short_id(7435561)
=> "nǫẜ"
irb(main):009:0> int_to_short_id(74355611)
=> "ĔBȾ"
irb(main):010:0> int_to_short_id(743556111)
=> "brơĊ"
irb(main):011:0> int_to_short_id(7435561111)
=> "tĺỼẮ"
irb(main):012:0> int_to_short_id(74355611111)
=> "ōȚứẢ"
irb(main):013:0> irb(main):013:0> int_to_short_id(743556111111)
=> "bẄḦḫḪ"
irb(main):014:0> int_to_short_id(7435561111111)
=> "BœỰIs"
irb(main):015:0> int_to_short_id(74355611111111)
=> "ƝỄṩǡł"
```