- 更新
2023-10-04
- 作者
@voluntas
- バージョン
2023.2
- URL
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/bash -e | |
id=$(chrome-cli list links | grep "chrome://extensions/" | awk '{print $1}' | sed -E "s/^\[([0-9]+)\]$/\1/g") | |
if [[ -n $id ]] ; then | |
chrome-cli reload -t "$id" | |
else | |
chrome-cli open "chrome://extensions" | |
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
fizz = function f() { | |
fizz = function () { | |
fizz = function () { | |
fizz = f | |
return "Fizz" | |
} | |
} | |
} | |
buzz = function f() { |
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
# -*- coding:utf-8 -*- | |
from pymongo import MongoClient | |
client = MongoClient() | |
db = client.xvideos | |
def create_db(): | |
f = open('xvideos.com-db.csv') | |
for line in f: |
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
Array.prototype.uniq = function() { | |
var o = {} | |
, i | |
, l = this.length | |
, r = []; | |
for (i = 0; i < l; i += 1) o[this[i]] = this[i]; | |
for (i in o) r.push(o[i]); | |
return r; |
decompress="perl -MCompress::Zlib -e 'undef $/; print uncompress(<>)'"
perl
- Execute the Perl binary-MCompress::Zlib
- Load the Zlib Perl module-e '...'
- Execute the specified Perl codeundef $/;
- Undefine the input record separator to read input to the end<>
- Read from standard inputuncompress(...)
- Use uncompress the input using Zlib
NewerOlder