Skip to content

Instantly share code, notes, and snippets.

View tomy0000000's full-sized avatar

Tomy Hsieh tomy0000000

View GitHub Profile
@tomy0000000
tomy0000000 / Python Combinatorics Cheat Sheet.ipynb
Created July 7, 2021 17:20
Python Combinatorics Cheat Sheet
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tomy0000000
tomy0000000 / HackMD Title Navbar
Last active July 29, 2020 02:46
HackMD Title Navbar
<!-- https://hackmd.io/@AIS3-2020 -->
<style>
:root {
--title: 'Testing Title';
--icon: url(https://ais3.org/img/AIS3logo.png);
--animation-time: 5s;
--light-rainbow-colors: #F08080, #FFA07A, #FAFAD2, #90EE90, #87CEFA, #7B68EE, #BA55D3;
--rainbow-colors: Red, Orange, Yellow, Green, Blue, BlueViolet, Navy, Purple;
--rainbow-shadow:
0 0 1px 2px red,

Keybase proof

I hereby claim:

  • I am tomy0000000 on github.
  • I am tomy0000000 (https://keybase.io/tomy0000000) on keybase.
  • I have a public key ASBrOoQkcalyM-dLfFsilpD99DlW04PlbAvfmL45ueXFKgo

To claim this, I am signing this object:

@tomy0000000
tomy0000000 / Album Listing.py
Last active March 19, 2019 15:17
iTunes API Demos
import requests
import json
Baselink = "https://itunes.apple.com/lookup"
countryDict = {"United Arab Emirates":"ae","Antigua & Barbuda":"ag","Anguilla":"ai","Armenia":"am","Argentina":"ar","Austria":"at","Australia":"au","Azerbaijan":"az","Barbados":"bb","Belgium":"be","Burkina-Faso":"bf","Bulgaria":"bg","Bahrain":"bh","Bermuda":"bm","Brunei":"bn","Bolivia":"bo","Brazil":"br","Bahamas":"bs","Botswana":"bw","Belarus":"by","Belize":"bz","Canada":"ca","Switzerland":"ch","Chile":"cl","Colombia":"co","Costa Rica":"cr","Cape Verde":"cv","Cyprus":"cy","Czech Republic":"cz","Germany":"de","Denmark":"dk","Dominica":"dm","Dominican Republic":"do","Ecuador":"ec","Estonia":"ee","Egypt":"eg","Spain":"es","Finland":"fi","Fiji":"fj","Micronesian, Federated States of":"fm","France":"fr","United Kingdom":"gb","Grenada":"gd","Ghana":"gh","Gambia":"gm","Greece":"gr","Guatemala":"gt","Guinea Bissau":"gw","Hong Kong":"hk","Honduras":"hn","Hungary":"hu","Indonesia":"id","Ireland":"ie","Israel":"il","India":"in","Italy":"it","Jorda
@tomy0000000
tomy0000000 / AST School Data Crawler.py
Created November 8, 2017 07:04
Grab School Datas from UAC
import requests
import json
import bs4
import re
link_List = input().split(" ")
link_List
Res = []
for each in link_List:
item_link = each
item_Page = requests.get(item_link)
@tomy0000000
tomy0000000 / Flickr Photo Downloader.py
Created November 8, 2017 06:49
Download Flickr Photos
import requests
import bs4
import json
apiKey = input("API Key: ")
List_of_PhotoIDs = input().split(" ")
Dict_of_Links = {}
for each in List_of_PhotoIDs:
link = "https://api.flickr.com/services/rest/"
PhotoPara = {
"method":"flickr.photos.getSizes",
@tomy0000000
tomy0000000 / Bloomberg Market Crawler.py
Created November 8, 2017 06:10
Crawl Some Data from Bloomberg
import requests
import json
Req = [
"KOSPI2:IND",
"NIFTY:IND",
"SX5E:IND",
"UKX:IND",
"NDX:IND"
]
Data = {}