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
@names @display | |
Scenarios: Some japanese names (ordinal names to weird cases) | |
| name | first | von | last | jr | | |
| 田中 花子 | 花子 | | 田中 | | | |
| たなか はなこ | はなこ | | たなか | | | |
| タナカ ハナコ | ハナコ | | タナカ | | | |
| {アリス} {鈴木} | {アリス} | | {鈴木} | | | |
| {山田} 太郎 | 太郎 | | {山田} | | | |
| {山}田 {太郎} | {太郎} | | {山}田 | | | |
| 大君 ズム 慈恩 | ズム 慈恩 | | 大君 | | |
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
// Author: grafi | |
// License: CC0 1.0 or NYSL 0.9982 | |
var tmp_path = WScript.ScriptFullName.replace(/\.js$/, '.tmp'); | |
var sh = new ActiveXObject('WScript.Shell'); | |
function write_error(msg) { | |
var fs = new ActiveXObject('Scripting.FileSystemObject'); | |
var FOR_WRITING = 2; | |
var file = fs.OpenTextFile(tmp_path, FOR_WRITING, true); |
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 | |
shopt -s nullglob | |
reportNo=$1 | |
account=$2 | |
reports=("../${account}/report${reportNo}-"*) | |
reportsNum=${#reports[@]} | |
if [[ ${reportsNum} -eq 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
#include <stdio.h> | |
#include <string.h> | |
#include <openssl/blowfish.h> | |
#include <openssl/sha.h> | |
void keygen(unsigned char *pass, unsigned char *salt, unsigned char *key) { | |
unsigned char buf[72]; | |
memcpy(buf, pass, 16); | |
memcpy(buf+16, salt, 8); | |
int l = 24; |
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
\documentclass{ltjsarticle} | |
\usepackage{luatexja-fontspec} | |
\usepackage[margin=0pt]{geometry} | |
\setmainjfont[Scale=40]{FOT-TsukuMinPr5-M} | |
\begin{document} | |
\thispagestyle{empty} | |
\vspace*{\fill} | |
\centering | |
\noindent |
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
static void avx_kernel( | |
int len, int a_pack_next_cnt, float *restrict a_pack_next, | |
float *restrict a, float *restrict a_pack_cur, | |
float *restrict b, float *restrict b_pack_cur, | |
size_t ldc, float *restrict c) { | |
__asm__( | |
/* load c */ | |
"vmovaps (%[c_ptr]) %%ymm0\n\t" | |
"leaq (%[c_ptr],%[ldc],4) %[c_ptr]\n\t" |
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
shunsuke:~/mecab-ipadic-neologd/seed% unxz < *.csv.xz | grep -F "$(for d in デパス ワイパックス マイスリー レキソタン メイラックス; do echo $d; done)" | |
DJ DEPATH,1289,1289,3758,名詞,固有名詞,人名,一般,*,*,DJ DEPATH,ディージェイデパス,ディージェイデパス | |
DJ デパス&エムプロジェクト,1289,1289,1485,名詞,固有名詞,人名,一般,*,*,DJデパス&エムプロジェクト,ディージェイデパスアンドエムプロジェクト,ディージェイデパスアンドエムプロジェクト | |
DJデパス&エムプロジェクト,1289,1289,2758,名詞,固有名詞,人名,一般,*,*,DJデパス&エムプロジェクト,ディージェイデパスアンドエムプロジェクト,ディージェイデパスアンドエムプロジェクト | |
Dj depath,1289,1289,3758,名詞,固有名詞,人名,一般,*,*,DJ DEPATH,ディージェイデパス,ディージェイデパス | |
Dj デパス&エムプロジェクト,1289,1289,2608,名詞,固有名詞,人名,一般,*,*,DJデパス&エムプロジェクト,ディージェイデパスアンドエムプロジェクト,ディージェイデパスアンドエムプロジェクト | |
dj depath,1289,1289,3758,名詞,固有名詞,人名,一般,*,*,DJ DEPATH,ディージェイデパス,ディージェイデパス | |
dj デパス&エムプロジェクト,1289,1289,2608,名詞,固有名詞,人名,一般,*,*,DJデパス&エムプロジェクト,ディージェイデパスアンドエムプロジェクト,ディージェイデパスアンドエムプロジェクト | |
djデパス&エムプロジェクト,1289,1289,2758,名詞,固有名詞,人名,一般,*,*,DJデパス&エムプロジェクト,ディージェイデパスアンドエムプロジェクト,ディージェイデパスアンドエムプロジェクト | |
アシュリーハッチングス&エルネストデパスカル,1289,1289,-582,名詞,固有名詞,人名,一般,*,*,アシュリー・ハッチングス&エルネスト・デ・パスカル,アシュリーハッチングスアンドエルネストデパスカル,アシュリーハッチングスアンドエルネストデパスカル |
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
/* Shunsuke Shimizu, 2017 | |
* | |
* To the extent possible under law, the author have dedicated all copyright and | |
* related and neighboring rights to this software to the public domain worldwide. | |
* This software is distributed without any warranty. | |
* See <http://creativecommons.org/publicdomain/zero/1.0/>. | |
* | |
* Usage: on x64 Linux platform, | |
* | |
* as test_avx2.s -o test_avx2.o |
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
/* gcc -O2 -msse4 -mavx2 -Wall -Wpedantic -Wextra -std=c89 transpose.c -o transpose */ | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <emmintrin.h> | |
#include <smmintrin.h> | |
#include <immintrin.h> |
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 | |
if [ "${USER}" != root ]; then | |
echo user should be root >&2 | |
exit 1 | |
fi | |
tmux has-session -t nvidia-oc 2> /dev/null | |
if [ $? -ne 0 ]; then | |
echo not enabled >&2 |