Skip to content

Instantly share code, notes, and snippets.

View EndlessCheng's full-sized avatar

灵茶山艾府 EndlessCheng

View GitHub Profile
EndlessCheng /
Created July 30, 2023 23:15 — forked from StevenACoffman/
Unicode Look-alikes

Unicode Character Look-Alikes

Original Letter Look-Alike(s)
a а ạ ą ä à á ą
c с ƈ ċ
d ԁ ɗ
e е ẹ ė é è
g ġ
h һ
EndlessCheng / main.cpp
Last active August 29, 2020 03:23
C++ mock test for competitive programming
#include <bits/stdc++.h>
using namespace std;
void run(istream &in, ostream &out) {
// write your code here
int x;
while (in >> x) {
out << x * 2 << '\n';
func openbrowser(url string) {
var err error
switch runtime.GOOS {
case "linux":
err = exec.Command("xdg-open", url).Start()
case "windows":
err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start()
case "darwin":
err = exec.Command("open", url).Start()