This file contains hidden or 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
Option Explicit | |
Public Sub 複数行を単一行へ変換() | |
Dim 入力シート As Worksheet | |
Dim 出力シート As Worksheet | |
Dim 入力行 As Integer ' 入力シートのキーの行番号 | |
Dim 入力列 As Integer ' 入力シートの値の列番号 | |
Dim 出力行 As Integer ' 出力シートの出力行番号 | |
Dim 出力列 As Integer ' 出力シートの出力列番号 | |
Dim 値列数 As Integer ' 値の列数 |
This file contains hidden or 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/env python3 | |
# -*- coding: utf-8 -*- | |
import time | |
import random | |
def interval(): | |
start_time = time.time() | |
def end_time(): | |
return time.time() - start_time | |
return end_time |
This file contains hidden or 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
# tt.rb | |
def interval () | |
start_time = (Time.now.to_f * 1000).to_i | |
lambda { | |
end_time = (Time.now.to_f * 1000).to_i | |
end_time - start_time | |
} | |
end |
This file contains hidden or 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 util.combinations) | |
(use gauche.collection) | |
; Magic hexagram | |
; | |
; a | |
; / \ | |
; b---c---d---e | |
; \ / \ / | |
; f g |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF8"?> | |
<toolchains> | |
<!-- JDK toolchains --> | |
<toolchain> | |
<type>jdk</type> | |
<provides> | |
<version>1.6</version> | |
<vendor>sun</vendor> | |
</provides> | |
<configuration> |
This file contains hidden or 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
bindkey '^[[C' forward-word | |
bindkey '^[[D' backward-word |
This file contains hidden or 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
; % nasm -f bin -o yohooos.img yohooos.asm -l yohooos.lst | |
; 川合秀実著,「OS自作入門」のコードほぼそのまま | |
; TAB=4 | |
ORG 0x7c00 ; このプログラムがどこに読み込まれるのか | |
; 以下は標準的なFAT12フォーマットフロッピーディスクのための記述 | |
start: JMP entry | |
DB 0x90 |
This file contains hidden or 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
; hello-os | |
; TAB=4 | |
; ..\z_tools\nask.exe helloos2.nas helloos.img | |
DB 0xeb, 0x4e, 0x90 | |
DB "HELLOIPL" | |
DW 512 | |
DB 1 | |
DW 1 |
This file contains hidden or 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> | |
// func1 returns a char. | |
char func1() | |
{ | |
return 'a'; | |
} | |
// func2 returns a pointer to char. |
This file contains hidden or 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/env zsh | |
if [ $# -ne 2 ]; then | |
echo "$# args specified" 1>&2 | |
echo "usage: sh ./copyDir.sh from_directory to_directory" 1>&2 | |
exit 1 | |
fi | |
from_dir=$1 | |
to_dir=$2 |