| e[dit] | evil-edit |
| w[rite] | evil-write |
| wa[ll] | evil-write-all |
| sav[eas] | evil-save |
| r[ead] | evil-read |
| b[uffer] | evil-buffer |
| bn[ext] | evil-next-buffer |
| bp[revious] | evil-prev-buffer |
| bN[ext] | bprevious |
| sb[uffer] | evil-split-buffer |
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
| :root { | |
| --heng-fa-chuen: #b51921; | |
| --tai-koo: #b2103e; | |
| --kowloon-bay: #c41832; | |
| --tseung-kwan-o: #ef342a; | |
| --wui-kai-sha: #a84d18; | |
| --po-lam: #f68f26; | |
| --sai-wan-ho: #faca07; | |
| --disneyland-resort: #07594a; | |
| --skek-kip-mei: #4ba946; |
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
| import caffe | |
| import numpy as np | |
| import json | |
| class FocalLoss(caffe.Layer): | |
| """ | |
| Compute Focal Loss | |
| Inspired by https://arxiv.org/abs/1708.02002 | |
| Raul Gomez Bruballa | |
| https://gombru.github.io/ |
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
| (defun list-dirs-recursively (dir &optional include-symlinks) | |
| "Return list of all subdirectories recursively. Returns absolute paths. | |
| Optionally call recursively on symlinks." | |
| (let ((result nil) | |
| (tramp-mode (and tramp-mode (file-remote-p (expand-file-name dir))))) | |
| (dolist (file (file-name-all-completions "" dir)) | |
| (when (and (directory-name-p file) (not (member file '("./" "../")))) | |
| (setq result (nconc result (list (expand-file-name file dir)))) | |
| (let* ((leaf (substring file 0 (1- (length file)))) | |
| (full-file (expand-file-name leaf dir))) |
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
| disable sip in recovery mode | |
| start recovery mode with Cmd + R on startup | |
| start terminal | |
| csrutil disable | |
| download and install cuda 8 | |
| download cuDNN v6.0 for cuda 8 (register first) | |
| install xcode 7.2 | |
| current xcode version is not supported |
These instructions are based on Mistobaan's gist but expanded and updated to work with the latest tensorflow OSX CUDA PR.
In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So ⌘ + D does not mean hold shift. ⌘ + Shift + D does of course.
| Function | Shortcut |
|---|---|
| New Tab | ⌘ + T |
| Close Tab or Window | ⌘ + W (same as many mac apps) |
| Go to Tab | ⌘ + Number Key (ie: ⌘2 is 2nd tab) |
| Go to Split Pane by Direction | ⌘ + Option + Arrow Key |
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
| class KMP: | |
| def partial(self, pattern): | |
| """ Calculate partial match table: String -> [Int]""" | |
| ret = [0] | |
| for i in range(1, len(pattern)): | |
| j = ret[i - 1] | |
| while j > 0 and pattern[j] != pattern[i]: | |
| j = ret[j - 1] | |
| ret.append(j + 1 if pattern[j] == pattern[i] else j) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
ffmpeg -i "Apache Sqoop Tutorial Part 1.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i "Apache Sqoop Tutorial Part 2.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
ffmpeg -i "Apache Sqoop Tutorial Part 3.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate3.ts
ffmpeg -i "Apache Sqoop Tutorial Part 4.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate4.ts
ffmpeg -i "concat:intermediate1.ts|intermediate2.ts|intermediate3.ts|intermediate4.ts" -c copy -bsf:a aac_adtstoasc "Apache Sqoop Tutorial.mp4"NewerOlder