View git-pull-all.ps1
This file contains 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
foreach ($x in (Get-ChildItem -Directory)) { git -C $x pull } |
View git-pull-all.bat
This file contains 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
for /d %%x in (*) do git -C %%x pull |
View index.html
This file contains 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
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<link rel="shortcut icon" href="https://static.xx.fbcdn.net/rsrc.php/yz/r/KFyVIAWzntM.ico"> | |
<title>Facebook - 登入或註冊(教學用)</title> | |
<style media="screen"> | |
:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","S |
View data.json
This file contains 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
{"sid":"17791","order":"1","proxydist":"北投區","proxyname":"臺北市北投區健康服務中心","proxyaddress":"石牌路2段111號1樓","lat":"25.118148317061138","lng":"121.51723390366662"},{"sid":"17792","order":"2","proxydist":"內湖區","proxyname":"臺北市內湖區健康服務中心","proxyaddress":"民權東路6段99號1樓","lat":"25.069264418585334","lng":"121.58887522693406"},{"sid":"17793","order":"3","proxydist":"士林區","proxyname":"臺北市士林區健康服務中心","proxyaddress":"中正路439號1樓","lat":"25.092881348908755","lng":"121.51965037114232"},{"sid":"17794","order":"4","proxydist":"北投區","proxyname":"大同之家","proxyaddress":"東昇路12巷4號","lat":"25.14617909927703","lng":"121.52301168243878"},{"sid":"17795","order":"5","proxydist":"內湖區","proxyname":"臺北市政府社會局內湖老人服務中心","proxyaddress":"康樂街110巷16弄20號5樓","lat":"25.070411734364143","lng":"121.61834135936233"},{"sid":"17796","order":"6","proxydist":"中山區","proxyname":"台北市圓山新城社區管理委員會","proxyaddress":"通北街65巷2弄2號1樓","lat":"25.082956817069647","lng":"121.5397514715611"},{"sid":"17797","order":"7","proxydist":"中山區","proxyname":"台北市興安華城社區管理委員會","proxyaddress":"民生 |
View 5Lines.py
This file contains 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
import turtle as t | |
for i in range(50): | |
t.left(50) | |
t.fd(90) | |
t.left(180) |
View stringlength.py
This file contains 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
def str_len(str): | |
try: | |
row_l=len(str) | |
utf8_l=len(str.encode('utf-8')) | |
return (utf8_l-row_l)/2+row_l | |
except: | |
return None | |
s = "中文+English" | |
print(len(s)) |
View Scraping-Dynamic-Site.py
This file contains 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
import time | |
from selenium import webdriver | |
from bs4 import BeautifulSoup | |
driver = webdriver.Chrome() | |
url = "https://tw.sports.yahoo.com/" #specific download url | |
driver.get(url) | |
time.sleep(5) #wait until page load finish | |
soup = BeautifulSoup(driver.page_source,'html.parser') | |
for content in soup.find_all('h3', {'class': 'M(0)'}): |
View wifi-password.bat
This file contains 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
for /f "skip=9 tokens=1,2 delims=:" %%i in ('netsh wlan show profiles') do @echo%%j | findstr -i -v echo | netsh wlan show profiles %%j key=clear |
View ptxauth.py
This file contains 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
#https://ptx.transportdata.tw/PTX/ | |
from hashlib import sha1 | |
import hmac | |
from wsgiref.handlers import format_date_time | |
from datetime import datetime,date | |
from time import mktime | |
import base64 | |
from requests import request | |
from pprint import pprint | |
import json |
NewerOlder