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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; | |
using System.Runtime.InteropServices; |
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
# Install the mozc (google-japanese-input) into CentOS i386 | |
# http://b.hatena.ne.jp/entry/y-stream.blogspot.com/2015/05/centos-mozc.html | |
wget http://ftp.jaist.ac.jp/pub/Linux/Vine/Vine-6.0/i386/Vine/RPMS.main-dvd/protobuf-2.3.0-3vl6.i686.rpm | |
wget http://ftp.jaist.ac.jp/pub/Linux/Vine/Vine-6.0/i386/Vine/RPMS.main-dvd/zinnia-0.06-3vl6.i686.rpm | |
wget http://ftp.jaist.ac.jp/pub/Linux/Vine/Vine-6.0/i386/Vine/RPMS.main-dvd/tegaki-zinnia-japanese-0.3-1vl6.noarch.rpm | |
wget http://ftp.jaist.ac.jp/pub/Linux/Vine/Vine-6.0/i386/Vine/RPMS.main-dvd/ibus-mozc-1.1.717.102-2vl6.i686.rpm | |
wget http://ftp.jaist.ac.jp/pub/Linux/Vine/Vine-6.0/i386/Vine/RPMS.main-dvd/mozc-1.1.717.102-2vl6.i686.rpm | |
wget http://ftp.jaist.ac.jp/pub/Linux/Vine/Vine-6.0/i386/Vine/RPMS.main-dvd/mozc-server-1.1.717.102-2vl6.i686.rpm | |
wget http://ftp.jaist.ac.jp/pub/Linux/Vine/Vine-6.0/i386/Vine/RPMS.main-dvd/mozc-utils-gui-1.1.717.102-2vl6.i686.rpm |
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
// セキュリティ・キャンプ全国大会2015 応募用紙 | |
// 選択問題11「下記バイナリを解析し、判明した情報を自由に記述してください」から引用 | |
// https://www.ipa.go.jp/files/000045804.txt | |
// 解析手順 | |
// | |
// g++ bin2file.cpp && a.exe | |
// | |
// file q11.bin | |
// => q11.bin: tcpdump capture file (little-endian) - version 2.4 (Ethernet, capture length 262144) |
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 off | |
:loop | |
if "%~n1"=="" goto end | |
cd /d %~dp0 | |
"C:\Program Files\WinRAR\WinRAR.exe" A -RR3P -EP1 -M3 -TSC0 -TSA0 -xThumbs.d? -x*.bak "%~dp0\%~n1" %1 | |
echo %1 | |
shift | |
goto loop |
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 off | |
:loop | |
if "%~n1"=="" goto end | |
cd /d %~dp0 | |
"C:\Program Files\WinRAR\WinRAR.exe" A -afzip "%~dp0\%~n1" %1 | |
echo %1 | |
shift | |
goto loop |
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> | |
int main(int argc, char* argv[]) | |
{ | |
static char s[] = "encrypted_phrase"; | |
size_t len = strlen(s); | |
int i; | |
for (i = 0; i < len; i++) |
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
# エンジニアでも恋がしたい!~転職初日にぶつかった女の子が同僚だった件~ | |
# パイザオンラインハッカソン4・Lite エン恋 | |
# https://paiza.jp/poh/enkoi | |
# Q1 | |
total = 0 | |
total_line = gets.chomp.to_i | |
total_line.times do | |
m = gets.chomp |
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
package p.util; | |
import p.Launch; | |
import com.nttdocomo.lang.MemoryManager; | |
/** | |
* デバッグ出力機能を提供します。 | |
*/ |
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
package p.util; | |
import p.struct.Cloneable; | |
/** | |
* Doja(iアプリ環境)用の高速な挿入・削除を行う動的配列クラス。 | |
* 配列内に加えられた要素の順序は保証されません。 | |
* 具体的にはremoveAt() 実行後に addElement() を呼び出すと、新しい要素は削除された要素の位置に配置されます。 | |
* | |
* @author niffy(http://niffy67.blog110.fc2.com/) + kbutti |
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
#osak先生の数当てゲーム 普通の生徒用 TAの模範解答 | |
$score = 0; | |
while(){ | |
for($i=0; $i<=3; ++$i){ | |
$rnd[$i] = int(rand(99)); | |
} | |
@rnd = sort @rnd; | |
print "Input 0..99 number->"; |