Skip to content

Instantly share code, notes, and snippets.

View Expector-Hutch's full-sized avatar
😭
不想上学啊啊啊

Expector Expector-Hutch

😭
不想上学啊啊啊
View GitHub Profile
@Expector-Hutch
Expector-Hutch / newtab.html
Last active November 24, 2024 07:27
A simple newtab
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta name="license" content="MIT">
<meta name="author" content="Expector">
<meta name="copyright" content="Copyright © 2024 Expector. All rights reserved.">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ExpNewTab</title>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def printc(*args, fg = '', bg = '', light: bool = False, style = (), sep=' ', end='\n', file=None, flush=False):
def prints(arg): return print(arg, end='', file=file, flush=flush)
def decoder(data):
if type(data) is str:
com_table = {'black': 0, 'red': 1, 'green': 2, 'yellow': 3,
'blue': 4, 'magenta': 5, 'cyan': 6, 'white': 7}
return com_table[data]
elif type(data) is int:
return f'8;5;{data}'