This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-05-13T10:46:00.823Z","extensionVersion":"v3.4.3"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm /user/bin/python | |
ln -s /usr/bin/python3.5 /usr/bin/python |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First, temporarily add a known DNS server to your system. | |
echo "nameserver 8.8.8.8" | tee /etc/resolv.conf > /dev/null | |
Then run sudo apt-get update. | |
If this fixes your temporary resolving messages then either wait for 24 hours to see if your ISP fixes the issue for you | |
(or just contact your ISP) - or you can permanently add a DNS server to your system: | |
echo "nameserver 8.8.8.8" | sudo tee /etc/resolvconf/resolv.conf.d/base > /dev/null | |
8.8.8.8 is Google's own DNS server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'zhangzhiqiang' | |
import requests | |
import re | |
from collections import defaultdict | |
from pprint import pprint | |
from urllib.parse import quote, urlencode, urlparse, urlunparse | |
from bs4 import BeautifulSoup as bs | |
login_url = "http://vls3.zzu.edu.cn/vls2s/zzjlogin.dll/login" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Unofficial Windows Binaries for Python Extension Packages | |
http://www.lfd.uci.edu/~gohlke/pythonlibs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ubuntu | |
# add-apt-repository: command not found | |
# 查看Ubuntu版本 | |
cat /etc/issue | |
# For Ubuntu 14.04 or 16.04 you need another package: | |
apt-get install software-properties-common | |
# If you are using an older release of Ubuntu, ie before 12.10, it is necessary to install the package python-software-properties | |
sudo apt-get install python-software-properties | |
add-apt-repository ppa:webupd8team/java |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PS1="\u@\h:# " | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int getSum(int a, int b) { | |
int sum = a; | |
while (b != 0) | |
{ | |
sum = a ^ b;//calculate sum of a and b without thinking the carry | |
b = (a & b) << 1;//calculate the carry | |
a = sum;//add sum(without carry) and carry | |
} | |
return sum; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://eli.thegreenplace.net/ |
NewerOlder