⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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 concurrent.futures import ThreadPoolExecutor | |
from tornado.concurrent import run_on_executor, Future | |
from tornado import httpclient,ioloop,web,gen | |
import request | |
import sys | |
httpclient.AsyncHTTPClient.configure('tornado.curl_httpclient.CurlAsyncHTTPClient', max_clients=10) | |
# TODO: remove | |
class Foo(Exception): pass | |
def dot(): |
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 concurrent.futures import ThreadPoolExecutor | |
from functools import partial, wraps | |
import time | |
import tornado.ioloop | |
import tornado.web | |
EXECUTOR = ThreadPoolExecutor(max_workers=4) |
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
S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.testtestS'test'\np1\n.S'test'\np1\n.S | |
'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1 | |
\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test' | |
\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S't | |
est'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n | |
.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\n | |
p1\n.S'test'\np1\n.S'test'\np1\n. |
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 datetime import datetime | |
def format_show_time(v, start=None, end=None): | |
diff = datetime.now() - v | |
if diff.seconds < 60: | |
s = ('%s%s') % (diff.seconds, '秒前') | |
elif diff.seconds >= 60 and diff.seconds < 3600: | |
s = ('%s%s') % (diff.seconds / 60, '分钟前') | |
elif diff.seconds >= 3600 and (v > start and v < end): | |
s = ('%s%s') % ('今天', datetime.strftime(v, format='%H:%M')) |
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 random | |
def slice_remove(s, item): | |
sorted(s) | |
start = s.index(item) | |
length = s.count(item) | |
a = s[0:start] | |
b = s[start+length:] | |
a.extend(b) |
@版本 2.0.0
譯注:此翻譯版,主要給不能流利的讀英文的人看,相關專有名詞還是保留原文。翻譯不好地方請協助pull request.
此repository包含了一些前端開發的面試問題,來審查一個有潛力的面試者。這並不是建議你對同一個面試者問上所有的問 (那會花費好幾小時)。從列表中挑幾個題目,應該就夠幫助你審查面試者是否擁有你需要的技能。
Rebecca Murphey 的 Baseline For Front-End Developers 也是一篇很棒且值得讀的文章在你開始面試之前。
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> | |
<title>Testing.</title> | |
<link href="http://bootstrap.my.com/assets/css/bootstrap.css" rel="stylesheet"> | |
<link rel="stylesheet" type="text/css" href="flippant.css"> | |
<style type="text/css"> | |
.container { margin-top: 2em; } | |
h1 span { | |
animation: flipper 3s ease-in 4s infinite; |
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 datetime | |
def get_week(): | |
today = datetime.date.today() | |
month = today.month | |
year = today.year | |
day = today.day | |
weekday = today.weekday() | |
start = today + datetime.timedelta(0-weekday) |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.