Skip to content

Instantly share code, notes, and snippets.

View pqteru's full-sized avatar

David pqteru

  • Taipei, Taiwan
View GitHub Profile
@pqteru
pqteru / sbips.sh
Last active February 23, 2020 02:35
Show all booted iPhone simulators with iOS version
#!/bin/bash
# show booted iphone simulators
sbips() {
dis=$(xcrun simctl list devices | \
grep "(Booted)" | \
grep -E -o -i "([0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12})")
if [ -n $dis ]; then
for di in $dis; do instruments -s devices | egrep $di; done
else
@pqteru
pqteru / Front-end-Developer-Interview-Questions-TC.md
Created October 20, 2016 06:00 — forked from hanksudo/Front-end-Developer-Interview-Questions-TC.md
Front-end-Developer-Interview-Questions - 前端工程師面試問題集(繁體中文版)

前端工程師面試問題集

@版本 2.0.0

譯注:此翻譯版,主要給不能流利的讀英文的人看,相關專有名詞還是保留原文。翻譯不好地方請協助pull request.

此repository包含了一些前端開發的面試問題,來審查一個有潛力的面試者。這並不是建議你對同一個面試者問上所有的問 (那會花費好幾小時)。從列表中挑幾個題目,應該就夠幫助你審查面試者是否擁有你需要的技能。

Rebecca MurpheyBaseline For Front-End Developers 也是一篇很棒且值得讀的文章在你開始面試之前。

@pqteru
pqteru / db_reset.sh
Last active August 29, 2015 14:21
Django db reset and clean
#!/bin/sh
echo "Starting ..."
echo ">> Deleting old migrations"
find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
# Optional
echo ">> Deleting database"
find . -name "db.sqlite3" -delete
#!/usr/bin/env bash
rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "`pwd`/Pods/"
pod update