- jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
- Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
- AngularJS - Conventions based MVC framework for HTML5 apps.
- Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
- lawnchair - Key/value store adapter for indexdb, localStorage
- Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
- rabl - General ruby templating with json, bson, xml, plist and msgpack support
- Thin - Very fast and lightweight Ruby web server
- Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
- SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
- Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
- [factory_girl](h
- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
This file contains hidden or 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
| #!/bin/bash | |
| repos=( | |
| "/Users/rob/Library/Application Support/TextMate/Bundles/Git.tmbundle" | |
| "/Users/rob/Library/Application Support/TextMate/Bundles/Ruby.tmbundle" | |
| "/Users/rob/Library/Application Support/TextMate/Bundles/RubyAMP.tmbundle" | |
| "/Users/rob/Library/Application Support/TextMate/Bundles/Ruby Haml.tmbundle" | |
| "/Users/rob/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle" | |
| "/Users/rob/Library/Application Support/TextMate/Bundles/ruby-sass.tmbundle" | |
| "/Users/rob/Library/Application Support/TextMate/Bundles/ruby-shoulda.tmbundle" |
This file contains hidden or 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
| #keys_zone=cache1:100m 表示这个zone名称为cache1,分配的内存大小为100MB | |
| #/usr/local/nginx/proxy_cache_dir/cache1 表示cache1这个zone的文件要存放的目录 | |
| #levels=1:2 表示缓存目录的第一级目录是1个字符,第二级目录是2个字符,即/usr/local/nginx/proxy_cache_dir/cache1/a/1b这种形式 | |
| #inactive=1d 表示这个zone中的缓存文件如果在1天内都没有被访问,那么文件会被cache manager进程删除掉 | |
| #max_size=10g 表示这个zone的硬盘容量为10GB | |
| proxy_temp_path /usr/share/nginx/html/proxy_temp_dir 1 2; | |
| proxy_cache_path /usr/share/nginx/html/proxy_temp_dir/cache1 levels=1:2 keys_zone=cache1:100m inactive=1d max_size=10g; |
This file contains hidden or 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
| /* | |
| * mongoose 除錯模式 | |
| * */ | |
| if ( /mongoose/.test(process.env.DEBUG) ){ | |
| mongoose.set('debug', true); | |
| } |
@版本 2.0.0
譯注:此翻譯版,主要給不能流利的讀英文的人看,相關專有名詞還是保留原文。翻譯不好地方請協助pull request.
此repository包含了一些前端開發的面試問題,來審查一個有潛力的面試者。這並不是建議你對同一個面試者問上所有的問 (那會花費好幾小時)。從列表中挑幾個題目,應該就夠幫助你審查面試者是否擁有你需要的技能。
Rebecca Murphey 的 Baseline For Front-End Developers 也是一篇很棒且值得讀的文章在你開始面試之前。
This file contains hidden or 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
| module.exports = { | |
| dashboarddistance: function(a, b, c, d, callback) { | |
| var ds = 0; | |
| var distance = require('google-distance'); | |
| distance.get({ | |
| index: 1, | |
| origin: a + ',' + b, | |
| destination: c + ',' + d | |
| }, function(err, data) { | |
| if (err) { |
This file contains hidden or 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
| ## convert HTML POST data or HTTP GET query string to JSON | |
| ## get the raw post data from the AWS built-in variable and give it a nicer name | |
| #if ($context.httpMethod == "POST") | |
| #set($rawAPIData = $input.path('$')) | |
| #elseif ($context.httpMethod == "GET") | |
| #set($rawAPIData = $input.params().querystring) | |
| #set($rawAPIData = $rawAPIData.toString()) | |
| #set($rawAPIDataLength = $rawAPIData.length() - 1) | |
| #set($rawAPIData = $rawAPIData.substring(1, $rawAPIDataLength)) |
This file contains hidden or 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 ubuntu:16.04 | |
| RUN apt-get update | |
| RUN apt-get install -y curl | |
| # nodejs | |
| RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - | |
| # | |
| RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 | |
| RUN echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list |