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
const fs = new require("fs"); | |
const _ = new require("underscore"); | |
const MeCab = new require("mecab-async"); | |
const mecab = new MeCab(); | |
const titles = fs.readFileSync("./title.txt").toString().split("\n"); | |
const dict = {}; | |
/** | |
* 文章中の名詞を◯◯に置き換える | |
* 例:「私はペンです。」->「◯◯は△△です。」 |
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
from pytube import YouTube as YT | |
urls = [ | |
... | |
] | |
for url in urls: | |
yt = YT(url) | |
try: |
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 patcher = require("virtual-patch"); | |
var diff = "diff string here"; | |
patcher.patch( | |
// pass diff string of git style | |
diff, | |
// read a file of given filename | |
function readFile(filename, cb) { | |
someAsyncRead(filename, function (err, data) { |
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
Connecting to localhost:8443 ... | |
Connected to 127.0.0.1:8443 | |
Negotiated protocol "h2" | |
[FrameHeader SETTINGS len=0] | |
h2i> settings | |
Sending: [] | |
[FrameHeader SETTINGS flags=ACK len=0] | |
h2i> ping | |
[FrameHeader PING flags=ACK len=8] | |
Data = "h2i_ping" |
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
* Hostname was NOT found in DNS cache | |
* Trying ::1... | |
* Connected to localhost (::1) port 8443 (#0) | |
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 | |
* Server certificate: localhost:8443 | |
> GET / HTTP/1.1 | |
> User-Agent: curl/7.37.1 | |
> Host: localhost:8443 | |
> Accept: */* | |
> |
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"; | |
let fs = require("fs"); | |
let http2 = require("http2"); | |
let opt = { | |
key: fs.readFileSync("./server.key"), | |
cert: fs.readFileSync("./server.crt") | |
}; |
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
{ | |
"env": { | |
"browser": true, | |
"node": true, | |
"jquery": true | |
}, | |
"globals": {}, | |
"rules": { |
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
echo '#compdef npm\n\n_npm() {\n _values \'; /usr/bin/env npm | grep , | xargs | tr ',' '\n' | xargs -I% echo " '%' \\" ; echo '}' |
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
/** | |
* Gene | |
* | |
* @class Gene | |
*/ | |
class Gene { | |
/** | |
* constructor | |
* | |
* @param {String} code |
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"; | |
/** | |
* decorator to promisify instance methods | |
* | |
* @param {Object} target | |
* @param {String} name | |
* @param {Object} descriptor | |
* @return {Object} | |
*/ |
NewerOlder