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
base = 10 | |
def radix_sort(x, max): | |
radix = 1 | |
while radix < max: | |
x = counting_sort(x, radix) | |
radix *= base | |
return x | |
def counting_sort(a, radix): |
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
perl -nle 'next unless s{^insert\b.+?\bvalues\s*\(}{}i; tr/\t//d; while (m{([^\x27]+?|\x27(?:[^\\]|\\.)*?\x27)(,|\),\(|\);)}g) { $val=$1; $delim=$2; $val=~s/^\x27//; $val=~s/\x27$//; $val=~s/\\n/\\\\n/g; $val=~s/\\(.)/$1/g; push @elems,$val; if ($delim=~m{\)}) { print join("\t", @elems); @elems=(); } }' |
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
えだきりあくま -> マジックアーマー -> まじんジャダーマ -> マージスター -> タイムマスター -> ダークマター -> ダブルイーター -> ダークジャミラ -> ランドゲーロ -> ローズバトラー -> ラマダ -> ダンジョンえび -> ビッグももんじゃ -> やみのおうヴラート -> とうしんレオソード -> ドラゴニット -> ドラゴンマッド -> ドルイド -> トンブレロ -> ロンダルキアガード -> とかげどり -> リカント -> トーテムキラー -> ライオンヘッド -> ドードーどり -> リビングデッド -> トンネラー -> ライバーンロード -> ドーラー -> ラリホーアント -> とうぞくこぞう -> うごくせきぞう -> うごくひょうぞう -> うらぎりこぞう -> ウィッチレディ -> イーブルフライ -> イエティ -> いしにんぎょう -> ウッディアイ -> いっかくじゅう -> ウルベアまじんへい -> いっかくりゅう -> ウィングデビル -> ルシファースライム -> ムドー -> ドラゴンソルジャー -> やみのしさい -> いたずらもぐら -> ライノソルジャー -> やまねずみ -> みみとびねずみ -> みつりんのもりびと -> とうちゅうかそう -> うみのかみワダツミ -> ミストウイング -> くびかりぞく -> グラブゾンジャック -> グランエスターク -> グランドシャーク -> グレートロック -> ぐんたいガニ -> にじくじゃく -> クインガルハート -> トロルキング -> ククールぞう -> ウィングスネーク -> クラウンヘッド -> ドーク -> くさったまじゅう -> うずしおキング -> グレートノチョーラゼット -> ドゴロク -> グレイビーポット -> ドロザラー -> ラーバキング -> くびながりゅう -> ウドラー -> ライオネック -> くさったしたい -> イイロ -> ロイヤルミミック -> くみひもこぞう -> ウルトラキメイラ -> ライノキング -> くものだいおう -> ウォンテッドヘビー -> ビーンファイター -> タコメット -> とうぞくバコタ -> だてんしエルギオス -> ストローマウス -> スライダーキッズ -> スライムブレス -> スライムベス -> スライダーヒーロ |
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 -w | |
# src/htdocs 下の PHP ファイルのパスを取得して表示します。 | |
# ファイル名が php-files.txt に含まれているもののみ取得します。 | |
# @files は「foo.php」のような PHP ファイル名のリスト,行区切り | |
open FILE, '<', 'php-files.txt'; | |
chomp(@files = <FILE>); | |
@file_dict{@files} = (); # ハッシュスライスを使って、%file_dict のキーとして @files の中身を入れる |
This file has been truncated, but you can view the full file.
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
一三+門=閂閆 | |
一三+弋=弌弎 | |
一三+门=闩闫 | |
一上+日=旦㫔 | |
一九+宀=㝉宄 | |
一九+日=旦旯 | |
一二三+弋=弌弍弎 | |
一人+門=閂閃 | |
一人+门=闩闪 | |
一人言+门=闩闪訚 |
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
㮶杖 木朔木丈 | |
㯮椒神社 木蜀木叔⺭申⺭土 | |
乱取 舌乚耳又 | |
乱妨 舌乚女方 | |
乱妨取 舌乚女方耳又 | |
乱婚 舌乚女昏 | |
乱捕 舌乚⺘甫 | |
乱数 舌乚娄攵 | |
乱数列 舌乚娄攵歹刂 | |
乱波 舌乚⺡皮 |
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
$ java -cp stanford-english-corenlp-2017-06-09-models.jar -cp stanford-corenlp-3.8.0.jar -mx1g edu.stanford.nlp.trees.ud.UniversalDependenciesConverter -treeFile ~/user/ptb/parsed/prd/brown/cf/cf01.prd > treebank.conllu | |
java.io.IOException: Unable to open "edu/stanford/nlp/models/ner/english.all.3class.distsim.crf.ser.gz" as class path, filename or URL | |
at edu.stanford.nlp.io.IOUtils.getInputStreamFromURLOrClasspathOrFileSystem(IOUtils.java:480) | |
at edu.stanford.nlp.ie.AbstractSequenceClassifier.loadClassifier(AbstractSequenceClassifier.java:1498) | |
at edu.stanford.nlp.ie.crf.CRFClassifier.getClassifier(CRFClassifier.java:2941) | |
at edu.stanford.nlp.ie.ClassifierCombiner.loadClassifierFromPath(ClassifierCombiner.java:282) | |
at edu.stanford.nlp.ie.ClassifierCombiner.loadClassifiers(ClassifierCombiner.java:266) | |
at edu.stanford.nlp.ie.ClassifierCombiner.<init>(ClassifierCombiner.java:142) | |
at edu.stanford.nlp.ie.NERClassifierCombiner.<init>(NERClassifierCombiner.java:128) | |
at edu.stanford.nlp.ie.NERClassifierComb |
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
$ java -cp stanford-parser.jar -mx1g edu.stanford.nlp.trees.ud.UniversalDependenciesConverter -treeFile ~/user/ptb/parsed/prd/brown/cf/cf01.prd -conlluFile temp.conllu | |
Exception in thread "main" java.lang.RuntimeException: Error loading flags.readerAndWriter: 'edu.stanford.nlp.sequences.ColumnDocumentReaderAndWriter' | |
at edu.stanford.nlp.ie.AbstractSequenceClassifier.makeReaderAndWriter(AbstractSequenceClassifier.java:227) | |
at edu.stanford.nlp.ie.AbstractSequenceClassifier.reinit(AbstractSequenceClassifier.java:194) | |
at edu.stanford.nlp.ie.AbstractSequenceClassifier.<init>(AbstractSequenceClassifier.java:171) | |
at edu.stanford.nlp.ie.AbstractSequenceClassifier.<init>(AbstractSequenceClassifier.java:139) | |
at edu.stanford.nlp.ie.ClassifierCombiner.<init>(ClassifierCombiner.java:139) | |
at edu.stanford.nlp.ie.NERClassifierCombiner.<init>(NERClassifierCombiner.java:128) | |
at edu.stanford.nlp.ie.NERClassifierCombiner.createNERClassifierCombiner(NERClassifierCombiner.java:273) | |
at edu.stanford.nlp.ie.NERClassifierCombi |
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
import React, { useEffect, useState, useRef } from "react"; | |
import { | |
SpeechRecogintionResult, | |
createSpeechRecognition, | |
createMediaRecorder, | |
SpeechRecord | |
} from "./utils"; | |
let currentSpeechRecognition: any | null = null; | |
let currentMediaRecorder: any | null = null; |
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 -nl | |
use Getopt::Std; | |
BEGIN { | |
getopt("n:" => \%o); | |
$n = $o{"n"} ||= 10; | |
} | |
$t = $. <= $n ? $. - 1 : rand($.); | |
$r[$t] = $_ if $t < $n; | |
END { | |
print for @r; |
OlderNewer