Skip to content

Instantly share code, notes, and snippets.

View tanishiking's full-sized avatar
🤖

Rikito Taniguchi tanishiking

🤖
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>TypeScript test</title>
</head>
<body>
<div class="container">
<ul class="piyo-list">
<li><a href="" class="piyo-button">Add piyo</a></li>
@tanishiking
tanishiking / .gitignore
Last active November 13, 2016 17:17
Trie matching
__pycache__/
*.pyc
@tanishiking
tanishiking / CMakeLists1.txt
Created October 30, 2016 10:57
EasyPass that show only function names...
# projectroot/CmakeLists.txt
cmake_minimum_required(VERSION 2.8.8)
find_package(LLVM REQUIRED CONFIG)
add_definitions(${LLVM_DEFINITIONS})
include_directories(${LLVM_INCLUDE_DIRS})
link_directories(${LLVM_LIBRARY_DIRS})
add_subdirectory(easypass)
.code16
.globl _start
_start:
.byte 0xeb, 0x4e, 0x90
.ascii "HELLOIPL"
.word 512
.byte 1
.word 1
.byte 2
.word 224
SRCS=ipl.s
OBJS=$(SRCS:.s=.o)
BINS=$(SRCS:.s=.bin)
IMGS=$(SRCS:.s=.img)
LNK=lnk.ld
all:
make img
make run
OUTPUT_FORMAT("binary");
SECTIONS {
. = 0x7c00;
.text : { *(.text) }
. = 0x7dfe;
.sig : { SHORT(0xaa55); }
}
.code16 #16bitバイナリをはくように
.text
jmp entry
.byte 0x90 # BS_jmpBoot 3
.ascii "HELLOIPL" # BS_OEMName 8
.word 512 # BPB_BytsPerSec 2
.byte 1 # BPB_SecPerClus 1
.word 1 # BPB_RsvdSecCnt 2
.byte 2 # BPB_NumFATs 1
.word 224 # BPB_RootEntCnt 2
OCAMLOPT=ocamlopt
TARGETS=parse
INCLUDES=str.cmxa
SRCS=utils.ml parser.ml
OBJS=$(SRCS:.ml=.cmx)
all: $(TARGETS) $(OBJS)
$(TARGETS): $(OBJS)
$(OCAMLOPT) -o $@ $(INCLUDES) $(OBJS)
@tanishiking
tanishiking / is_alive.sh
Created June 4, 2016 06:08
簡易的なプロセス死活監視スクリプト
#!/usr/bin/sh
process=""
while true; do
is_alive=`ps aux | grep "$process" | grep -v grep | wc -l`
if [[ $is_alive -eq 0 ]]; then
echo "process dead!!!!"
break
fi
Classfile /Users/tanishiking/dev/playground/java/Main.class
Last modified 2016/05/12; size 472 bytes
MD5 checksum 5653395a8fc0c5a01fb59d4bdbe07c00
Compiled from "Main.java"
class Main
minor version: 0
major version: 52
flags: ACC_SUPER
Constant pool:
#1 = Methodref #7.#17 // java/lang/Object."<init>":()V