@版本 2.0.0
譯注:此翻譯版,主要給不能流利的讀英文的人看,相關專有名詞還是保留原文。翻譯不好地方請協助pull request.
此repository包含了一些前端開發的面試問題,來審查一個有潛力的面試者。這並不是建議你對同一個面試者問上所有的問 (那會花費好幾小時)。從列表中挑幾個題目,應該就夠幫助你審查面試者是否擁有你需要的技能。
Rebecca Murphey 的 Baseline For Front-End Developers 也是一篇很棒且值得讀的文章在你開始面試之前。
| """ | |
| Simple view decorator for flask and mongoengine/pymongo to auto-retry with delay on | |
| pymongo.errors.AutoReconnect exception. | |
| """ | |
| from functools import wraps | |
| import time | |
| from pymongo.errors import AutoReconnect | |
| import flask |
| """ | |
| Graceful Stopper | |
| =================== | |
| Tool to stop a TCPServer (or HTTPServer) in a graceful manner (when the all | |
| currently running work is done). This script works either for forked servers or | |
| single-process servers. | |
| The graceful-stop process can be triggered by sending `SIGHUP` to server (in a | |
| forked environment, sending SIGHUP to master server, propagates to all | |
| children). Server immediately releases the listening socket (so another server |
@版本 2.0.0
譯注:此翻譯版,主要給不能流利的讀英文的人看,相關專有名詞還是保留原文。翻譯不好地方請協助pull request.
此repository包含了一些前端開發的面試問題,來審查一個有潛力的面試者。這並不是建議你對同一個面試者問上所有的問 (那會花費好幾小時)。從列表中挑幾個題目,應該就夠幫助你審查面試者是否擁有你需要的技能。
Rebecca Murphey 的 Baseline For Front-End Developers 也是一篇很棒且值得讀的文章在你開始面試之前。
| -- Two dashes start a one-line comment. | |
| --[[ | |
| Adding two ['s and ]'s makes it a | |
| multi-line comment. | |
| --]] | |
| ---------------------------------------------------- | |
| -- 1. Variables and flow control. | |
| ---------------------------------------------------- |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| import BaseHTTPServer | |
| from SimpleHTTPServer import SimpleHTTPRequestHandler | |
| import sys | |
| import base64 | |
| key = "" | |
| class AuthHandler(SimpleHTTPRequestHandler): | |
| ''' Main class to present webpages and authentication. ''' | |
| def do_HEAD(self): |
| -- phpMyAdmin SQL Dump | |
| -- version 2.10.3 | |
| -- http://www.phpmyadmin.net | |
| -- | |
| -- 主機: localhost | |
| -- 建立日期: Mar 12, 2013, 03:16 PM | |
| -- 伺服器版本: 5.0.51 | |
| -- PHP 版本: 5.2.6 | |
| SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; |
This is my personal guide to restore my configuration and setup my system for a fresh install. I use it and keep it updated frequently. Hope it will inspire you on your own way =].
Before a fresh reinstall, don't forget to backup many things. A regular ghost made with CarbonCopyCloner or Clonezilla is a good solution, but if you can't, you should save the following: