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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/bionic64" | |
# for Jenkins 8080 -> 8090 | |
config.vm.network "forwarded_port", guest: 8080, host: 8090, host_ip: "127.0.0.1" | |
config.vm.network "private_network", ip: "192.168.33.12" |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/bionic64" | |
# config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1" | |
config.vm.network "private_network", ip: "192.168.33.11" |
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
Option Explicit | |
' | | | |cell_name1|cell_name2|... | |
' |directory_name|book_name|sheet_name| | |
' | |
Public Sub データ抽出() | |
Dim ブック_オリジナル As Workbook: Set ブック_オリジナル = ThisWorkbook | |
Dim シート_オリジナル As Worksheet: Set シート_オリジナル = ブック_オリジナル.Sheets(1) |
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
Public Sub パスワード付きファイルを開く() | |
Dim path As String | |
With Application.FileDialog(msoFileDialogFolderPicker) | |
If .Show = True Then | |
path = .SelectedItems(1) | |
End If | |
End With | |
Dim passwd As String | |
passwd = InputBox("読み取りパスワード", "読み取りパスワード", "") |
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
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 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 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 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 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 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 |