This file contains 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
## 2020/10/28 v0.4 | |
* fix(suggest): submit -> click | |
## 2020/10/09 v0.3 | |
* feature(replace): add on/off switch | |
* feature(suggest): suggest by first load | |
* feature(suggest): speedy suggest | |
## 2020/10/09 v0.2 | |
* fix(*): fixed incorrect replace |
This file contains 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
// ==UserScript== | |
// @name Close Zoom Tab | |
// @namespace http://tampermonkey.net/ | |
// @version 0.3 | |
// @description close zoom tab on success | |
// @author silvers | |
// @match https://*.zoom.us/j/* | |
// @match https://zoom.us/j/* | |
// @grant window.close | |
// ==/UserScript== |
This file contains 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 | |
IFS=' | |
' | |
hr='_____________________________________________________' | |
for line in $(zoom --count 3); do | |
if [[ $line =~ (zoommtg://.*)$ ]]; then | |
url=$BASH_REMATCH | |
fi |
This file contains 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
extension Array { | |
subscript (safe index: Int) -> T? { | |
get { | |
return indices(self) ~= index ? self[index] : nil | |
} | |
set (value) { | |
if value == nil { | |
return | |
} |
This file contains 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
Library | |
Temp | |
*.pidb | |
*.unityproj | |
*.sln | |
*.userprefs |
This file contains 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; | |
use warnings; | |
use utf8; | |
use lib "$ENV{HOME}/extlib/lib/perl5"; | |
use AnyEvent; | |
use AnyEvent::Feed; | |
use AnyEvent::IRC::Client; | |
use Encode; | |
use Encode::Guess; |
This file contains 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 | |
NAME=$(git branch | grep '*' | sed 's/* //') | |
# don't run on rebase | |
if [ $NAME != '(no branch)' ]; then | |
EDITSCSS=$(git --no-pager diff --diff-filter=AM --name-only --no-color --cached | grep 'scss' | wc -l) | |
if [ $EDITSCSS -ne 0 ]; then |
This file contains 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
var test = function(obj) { | |
console.log(obj); | |
console.log(obj.length); | |
console.log(+obj.length); | |
if (obj.length === +obj.length) { | |
console.log("array!!!"); | |
} else { | |
console.log("object!!!"); | |
} |
This file contains 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/perl | |
use strict; | |
use warnings; | |
use 5.10.0; | |
my $str = 'aaa::bbb:::fff::::'; | |
# no limit | |
my @array1 = split /:/, $str; | |
say join ',', @array1; # => aaa,,bbb,,,fff |
This file contains 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; | |
use warnings; | |
use File::Basename; | |
use File::Find::Rule; | |
use Getopt::Long; | |
use Image::Imlib2; | |
sub main { | |
Getopt::Long::GetOptions( | |
'--dir=s' => \my $target_dir, |