Skip to content

Instantly share code, notes, and snippets.

View AWtnb's full-sized avatar
i love coffee

Akira Watanabe AWtnb

i love coffee
View GitHub Profile
;PrintScreenでクリップボードに格納した画像を保存
SetTitleMatchMode, 2
; 置換しておく
arg = %1%
; 保存するファイル名を置換できる。
; hoge→test
MBS_StringReplace(arg, arg, "hoge" ,"test")
; 保存ファイルはexeと同じフォルダ
SavePath=%A_ScriptDir%\%arg%.png
@rxaviers
rxaviers / gist:7360908
Last active July 17, 2026 17:47
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@takekazuomi
takekazuomi / UserLanguage.ps1
Created June 2, 2014 08:34
Set-WinUserLanguageList -LanguageList ja-JPとした後に、IMEをGoogle日本語入力にする
#IMEの設定をposhから変更する
Set-WinUserLanguageList -LanguageList ja-JP
#IMEをGoogle日本語入力に切り替える
$l = Get-WinUserLanguageList
$l[0].InputMethodTips[0]="0411:{D5A86FD5-5308-47EA-AD16-9C4EB160EC3C}{773EB24E-CA1D-4B1B-B420-FA985BB0B80D}"
Set-WinUserLanguageList -LanguageList $l
#現在の設定をjsonに保存、ここから戻せないので参考程度
ConvertTo-Json $l | Out-File -FilePath WinUserLanguageList.json
@cucmberium
cucmberium / gist:e687e88565b6a9ca7039
Last active December 8, 2025 02:39
Twitterの検索API & Twitterでの検索術

twitterの検索術 (search/tweetssearch/universal)

search/tweets では一週間以上前のツイートは検索できないので注意

search/universal は公式のConsumerKey/ConsumerSecretでないと使用できない

当方では一切の責任を負いません

@hensm
hensm / etc.css
Created August 25, 2015 21:35
Thunderbird CSS styling
#threadTree {
background: #fff !important;
color: #3c3c3e !important;
}
#folderTree {
background: #fafafb !important;
color: #636365 !important;
}
#folderTree > treechildren::-moz-tree-cell(primary) {
@Chandler
Chandler / slack_history.py
Last active March 27, 2025 01:16
Download Slack Channel/PrivateChannel/DirectMessage History
print("UPDATE AUG 2023: this script is beyond old and broken")
print("You may find interesting and more up to date resources in the comments of the gist")
exit()
from slacker import Slacker
import json
import argparse
import os
# This script finds all channels, private channels and direct messages
@stknohg
stknohg / Write-BOMlessUTF8Sample.ps1
Last active February 16, 2026 08:33
PowerShellでBOM無しUTF8を書くサンプル
# 例1
"書き込み内容" `
| % { [Text.Encoding]::UTF8.GetBytes($_) } `
| Set-Content -Path ".\BOMlessUTF8.txt" -Encoding Byte
# 例2
Get-Content -Path ".\Source.txt" -Raw -Encoding Default `
| % { [Text.Encoding]::UTF8.GetBytes($_) } `
| Set-Content -Path ".\BOMlessUTF8.txt" -Encoding Byte
@obonyojimmy
obonyojimmy / active-window.go
Created January 1, 2017 02:50
Go lang get current foreground window
package main
import (
"fmt"
"syscall"
"unsafe"
"golang.org/x/sys/windows"
)
var (
@kyukyunyorituryo
kyukyunyorituryo / 校正支援.js
Created June 8, 2017 15:47
校正支援Meryマクロの途中でXMLを返す
// -----------------------------------------------------------------------------
// 校正支援ツール
// 説明 選択した文字の校正支援する。
//
//
// 参考
// http://qiita.com/tnakagawa/items/3bce99d49b1aa3fc9a72
// http://qiita.com/tnakagawa/items/4b501c21abcd39f30fbe
// 使用API
// https://developer.yahoo.co.jp/webapi/jlp/kousei/v1/kousei.html
@tablacus
tablacus / openselectednextpane.js
Last active September 8, 2021 10:52
Open selected items in next pane. (Require an add-on "Switch to next pane") - Tablacus Explorer
let FV = GetFolderView(Ctrl, pt);
const Selected = FV.SelectedItems();
if (Selected.Count) {
FV = Sync.SwitchPane.NextFV(FV);
for (let i = 0; i < Selected.Count; i++) {
NavigateFV(FV, Selected.Item(i), SBSP_NEWBROWSER);
}
}