Skip to content

Instantly share code, notes, and snippets.

@old-horizon
old-horizon / Vagrantfile
Created February 14, 2021 06:43
Vagrantfile to create IE11 Selenium Grid Node
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANT_BOX = ENV['VAGRANT_BOX']
SELENIUM_HUB_IP = ENV['SELENIUM_HUB_IP']
SELENIUM_NODE_IP = ENV['SELENIUM_NODE_IP']
SELENIUM_NODE_PORT = ENV['SELENIUM_NODE_PORT'].to_i
Vagrant.configure('2') do |config|
@old-horizon
old-horizon / DxLib_Sample5.ps1
Created July 11, 2015 10:22
シューティング基本(DXライブラリサンプルプログラム) by PowerShell
# シューティング基本
# (http://homepage2.nifty.com/natupaji/DxLib/dxprogram.html#N5)
# スクリプトと同一ディレクトリ内のDXライブラリを読み込む
$root = [System.IO.Path]::GetDirectoryName($MyInvocation.InvocationName)
Add-Type -Path $([System.IO.Path]::Combine($root, "DxLibDotNet.dll"))
# 名前空間を省略
$DX = "DxLibDLL.DX" -as [type]
@old-horizon
old-horizon / gist:0d26ebf8e82571d7c5c0
Created August 16, 2014 10:54
画像付きツイートのPermalinkで実行すると別タブで画像を開くBookmarklet
javascript:$('.media-thumbnail').map(function(){window.open($(this).attr('data-url').replace(':large',':orig'))});
@old-horizon
old-horizon / gist:8597278
Created January 24, 2014 13:31
OpenES書き方事例集をログインせずに読むBookmarklet
javascript:(function(){jQuery('.submitok').css('display','block');jQuery('.submitok_box').eq(1).css('display','none');})();