This file contains hidden or 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
comment_char % | |
escape_char / | |
LC_IDENTIFICATION | |
title "English International" | |
source "" | |
address "" | |
contact "" | |
email "" | |
tel "" |
This file contains hidden or 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 python3 | |
import json | |
import re | |
import time | |
import httpx | |
from fastapi import FastAPI, Request, HTTPException | |
from fastapi.responses import Response, StreamingResponse, JSONResponse | |
from starlette.middleware.cors import CORSMiddleware |
This file contains hidden or 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
#!/bin/bash | |
CURRENT=$(pwd) | |
WORKDIR=$(mktemp -d) | |
cd $WORKDIR | |
M3U8="$1" | |
NAME="$2" |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <dirent.h> | |
#include <sys/stat.h> | |
#include <string.h> | |
long count = 0; | |
int path_exists(const char *path) { | |
struct stat st; |
This file contains hidden or 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
use axum::{Router, routing::{get, post}}; | |
use axum::extract::Json; | |
use axum::response::{Response, IntoResponse}; | |
use axum::http::StatusCode; | |
use serde_json::json; | |
use serde::{Serialize, Deserialize}; | |
use tokio::sync::mpsc::{channel, Sender}; | |
use regex::Regex; | |
use tower::ServiceBuilder; | |
use tower_http::cors::{CorsLayer, Any}; |
This file contains hidden or 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
#include "BLEDevice.h" | |
#include "BLEHIDDevice.h" | |
#include "HIDTypes.h" | |
#define DEVICE_NAME "ESP32 Mouse" | |
#define BLE_MANUFACTURER "TinyUSB" | |
BLEHIDDevice* hid; | |
BLECharacteristic* input; | |
BLECharacteristic* output; |
This file contains hidden or 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
[Palette] | |
Name=Monokai Pro Spectrum | |
Foreground=#f7f1ff | |
Background=#222222 | |
Color0=#363537 | |
Color1=#fc618d | |
Color2=#7bd88f | |
Color3=#fce566 | |
Color4=#fd9353 |
This file contains hidden or 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
FILESYSTEM = "fs.img" | |
with open(FILESYSTEM, "rb") as f: | |
fs = f.read() | |
class ByteArray: | |
def __init__(self, data = b''): | |
self.data = data | |
self.read = 0 | |
def __getitem__(self, idx): |
This file contains hidden or 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
#!/bin/bash | |
parse_desktop_file() { | |
local file="$1" | |
local section="" | |
local mainexec="" | |
local mainname="" | |
while IFS= read -r line || [[ -n "$line" ]]; do |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script src="https://cdn.tailwindcss.com?plugins=forms,typography,aspect-ratio,line-clamp,container-queries"></script> | |
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-wcIxkf4k558AjM3Yz3BBFQUbk/zgIYC2R0QpeeYb+TwlBVMrlgLqwRjRtGZiK7ww" crossorigin="anonymous"> | |
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" integrity="sha384-hIoBPJpTUs74ddyc4bFZSM1TVlQDA60VBbJS0oA934VSz82sBx1X7kSx2ATBDIyd" crossorigin="anonymous"></script> | |
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous"></script> | |
</head> |
NewerOlder