Skip to content

Instantly share code, notes, and snippets.

View nekonenene's full-sized avatar

ハトネコエ nekonenene

View GitHub Profile
@nekonenene
nekonenene / practice.js
Created February 1, 2016 18:21
ブログ公開用:無駄の多いJSコード
window.addEventListener("load", function () {
var h1Tag = document.getElementsByTagName("h1") ;
h1Tag[0].style.color = "red" ;
var practiceStringOutEle = document.getElementById("practiceString") ;
stringLesson(practiceStringOutEle) ;
/* 文字列を入れてみる */
function stringLesson(ele){
@nekonenene
nekonenene / .vimrc
Created January 6, 2016 09:49
vim 設定
" インデントの設定
set tabstop=4
set shiftwidth=4
set softtabstop=0
set smartindent
set smarttab
set ruler
set number " 行番号
@nekonenene
nekonenene / InitPaintLogic.gs
Created November 21, 2015 23:51
ペイントロジックのテンプレートを現在のスプレッドシートに作ってくれる、Google Apps Script
/** 色の指定 */
function CellColor()
{
this.initial = "#ffeecc" ;
this.painted = "brown" ;
this.cantPaint = "gray" ;
}
/** 定数 */
function Constance()
@nekonenene
nekonenene / .gitconfig
Last active August 9, 2020 17:06
ブログ公開用データ: .gitconfig の一例
[url "git@github.com:"]
pushInsteadOf = https://github.com/ # use SSH
[user]
name = ハトネコエ
email = hatonekoe@gmail.com
[alias]
st = status
co = checkout
sw = switch
br = branch
@nekonenene
nekonenene / .bashrc
Last active January 28, 2017 17:54
ブログ公開用データ: .bashrc も .zshrc も同じ設定でOK
alias emacs='open -a Emacs.app -n' # -a は Application を開くのに必要な宣言。 -n は new Window の n
alias iterm='open -a iTerm.app -n' # 律儀に .app まで書いてますが、 'open -a iterm' でも大丈夫です
alias firefox='open -a Firefox.app --background'
alias chrome='open -a "Google Chrome.app" --background'
alias safari='open -a Safari.app --background'
alias opera='open -a Opera.app --background'
alias vim='open -a MacVim.app -n'
alias xcode='open -a Xcode.app'
alias tedit='open -e' # TextEdit というMac標準のエディタが開きます
@nekonenene
nekonenene / .bashrc
Last active October 12, 2015 20:12
.bahrc For Mac
## .inputrc に書く。補完で大文字小文字を無視
## set completion-ignore-case on
alias s='sudo'
alias ex='exit'
alias cd..='cd ..'
## Mac は open コマンドを多用する
## 参照 : http://staku.designbits.jp/terminal-run-app/
## より詳しく : http://www.absolute-keitarou.net/blog/?p=661