Skip to content

Instantly share code, notes, and snippets.

View shiopon01's full-sized avatar

Shion Ueda shiopon01

View GitHub Profile
@shiopon01
shiopon01 / bashrc_example
Last active October 31, 2017 00:21
これからbashrc触り始める人へ
## bashrc_example for shiopon01
##
echo "
SHLVL : $SHLVL
HOSTNAME : $HOSTNAME
"
# Aliases
unalias -a
@shiopon01
shiopon01 / arduino_morse-code.c
Last active July 22, 2016 05:52
arduino_morse-code
int incomingByte = 0; // 受信データ用
int ten = 200;
int sen = 600;
int space = 1400;
int ac_minus = 0;
// 32 space
// 48-57 num 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
// 65-90 english a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z
// 97-122 ENGLISH A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z
// 関数ポインタ
#include <stdio.h>
int kansu(int a)
{
return a * 2;
}
void main()
<template>
<div id="test">
HELLO
</div>
</template>
<script>
export default {
name: 'test'
}
+---------+       +----------+
|         | +---> |          |
| Gateway |       | Internet |
|         | <---+ |          |
+---------+       +----------+
@shiopon01
shiopon01 / gist:eb24f21f16204f01f6594e1872243b4c
Created January 30, 2018 09:12
Gitを知らないプログラマーにGitを教える際の導入
この記事はGitの導入記事ではあるが、教育者目線で話を進める。もちろんこれからGitを始めたいという人も歓迎する。
ここに書かれていることはGitの使い方ではなく、そもそもどうしてGitが必要なのかということと簡単な歴史の振り返りであり、導入である。
# もくじ
[:contents]
# はじめに
Gitを教える際は何よりも、バージョン管理システムの歴史を教えることが一番の近道のように思う。これはGitに限らず、プログラミング言語などを教えるときも同様だ。なぜそのシステムが必要なのか把握してもらい、それを実現するためにプログラマーがどんな道のりを歩んできたかを伝えることによって、そのシステムを深く理解してもらえる。(ような気がする)
require 'io/console'
require 'benchmark'
class Enword
def initialize
@words = []
#名詞(身の回りの身近なもの)
@words.concat(["egg", "bag", "rose", "chair", "bat", "fish", "notebook", "pencil", "dog", "desk", "watch", "mitt", "milk", "flower", "door", "boat", "piano", "orange", "bird", "sheep", "cup", "bus", "apple", "fruit", "car", "cake", "picture", "cat", "stamp", "plane", "book", "racket", "glass", "bed", "letter", "tape", "cap", "mail", "box", "bread", "doll", "table", "tree", "pen", "map", "cow", "pot", "camera", "hand", "lemon"])
#名詞(場所、建物)
@words.concat(["yard", "bank", "library", "hospital", "hotel", "village", "kitchen", "wall", "park", "girl", "father", "doctor", "pilot", "man", "cook", "sister", "mother", "city", "window", "church", "school", "country", "office", "garden", "town", "brother", "woman", "citizen", "parent", "student", "clerk", "family", "teacher", "player", "floor", "store", "station", "house", "field", "japan", "gate", "room", "aunt", "boy", "son", "nu
while (!success)
{
try();
}
# Prerequisites:
# You must be create config file.
#
# $ touch ~/.kube/config-<cluster-name>
# Reference: https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html
#
# Build:
# $ docker build -t kubectl .
#
# Run:
$ sudo add-apt-repository ppa:kelleyk/emacs
$ sudo apt update
$ sudo apt install emacs26