Skip to content

Instantly share code, notes, and snippets.

#include "mbed.h"
AnalogIn sensor[] = {dp19, dp20, dp21};
BusOut mdA(dp7, dp6);
BusOut mdB(dp9, dp8);
Serial pc(USBTX, USBRX);
int sensor2bin(float sensor_var, float threshold)
#include "mbed.h"
AnalogIn sensor[] = {dp19, dp20, dp21};
BusOut mdA(dp7, dp6);
BusOut mdB(dp9, dp8);
Serial pc(USBTX, USBRX);
int sensor2bin(float sensor_var, float threshold)
@yue82
yue82 / BaudotCodec.py
Last active December 16, 2016 11:25
OccuRUtic;Nine
# -*- coding: utf-8 -*-
class BaudotCodec():
encodes = {}
decodes = {}
ltr_trans_rule = {'保留域': 'NA',
'SPACE': ' ',
'LINE_FEED': '\n'}
@yue82
yue82 / stripe_hanoi.py
Created December 30, 2016 13:55
33c3 ctf hohoho's hanoi game solver
# -*- coding: utf-8 -*-
abc = ['1', '2', '3']
def move_pile(a, b, n, c):
if n == 0:
return ''
elif n == 1:
return (a + b) * 2
@yue82
yue82 / LPC824_check_motor.c
Last active May 23, 2017 01:58
LPC824 trial
#include "mbed.h"
AnalogIn sensor[] = {dp19, dp20, dp21};
BusOut mdA(dp7, dp6);
BusOut mdB(dp9, dp8);
Serial pc(USBTX, USBRX);
int motorTest(int code){
@yue82
yue82 / P06.scala
Last active May 23, 2017 01:59
Scala training S-99 P6
// http://aperiodic.net/phil/scala/s-99/
// P06: Find out whether a list is a palindrome.
// Example:
// scala> isPalindrome(List(1, 2, 3, 2, 1))
// res0: Boolean = true
import scala.annotation.tailrec
object P06 {
@yue82
yue82 / BinTree.scala
Created May 23, 2017 14:48
Scala training Binary Tree method
sealed abstract class Tree
case class Branch(value: Int, left: Tree, right: Tree) extends Tree
case object Empty extends Tree
object TreeObject {
def max(tree: Tree): Int = tree match {
case Branch(v, l, r) => math.max(math.max(v, this.max(l)), this.max(r))
case Empty => 0
}
@yue82
yue82 / Training_memo_2017_0517_t_wada.md
Last active September 24, 2017 07:09
エンジニア研修 t_wadaさん講演 2017.05.17 memo

エンジニアとしてこの先生きのこるためには

t_wada == 和田卓人さん

自己紹介

  • プログラマが知るべき97のこと
    短めのエッセイが並んでいるので読みやすい,おすすめ
    きのこ本

  • SQLアンチパターン

@yue82
yue82 / DevFest_Kansai_2016_1127_1.md
Last active September 24, 2017 07:25
DevFest Kansai 2016.11.27 memo (15:30~16:30 Main theater)

Googleがめざす、誰もが使える機械学習

グーグル株式会社 Developer Advocate 佐藤一憲さん

機械学習の活用例

  • 機械学習概要
    渦巻状の2値分類もうまくできている
    デモがグラフィカルできれい

  • 畳み込みによる音声生成

@yue82
yue82 / WbaWakate_2017_0904_philosophy.md
Last active September 24, 2017 07:26
第29回 全脳アーキテクチャ若手の会 勉強会 「哲学的人工知能批判と第3次AIブーム」 2017.09.04 memo