Skip to content

Instantly share code, notes, and snippets.

View duzhuoshanwai's full-sized avatar
🎯
Learning

duzhuoshanwai

🎯
Learning
View GitHub Profile
require "open-uri"
data = []
while true
item = open("https://api.github.com/zen").read
if data.index(item) == nil
p item
data.push item
end
end
@mayufo
mayufo / 验证中国身份证 前6位对应地区码
Created January 16, 2018 10:12
验证中国身份证 前6位对应地区码
var GB2260 = {
"110000": "北京市",
"110100": "北京市市辖区",
"110101": "北京市东城区",
"110102": "北京市西城区",
"110103": "北京市崇文区",
"110104": "北京市宣武区",
"110105": "北京市朝阳区",
"110106": "北京市丰台区",
"110107": "北京市石景山区",
@bookfere
bookfere / fix-google-translate-cn.bat
Last active July 10, 2024 03:06
Fix Google Translate CN for Windows
:: Copyright (c)2022 https://bookfere.com
:: This is a batch script for fixing Google Translate and making it available
:: in the Chinese mainland. If you experience any problem, visit the page below:
:: https://bookfere.com/post/1020.html
@echo off
setlocal enabledelayedexpansion
chcp 437 >NUL
set "ips[0]=74.125.137.90"