Skip to content

Instantly share code, notes, and snippets.

View nekonenene's full-sized avatar

ハトネコエ nekonenene

View GitHub Profile
@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
@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 / .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 / 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 / .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 / 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 / gulpfile.js
Created February 1, 2016 18:31
ブログ用: jsmin をおこなうための gulp 設定ファイル
var gulp = require("gulp");
/* gulp とコマンドを打つと実行される */
gulp.task("default", function() {
console.log("Starting gulp...!!");
gulp.watch(["./original/*.js"], ["compress"]);
});
var uglify = require("gulp-uglify");
@nekonenene
nekonenene / euclid.js
Created April 7, 2016 08:10
ES6 を用いたユークリッド互除法。しかし displayGcd メソッド内のログ出力は undefined となる
$(function()
{
var gcd = new GreatestCommonDivisor(14, 21);
var outputElement = $(".output");
outputElement.append( gcd.displayGcd() );
});
class GreatestCommonDivisor
{
@nekonenene
nekonenene / Dockerfile
Last active October 25, 2016 13:47
最新の node, npm を入れる
FROM ubuntu:trusty
LABEL Description="latest npm" Vendor="nekonenene" Version="1.0"
## 文字コード設定
RUN locale-gen ja_JP.UTF-8
ENV LANG ja_JP.UTF-8
ENV LANGUAGE ja_JP:ja
ENV LC_ALL ja_JP.UTF-8
@nekonenene
nekonenene / .gitignore
Created September 10, 2016 14:17
ツクール用gitignore
### RPG Maker MV
movies/
save/
## pictures 以外の image フォルダを無視
img/animations
img/battlebacks1
img/battlebacks2