@版本 2.0.0
譯注:此翻譯版,主要給不能流利的讀英文的人看,相關專有名詞還是保留原文。翻譯不好地方請協助pull request.
此repository包含了一些前端開發的面試問題,來審查一個有潛力的面試者。這並不是建議你對同一個面試者問上所有的問 (那會花費好幾小時)。從列表中挑幾個題目,應該就夠幫助你審查面試者是否擁有你需要的技能。
Rebecca Murphey 的 Baseline For Front-End Developers 也是一篇很棒且值得讀的文章在你開始面試之前。
| co(withYield); | |
| withoutYield(); | |
| function timeout(sec) { | |
| return function(notify) { | |
| setTimeout(function() { | |
| notify(null, new Date().getTime()); | |
| }, sec*1000); | |
| }; | |
| } | |
| function co(gen) { |
| # Idempotent way to build a /etc/hosts file with Ansible using your Ansible hosts inventory for a source. | |
| # Will include all hosts the playbook is run on. | |
| # Inspired from http://xmeblog.blogspot.com/2013/06/ansible-dynamicaly-update-etchosts.html | |
| - name: "Build hosts file" | |
| lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present | |
| when: hostvars[item].ansible_default_ipv4.address is defined | |
| with_items: groups['all'] |
| 'use strict'; | |
| module.exports = function(grunt) { | |
| // load all grunt tasks | |
| require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | |
| // configurable paths | |
| var paths = { |
| android { | |
| def gitTag = { | |
| def tagMatchOptions | |
| try { | |
| tagMatchOptions = "--match ${tagToBuildFrom}" | |
| } catch (MissingPropertyException) { | |
| tagMatchOptions = "" | |
| } | |
| "git describe --exact HEAD ${tagMatchOptions}".execute().text.trim() | |
| }() |
| #!/bin/bash -e | |
| IFADDR="192.168.3.1/24" | |
| if [[ ! ip link show docker0 ]]; then | |
| ip link add docker0 type bridge | |
| ip addr add "$IFADDR" dev docker0 | |
| ip link set docker0 up | |
| iptables -t nat -A POSTROUTING -s "$IFADDR" ! -d "$IFADDR" -j MASQUERADE | |
| fi |
| # First commit | |
| echo "hello" | git hash-object -w --stdin | |
| git update-index --add --cacheinfo 100644 ce013625030ba8dba906f756967f9e9ca394464a hello.txt | |
| git write-tree | |
| git commit-tree aaa96c -m "First commit" | |
| git update-ref refs/heads/master 30b060d9a7b5e93c158642b2b6f64b2b758da40d | |
| # Second commit |
| // program | |
| package main | |
| import "os/signal" | |
| import "os" | |
| import "fmt" | |
| import "syscall" | |
| import "time" |
@版本 2.0.0
譯注:此翻譯版,主要給不能流利的讀英文的人看,相關專有名詞還是保留原文。翻譯不好地方請協助pull request.
此repository包含了一些前端開發的面試問題,來審查一個有潛力的面試者。這並不是建議你對同一個面試者問上所有的問 (那會花費好幾小時)。從列表中挑幾個題目,應該就夠幫助你審查面試者是否擁有你需要的技能。
Rebecca Murphey 的 Baseline For Front-End Developers 也是一篇很棒且值得讀的文章在你開始面試之前。
| # Create background noise profile from mp3 | |
| /usr/bin/sox noise.mp3 -n noiseprof noise.prof | |
| # Remove noise from mp3 using profile | |
| /usr/bin/sox input.mp3 output.mp3 noisered noise.prof 0.21 | |
| # Remove silence from mp3 | |
| /usr/bin/sox input.mp3 output.mp3 silence -l 1 0.3 5% -1 2.0 5% | |
| # Remove noise and silence in a single command |
| 先做好硬碟分割 | |
| PS. 本人指令功力不足(掩面),我會先藉助Gparted圖形介面分割軟體做好分割,分割後記得等等要安裝的分割區代號(像是/dev/sda3那種) | |
| 掛載要安裝的分割區 | |
| $ mount /dev/sda3 /mnt #我是安裝在sda3分割區 | |
| $ dhcpcd #開啟有線網路自動抓取IP | |
| $ pacstrap /mnt base base-devel #安裝Linuix所需基本檔案環境 | |
| 產生需要的自動掛載設定檔 | |
| $ genfstab -p /mnt >> /mnt/etc/fstab |