Skip to content

Instantly share code, notes, and snippets.

View yin1999's full-sized avatar
:electron:
Feel free

A1lo yin1999

:electron:
Feel free
  • Hangzhou, China
  • 23:02 (UTC +08:00)
View GitHub Profile
class Solution {
public:
int mySqrt(int x) {
int min = 0;
int max = 46340;
while (min < max) {
const int mid = (min + max) >> 1;
const int s = mid * mid;
if (s > x) {
max = mid-1;
package main
import (
"encoding/binary"
"fmt"
"log"
stdlog "log"
"math/rand"
"net"
"os"
import * as fs from "node:fs/promises";
import * as path from "node:path";
const locale = "ru";
const specHead = /^## (?:Specifications|Specification|Характеристики|Спецификации|Спецификация)$/m;
const specTail = /^##/m; // next heading
const specName = /\{\{\s*SpecName/i;
const Specifications = /\{\{\s*Specifications/i;
import * as fs from "node:fs/promises";
import * as path from "node:path";
const locale = "pt-br";
const specHead =
/^#+ (?:Specifications?|Especifcações|Espeficicações|Expecificações|Especificaçōes)$/im;
const specTail = /^##/m; // next heading
const specName = /\{\{\s*Spec[^i]/i;
const Specifications = /\{\{\s*Specifications/i;
package main
import (
"fmt"
"net"
"os"
"syscall"
"time"
"github.com/jsimonetti/rtnetlink"
package main
import (
"fmt"
"net"
"net/http"
"strings"
)
type mux struct {
@yin1999
yin1999 / whitelist.txt
Last active March 13, 2024 03:03
proxy 白名单
acm.org,
adobe.com,
aspnetcdn.com,
azureedge.net,
beego.me,
bing.com,
caomeikeyan.com,
cn.download.nvidia.com,
debian.org,
elsevier.com,