Skip to content

Instantly share code, notes, and snippets.

View songron's full-sized avatar

Song songron

View GitHub Profile
@tatsumoto-ren
tatsumoto-ren / subs.md
Last active November 19, 2024 14:54
Japanese Subtitles

📓 Table of Contents 📚 Resources ✉️ Chat


kitsunekko.net jp subtitles

A large repository of japanese subtitles that is updated reasonably often and has a clean design.| The most popular one, you can upload your own subs.| Often have to be retimed.

@yzhangcs
yzhangcs / full2half.py
Last active November 17, 2024 05:01
Convert full-width characters to half-width ones.
# -*- coding: utf-8 -*-
import argparse
import unicodedata
# FF00-FF5F -> 0020-007E
MAP = {' ': ' ', '!': '!', '"': '"', '#': '#', '$': '$', '%': '%', '&': '&',
''': "'", '(': '(', ')': ')', '*': '*', '+': '+', ',': ',', '-': '-',
'.': '.', '/': '/',
'0': '0', '1': '1', '2': '2', '3': '3', '4': '4', '5': '5', '6': '6',
// Copyright (c) 2013 Peking University.
// Author: Xiaosong Rong ([email protected])
//
// LeetCode template for coding and testing
#include <iostream>
#include <string>
#include <vector>
#include <stack>
using namespace std;