Skip to content

Instantly share code, notes, and snippets.

View zhangolve's full-sized avatar
💭
working

zhangolve zhangolve

💭
working
  • 北京
View GitHub Profile
#EXTM3U
#EXTINF:-1 ,【阿梅】大片经典
http://103.140.229.13/BOBO/bibi.php?id=127343
#EXTINF:-1 ,【大秦帝国】:秦武安
http://103.140.229.13/BOBO/bibi.php?id=11259274
#EXTINF:-1 ,【怀旧影视】国语专场
http://103.140.229.13/BOBO/bibi.php?id=8199817
#EXTINF:-1 ,【烧包谷】树莓派不断电少儿
http://103.140.229.13/BOBO/bibi.php?id=5977175
#EXTINF:-1 ,【伪装者】
@zhangolve
zhangolve / random.js
Created September 3, 2019 02:19
get random number
// import { isNumber } from "util";
const readline = require('readline');
// input
function random(x,y) {
if(!x || !y) {
console.log('please input INT numbers !!');
} else if ( (x-y)>0){
console.log('x must smaller or equal with y')
}else {
return Math.random() * (y-x) + x;
@zhangolve
zhangolve / hosts
Created March 21, 2019 07:18
hosts
127.0.0.1 localhost
127.0.1.1 zhangxingwang-N85-N87-HJ-HJ1-HK1
0.0.0.0 account.jetbrains.com
13.229.188.59 github.com
127.0.0.1 vop.lijiababy.com.cn
# 127.0.0.1 www.lijiababy.com.cn
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
@zhangolve
zhangolve / .zshrc
Created March 21, 2019 06:55
.zshrc
alias zshconfig="sudo vim ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"alias ll='ls -alF'
alias la='ls -A'
#alias l='ls -CF'
alias ljmall='cd ~/Desktop/honovation/ljmall'
alias ljdd='psql -h 127.0.0.1 -U veil ljmall'
alias tunnel='veil tunnel-to ljmall-public--2 ljhost-01.dmright.com'
alias gits='git status'
alias ssstart='sudo sslocal -c /etc/shadowsock.json -d start'
alias ssrestart='sudo sslocal -c /etc/shadowsock.json -d restart'
"""Utility functions."""
import sys
import os
import base64
import json
import hashlib
try:
from collections import OrderedDict
except ImportError:
@zhangolve
zhangolve / ubuntu-source-list
Last active March 15, 2019 06:59
ubuntu-source-list /etc/apt/sources.list
deb https://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@zhangolve
zhangolve / 262-Trips-and-Users.sql
Last active July 16, 2018 14:42
leetcode code gist
# Write your MySQL query statement below
select all_trips.Day,ct.cancel_purchase,all_trips.all_purchase, case when ct.cancel_purchase then round(ct.cancel_purchase/all_trips.all_purchase,2) else 0.0 end as 'Cancellation Rate' from
(select count(*) as 'all_purchase', Request_at as Day from Trips group by Request_at) as all_trips
left join
(select count(*) as 'cancel_purchase', Request_at as Day from Trips where Status!='completed' group by Request_at) ct
on all_trips.Day=ct.Day
order by Day
<a href="http://baidu.com" target="_blank">http://baidu.com</a>
@zhangolve
zhangolve / index.html
Created March 17, 2017 03:28
the very easy way to show the event bubble 事件冒泡
<!Doctype html>
<html>
<title>
the very easy way to show the event bubble
</title>
<body>
<div id="button">
<button id="1">1</button>
<button id="2">2</button>
<button id="3">3</button>