mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
Prevent emoji on ProxSpace
This commit is contained in:
parent
82b3bfd936
commit
9ebfe0908f
3 changed files with 1857 additions and 1855 deletions
|
@ -10,7 +10,11 @@ EMOJI_JSON_URL = 'https://raw.githubusercontent.com/github/gemoji/master/db/emoj
|
|||
|
||||
def print_emoji(emoji_json):
|
||||
for alias in emoji_json['aliases']:
|
||||
print(' {{":{0}:", "{1}"}},'.format(alias, emoji_json['emoji']))
|
||||
print(' {{":{0}:", "{1}"}}, // {2}'.format(alias,
|
||||
|
||||
''.join('\\x{:02x}'.format(b) for b in emoji_json['emoji'].encode('utf8')),
|
||||
|
||||
emoji_json['emoji']))
|
||||
|
||||
print(
|
||||
"""#ifndef EMOJIS_H__
|
||||
|
@ -23,13 +27,12 @@ typedef struct emoji_s {
|
|||
// emoji_t array are expected to be NULL terminated
|
||||
|
||||
static emoji_t EmojiTable[] = {""")
|
||||
|
||||
with urlopen(EMOJI_JSON_URL) as conn:
|
||||
emojis_json = json.loads(conn.read().decode('utf-8'))
|
||||
for emoji_json in emojis_json:
|
||||
print_emoji(emoji_json)
|
||||
|
||||
print(
|
||||
""" {NULL, NULL}
|
||||
print(""" {NULL, NULL}
|
||||
};
|
||||
|
||||
#endif""")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue