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
| diff --git a/lib/dom_utils.js b/lib/dom_utils.js | |
| index 532ce635..8cd3161f 100644 | |
| --- a/lib/dom_utils.js | |
| +++ b/lib/dom_utils.js | |
| @@ -349,11 +349,6 @@ const DomUtils = { | |
| "mouseup", | |
| "click", | |
| ]; | |
| - | |
| - if (this.simulateClickDefaultAction(element, modifiers)) { |
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 | |
| # This script uses Imagemagick to do the trick. | |
| # For platfrom-specific installation instruction, please refer to https://imagemagick.org/script/download.php | |
| # | |
| # Sample usage: find -iname *.heic | xargs -L1 heic-to-jpg.sh | |
| heic=$1 | |
| if [ ! -f "$heic" ]; then | |
| echo "Usage: $(basename $0) <target HEIC file>" |
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
| #!/usr/bin/env stack | |
| -- stack --resolver lts-11.14 --install-ghc runghc --package data-ordlist --package PSQueue-1.1 --package pqueue-1.4.1.1 | |
| import Text.Printf | |
| import Data.List.Ordered ( minus ) | |
| import qualified Data.Map as Map | |
| import qualified Data.PSQueue as PSQ | |
| import qualified Data.PQueue.Min as PQ | |
| import System.CPUTime |
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/sh | |
| target_dir=$1 | |
| if [ ! "$target_dir" ]; then | |
| echo "Usage: $0 <target dir>" | |
| exit 0 | |
| fi | |
| if [ ! -d "$target_dir" ]; then |
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
| "use strict"; | |
| const toMs = ( diff ) => { | |
| return diff[ 0 ] * 1000 + diff[ 1 ] / 1000; | |
| }; | |
| const SIZE = 1000000; | |
| let arr = []; | |
| for ( var i = 0; i < SIZE; ++i ) { |
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
| "use strict"; | |
| const toMs = ( beg, end ) => { | |
| const sec = end[0] - beg[0]; | |
| const ms = Math.floor( (end[1] - beg[1]) / 1000 ); | |
| return sec * 1000 + ms; | |
| }; | |
| const SIZE = 1000000; |
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
| "use strict"; | |
| const toMs = ( beg, end ) => { | |
| const sec = end[0] - beg[0]; | |
| const ms = Math.floor( (end[1] - beg[1]) / 1000 ); | |
| return sec * 1000 + ms; | |
| }; | |
| const SIZE = 1000000; |
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
| // courtesy of cppreference | |
| // http://en.cppreference.com/w/cpp/algorithm/sort | |
| #include <algorithm> | |
| #include <functional> | |
| #include <array> | |
| #include <iostream> | |
| int main() | |
| { |
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
| source ~/.git-prompt.sh | |
| export CLICOLOR=1 | |
| export LSCOLORS=GxFxCxDxBxegedabagaced | |
| export PATH=/usr/local/bin:$PATH | |
| PS1='[\[\033[01;32m\]\u \[\033[00;34m\]\h \[\033[00m\]\w$]\n\[\033[00;33m\]$(__git_ps1 "(%s)")\[\033[00m\]->$ ' |
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
| language mes en | |
| map <F2> :TlistToggle<CR> | |
| map <F3> :FufTag<CR> | |
| map <C-f> :FufFile ./**/<CR> | |
| nmap <C-_>s :cs find s <C-R>=expand("<cword>")<CR><CR> | |
| nmap <C-_>g :cs find g <C-R>=expand("<cword>")<CR><CR> | |
| nmap <C-_>c :cs find c <C-R>=expand("<cword>")<CR><CR> | |
| nmap <C-_>t :cs find t <C-R>=expand("<cword>")<CR><CR> | |
| nmap <C-_>e :cs find e <C-R>=expand("<cword>")<CR><CR> |
NewerOlder