Skip to content

Instantly share code, notes, and snippets.

View song940's full-sized avatar
👨‍💻
Typing ...

Lsong song940

👨‍💻
Typing ...
View GitHub Profile
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from socket import *
import threading
lock = threading.Lock()
openNum = 0
threads = []
def portScanner(host,port):
const add = (a, b) => {
a = a.split('').reverse();
b = b.split('').reverse();
let a1, b1, c, d = 0, e, i = 0;
do {
a1 = +a[i] || 0;
b1 = +b[i] || 0;
c = a1 + b1 + d;
d = c / 10 | 0;
e = c % 10;
@song940
song940 / git.js
Last active February 9, 2022 07:12
// https://kushagra.dev/blog/build-git-learn-git/
function Git(name) {
this.name = name;
this.lastCommitId = -1;
this.branches = [];
const master = new Branch("master", null);
this.branches.push(master);
this.HEAD = master;
}
This file has been truncated, but you can view the full file.
[
{
"id": "287947",
"title": "Shazam!",
"poster": "https://image.tmdb.org/t/p/w1280/xnopI5Xtky18MPhK40cZAGAOVeV.jpg",
"overview": "A boy is given the ability to become an adult superhero in times of need with a single magic word.",
"release_date": 1553299200
},
{
"id": "299537",
[
"有趣的地方都想去​|比如你的世界",
"我想在你那里买一块地|买什么地?|买你的死心塌地",
"你知道你和星星有什么区别吗?|星星在天上|而你在我心里",
"我十拿九稳|就只差你一吻了",
"可爱不是长久之计|可爱我是",
"小猪佩奇|你配我",
"有谣言说我喜欢你|我澄清一下|那不是谣言",
"只许州官放火|不许…|不许你离开我",
"你昨天晚上应该很累吧|因为你在我梦里一直跑个不停",
#!/bin/sh
# https://openwrt.org/docs/guide-developer/build-system/buildroot.exigence.macosx
brew install coreutils findutils gawk grep gnu-getopt gnu-tar wget diffutils git-extras quilt make ncurses pkg-config
PATH="/usr/local/opt/make/libexec/gnubin:$PATH"
PATH="/usr/local/opt/gnu-getopt/bin:$PATH"
PATH="/usr/local/opt/gettext/bin:$PATH"
PATH="/usr/local/opt/coreutils/bin:$PATH"
const getRandomColor = () =>
'#' + parseInt(Math.random() * 0xffffff).toString(16);
const px = size => `${size}px`;
const timings = performance
.getEntries()
.filter(timing => timing.initiatorType === 'img')
.reduce((images, img) => {
images[img.name] = img;
/* v1.2.25,1.2.26,0.5 2018-09-19 10:28:22 */ ! function() {
function cond() {
return Math.random()
}
function chkQuerySet() {
var n, e = window[QUERY_KEY];
return isNaN(e) ? (n = location.href.split(QUERY_KEY + "=")[1], e = parseFloat(n), void(isNaN(e) || (GREY_RATIO = e))) : void(GREY_RATIO = e)
}
var GREY_RATIO = .5,
[
{
"id": "1",
"title": "月亮",
"artist": "骆一禾",
"content": "世界,一半黑着,一半亮着|^n|事件堆起来了。那些流血的事实|^n|城于年,日夜流着|^n|是一些平滑的消息|^n|使人们无所不知|^n|黑的一半|^n|陈列着挑灯的街巷|^n|月亮虽也照亮厚实的尘土,光辉|^n|却遍地遗失。月亮陈旧|^n|在隐没的蓝瓦上仍着、光着、贫穷者|^n|象一些碳块上画下的皮肤|^n|暗暗地红黄着|^n|头戴半只黑盔,对秃海上的甲板|^n|露着树枝|^n|地面上的活人|^n|不知你为何思想|^n|世界,你这借自神明的台阶|^n|下行着多少大国|^n|和它们开发过度的人性与地方|^n|只有月亮|^n|在门边向着那健康的丛林|^n|为我们谢罪"
},
{
"id": "10",
"title": "神秘",
{
"1": "可回收物",
"2": "有害垃圾",
"3": "湿垃圾",
"4": "干垃圾"
}