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
.css-1dbjc4n.r-1pi2tsx.r-1wtj0ep.r-1rnoaur.r-1pn2ns4.r-o96wvk div.css-1dbjc4n.r-xoduu5 > .css-901oao.css-16my406.r-poiln3.r-bcqeeo.r-qvutc0 > .css-901oao.css-16my406.r-poiln3.r-bcqeeo.r-qvutc0 { | |
/* display: none; */ | |
display: inline-block; | |
overflow: hidden; | |
text-indent: -9999px; | |
padding-top: 4px; | |
} | |
.css-1dbjc4n.r-1pi2tsx.r-1wtj0ep.r-1rnoaur.r-1pn2ns4.r-o96wvk div.css-1dbjc4n.r-xoduu5 > .css-901oao.css-16my406.r-poiln3.r-bcqeeo.r-qvutc0 > .css-901oao.css-16my406.r-poiln3.r-bcqeeo.r-qvutc0::before { | |
content: "推文"; |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>CodePen - Simple timeline with CSS</title> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<div id="box"> | |
<div id="check-left-line"></div> |
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
score_board = {} | |
while True: | |
k = input() | |
if k=="DATA_INPUT_END": | |
break | |
k = k.split() | |
score_board[k[0]] = k[1] | |
while True: | |
k = input() | |
if k=="END": |
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
n = int(input()) | |
score = {} | |
for _ in range(n): | |
name, status = input().split() | |
if status == "AC": | |
if name in score: | |
score[name] += 1 | |
else: | |
score[name] = 1 | |
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
n = int(input()) | |
dic = {} | |
for _ in range(n): | |
inputs = input().split() | |
op = int(inputs[0]) | |
if op == 1: | |
nickname = inputs[1] | |
if nickname in dic: | |
dic[nickname] += 1 | |
else: |
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
from bs4 import BeautifulSoup as Soup | |
from requests import get as GET, post as POST | |
parse_cookie = lambda cookies: dict(map(lambda x: x.split('='), map(lambda x: x.replace(' ', ''), cookies.split(';')))) | |
COOKIE_STRING = "" | |
REQARGS = {'cookies': parse_cookie(COOKIE_STRING), 'headers': {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36'}} | |
class Post: | |
def react(self, name): |
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 config | |
def getCellsAbsolutePosition(piece): | |
'''取得方塊當前所有方格的座標''' | |
return [(y + piece.y, x + piece.x) for y, x in piece.getCells()] | |
def fixPiece(shot, piece): | |
'''固定已落地的方塊,並且在main中自動切到下一個方塊''' |
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 config | |
def getCellsAbsolutePosition(piece): | |
'''取得方塊當前所有方格的座標''' | |
return [(y + piece.y, x + piece.x) for y, x in piece.getCells()] | |
def printPiece(shot, piece): | |
print('目前方塊:', getCellsAbsolutePosition(piece)) | |
### Let's practice NOW! |
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
-- This exercise covers the first 6 chapters of "Learn You a Haskell for Great Good!" | |
-- Chapter 1 - http://learnyouahaskell.com/introduction | |
-- Chapter 2 - http://learnyouahaskell.com/starting-out | |
-- Chapter 3 - http://learnyouahaskell.com/types-and-typeclasses | |
-- Chapter 4 - http://learnyouahaskell.com/syntax-in-functions | |
-- Chapter 5 - http://learnyouahaskell.com/recursion | |
-- Chapter 6 - http://learnyouahaskell.com/higher-order-functions | |
-- Download this file and then type ":l Chapter-1-6.hs" in GHCi to load this exercise |
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
<div id="stars"></div> | |
<div id="stars2"></div> | |
<div id="stars3"></div> | |
<div id="main"> | |
<h1>HITCON CMT 2017 Interperter Service</h1> | |
<h2><a href="http://interpreter.hitcon.org:8000/r0">R0</a></h2> | |
<h2><a href="http://interpreter.hitcon.org:8000/r1">R1</a></h2> | |
<h2><a href="http://interpreter.hitcon.org:8000/r2">R2</a></h2> | |
</div> |
NewerOlder