Skip to content

Instantly share code, notes, and snippets.

@reireias
reireias / hako.c
Last active Aug 6, 2020
箱入り娘パズルの最小手を求めるプログラム(C言語)
View hako.c
// 約9年前の学生時代に実装した内容
// これを24時間以内に仕上げたらしい
/**
+----+ +-----------+ +----+
| 父 | | | | 母 |
| | | 箱 入 | | |
| | | り 娘 | | |
| 親 | | | | 親 |
+----+ +-----------+ +----+
View alias_qiita.md

ls系

alias ls='ls --color=auto'
alias ls='ls -G'
alias ll='ls -alF'
alias ll='ls -lh'
alias ll="ls -l"
alias la='ls -A'
alias la='ls -a'
alias l='ls -CF'
View alias.md

https://github.com/reireias/dotseeker

grep -r -E -v -h '^\s*#' files | grep --color=none -E "^\s*alias " | sed -e 's/#.*//g' -e 's/^\s*//g' -e 's/\s*$//g' | sort | uniq -c | sort -k2 | pbcopy
  1 alias      ..='cd ..'
  1 alias     ...='cd ../..'
  1 alias     ci='git commit'
  1 alias     co='git checkout'
View alias_ranking.md

https://github.com/reireias/dotseeker

grep -r -E -v -h '^\s*#' files | grep --color=none -E "^\s*alias " | sed -e 's/#.*//g' -e 's/^\s*//g' -e 's/\s*$//g' | sort | uniq -c | sort -nr
 90 alias ls='ls --color=auto'
 87 alias grep='grep --color=auto'
 59 alias fgrep='fgrep --color=auto'
 59 alias egrep='egrep --color=auto'
@reireias
reireias / index.vue
Created Dec 25, 2018
v-flex move transition
View index.vue
<template>
<v-container grid-list-md>
<!-- simple -->
<div id="flip-list-demo" class="demo">
<transition-group name="flip-list" tag="ul">
<li v-for="item in items" :key="item">
{{ item }}
</li>
</transition-group>
</div>
View sample.vue
<template>
<v-container grid-list-md>
<v-layout
v-for="category in categories"
:key="category.name"
wrap
>
<v-flex xs12>
<v-card>
<v-card-text>{{ category.name }}</v-card-text>
View mhw.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.