Skip to content

Instantly share code, notes, and snippets.

MSG="hello gist"
echo ${MSG}
@yatemmma
yatemmma / diff.vb
Created June 29, 2012 11:17
条件付き書式で指定行とdiff
Sub 条件付き書式で指定行とdiff()
Dim rowNum As Integer
rowNum = InputBox("比較対象は何行上?", "", "")
setFormatConditions rowNum
End Sub
@yatemmma
yatemmma / janken.rb
Created August 30, 2012 17:00
じゃんけんプログラム
class Input < String
def exit?
self =~ /^(exit|quit|q)$/
end
def gu?
self =~ /^(gu|g)$/
end
Editor.SelectWord(0);
Editor.SearchClearMark(0);
javascript:src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js";sc = document.createElement("script");sc.type="text/javascript";sc.src=src;document.body.appendChild(sc);void(false);
(function(rows, cols) {
function group(rows, cols, i) {
function xValue(i) {
if (i % cols == 0) {
return Math.min(3, cols);
} else if (i % cols == 1) {
return 1;
}
rem recursively remove .svn folders within current folder.
for /r %%d in (.svn) do rmdir /s /q "%%d"
pause
@yatemmma
yatemmma / git-lesson.md
Last active February 15, 2022 03:36
git初心者への道 - お仕事で困らないレベルまでググっとします。

git初心者への道

まずやってみよう - コミットする、ログを見る、差分を見る

初登場するコマンド: init, add, commit, log, config, status, diff

@yatemmma
yatemmma / heredoc.js
Created December 1, 2013 08:07
javascriptでヒアドキュメント風
Function.prototype.heredoc = function() {
return this.toString().match(/[^]*\/\*([^]*)\*\/\}$/)[1].replace(/^\n/, "");
};
var doc = (function() {/*
hoge hoge
fuga fuga
piyo piyo
*/}).heredoc();
@yatemmma
yatemmma / Gemfile
Last active June 13, 2017 06:58
gh2csv - GitHub issues export to csv.
source 'https://rubygems.org'
gem 'octokit'