Skip to content

Instantly share code, notes, and snippets.

@yoonchulkoh
yoonchulkoh / DecalGirl Bigimage Bookmarklet
Created February 27, 2011 13:09
DecalGirlのサイトの一覧画像が小さいのでサイト下に大きな画像一覧を表示するブックマークレット。 一覧の表示件数はあまり多くするとハングアップするので注意。
javascript:(
function(){
$("body").append("<a name=\"BigImageTop\"></a>");
$('div.tileditem a img').each(function(index, element){
$("body").append("<div style=\"float: left;\"><a href=\"" + $(this).attr('data-tipped') + "\"><img src=\""+ element.src.replace('100', '400') +"\" alt=\"" + element.t + "\" /><br /><p style=\"color: white\">" + element.alt + "</p></a></div>");
});
window.location.hash="BigImageTop";
}
)();
@yoonchulkoh
yoonchulkoh / ASUrl
Created February 27, 2011 13:39
AmazonURLを短くします。タイトル+URL形式でダイアログ表示します。
javascript:(function(){var%20asin=document.getElementById('ASIN').value;var%20title=document.title.slice(14);prompt('Copy%20Amazon%20Title%20&%20Short%20URL',title+'http://amazon.jp/dp/'+asin);})();
@yoonchulkoh
yoonchulkoh / シフト勤務自動入力
Last active September 25, 2015 02:17
自社出退勤管理システムシフト勤務入力用
javascript:(function(){
document.reportInput.tekiyou.options[6].selected=true; /* WF(シフト勤務) */
document.reportInput.stmEH_P.value='09'; /* 出勤時(予定) */
document.reportInput.stmEM_P.value=00; /* 出勤分(予定) */
document.reportInput.etmEH_P.value=18; /* 退勤秒(予定) */
document.reportInput.etmEM_P.value=00; /* 退勤時(予定) */
document.reportInput.stmH.value='09'; /* 出勤時 */
document.reportInput.stmM.value=00; /* 出勤分 */
document.reportInput.etmH.value=18; /* 退勤時 */
document.reportInput.etmM.value=00; /* 退勤分 */
@yoonchulkoh
yoonchulkoh / gist:1180660
Created August 30, 2011 11:02
google maps api
<!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google Maps</title>
<script type="text/javascript"
src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
function initialize() {
@yoonchulkoh
yoonchulkoh / 全てのシートをA1に揃える
Created September 13, 2011 00:45
[VBA]全てのシートをA1に揃える
Sub 全てのシートをA1に揃える()
Dim s As Object
Dim defaultSheet As Object
Set defaultSheet = ActiveSheet
For Each s In ActiveWorkbook.Sheets
s.Activate
ActiveSheet.Range("A1").Select 'A1を選択
ActiveWindow.Zoom = 100 '倍率を100%に
Next s
Worksheets(1).Activate '最後に選択しておきたいシート
@yoonchulkoh
yoonchulkoh / gist:1258979
Created October 3, 2011 12:12
jQueryが使えないサイトでブックマークレットとかやりたいときにjQueryを追加する
var script = document.createElement("script");
script.setAttribute("type", "text/javascript");
script.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js");
document.body.appendChild(script);
@yoonchulkoh
yoonchulkoh / gist:1261060
Created October 4, 2011 07:10
gitターミナルで色分けする
git config --global color.ui "auto"
@yoonchulkoh
yoonchulkoh / gist:1280233
Created October 12, 2011 04:03
VimShellでコマンド実行時のエラー
function vimshell#execute_current_line..vimshell#mappings#execute_line..<SNR>131_execute_command_line..vimshell#history#append..vimshell#history#write の処理中にエラーが検出さ
れました:
行 2:
E482: ファイル /Users/yoonchulkoh/.vimshell/command-history を作成できません
@yoonchulkoh
yoonchulkoh / gist:1362996
Created November 14, 2011 00:58
Excel定義書からmigrationファイル書き出し
Public Const COLUMN_NAME_X = 10
Public Const COLUMN_TYPE_X = 18
Public Const COLUMN_DIGIT_X = 24
Public Const COLUMN_NULL_X = 28
Public Const COLUMN_UNIQUE_X = 30
Public Const COLUMN_TYPE_START = 18
Public Const COLUMN_LIMIT_START = 45
Public Const COLUMN_NULL_START = 60
Public Type ColumnData
@yoonchulkoh
yoonchulkoh / gist:1479972
Created December 15, 2011 05:43
シラバス印刷用ブックマークレット
javascript:(
function(){
header = document.getElementById("header");
header.parentNode.removeChild(header);
footer = document.getElementById("footer");
footer.parentNode.removeChild(footer);
menubar = document.getElementById("menubar");
menubar.parentNode.removeChild(menubar);
document.getElementById("wrap_content").style.float = "none";
}