@版本 2.0.0
譯注:此翻譯版,主要給不能流利的讀英文的人看,相關專有名詞還是保留原文。翻譯不好地方請協助pull request.
此repository包含了一些前端開發的面試問題,來審查一個有潛力的面試者。這並不是建議你對同一個面試者問上所有的問 (那會花費好幾小時)。從列表中挑幾個題目,應該就夠幫助你審查面試者是否擁有你需要的技能。
Rebecca Murphey 的 Baseline For Front-End Developers 也是一篇很棒且值得讀的文章在你開始面試之前。
| // MARK: - UIImage (Base64 Encoding) | |
| public enum ImageFormat { | |
| case PNG | |
| case JPEG(CGFloat) | |
| } | |
| extension UIImage { | |
| public func base64(format: ImageFormat) -> String { |
| curl -X POST -F "id={the url}" -F "scrape=true" "https://graph.facebook.com" | |
| # from http://stackoverflow.com/questions/12100574/is-there-an-api-to-force-facebook-to-scrape-a-page-again |
| // Declaring UIAlertController | |
| var alert = UIAlertController(title: "Welcome!", message: "You logged in!", preferredStyle: UIAlertControllerStyle.Alert) | |
| alert.addAction(UIAlertAction(title: "Continue", style: UIAlertActionStyle.Default, handler: nil)) | |
| self.presentViewController(alert, animated: true, completion: nil) | |
| // Handling UIAlertController Actions | |
| alert.addAction(UIAlertAction(title: "Ok", style: .Default, handler: { action in | |
| switch action.style{ | |
| case .Default: |
| // | |
| // RBResizer.swift | |
| // Locker | |
| // | |
| // Created by Hampton Catlin on 6/20/14. | |
| // Copyright (c) 2014 rarebit. All rights reserved. | |
| // | |
| import UIKit |
| server { | |
| listen 80; | |
| root /home/username/example.com; | |
| index index.php index.html; | |
| server_name example.com; | |
| location / { | |
| try_files $uri $uri/ /index.php?q=$uri&$args; |
| dispatch:beforeDispatchLoop | |
| dispatch:beforeDispatch | |
| dispatch:beforeNotFoundAction | |
| dispatch:beforeExecuteRoute | |
| dispatch:afterInitialize | |
| dispatch:afterExecuteRoute | |
| dispatch:afterDispatch | |
| dispatch:afterDispatchLoop | |
| dispatch:beforeException |
| --- Day changed Sat Oct 05 2013 | |
| 06:50 -!- mode/#phpconf-tw [+o TigerHuang] by ChanServ | |
| 06:51 -!- TigerHuang changed the topic of #phpconf-tw to: PHPConf Taiwan 2013 http://phpconf.tw/2013/ | UTF-8 | |
| 06:55 < davihuan> 大家好 www | |
| 06:55 <@TigerHuang> DennyHuang: 你是掛了一年嗎XD? | |
| 08:41 < BarneyChen_lL> 大家好 | |
| 08:59 < elleryq> 怎麼好像沒什麼人用 IRC ?? | |
| 08:59 < jeremy5189> Hello | |
| 09:00 < elleryq> Hello | |
| 09:02 < jasteralan> 大家早XD |
@版本 2.0.0
譯注:此翻譯版,主要給不能流利的讀英文的人看,相關專有名詞還是保留原文。翻譯不好地方請協助pull request.
此repository包含了一些前端開發的面試問題,來審查一個有潛力的面試者。這並不是建議你對同一個面試者問上所有的問 (那會花費好幾小時)。從列表中挑幾個題目,應該就夠幫助你審查面試者是否擁有你需要的技能。
Rebecca Murphey 的 Baseline For Front-End Developers 也是一篇很棒且值得讀的文章在你開始面試之前。
| # Mac OS X clipboard integration | |
| set-option -g default-command "reattach-to-user-namespace -l zsh" | |
| bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy" | |
| # Optional keybindings: Enter Copy-mode and Copy and Paste sorta like Vim. | |
| unbind [ | |
| bind Escape copy-mode | |
| unbind p | |
| bind p paste-buffer | |
| bind -t vi-copy 'v' begin-selection |
| function get_avatar_from_service(service, userid, size) { | |
| // this return the url that redirects to the according user image/avatar/profile picture | |
| // implemented services: google profiles, facebook, gravatar, twitter, tumblr, default fallback | |
| // for google use get_avatar_from_service('google', profile-name or user-id , size-in-px ) | |
| // for facebook use get_avatar_from_service('facebook', vanity url or user-id , size-in-px or size-as-word ) | |
| // for gravatar use get_avatar_from_service('gravatar', md5 hash email@adress, size-in-px ) | |
| // for twitter use get_avatar_from_service('twitter', username, size-in-px or size-as-word ) | |
| // for tumblr use get_avatar_from_service('tumblr', blog-url, size-in-px ) | |
| // everything else will go to the fallback | |
| // google and gravatar scale the avatar to any site, others will guided to the next best version |