Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / NaniwaTECH_2016_1218_1_gpu.md
Last active September 24, 2017 07:30
なにわTECH道 2016.12.18 memo

GPUの基礎知識 アーキテクチャと歴史

なつたんさん

GPU

  • フリンの分類ではSIMD

  • ベクトル計算に強い

  • CUDA(Compute Unified Device Architecture)

@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 / 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値分類もうまくできている
    デモがグラフィカルできれい

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

#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 / 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 / decode.py
Created August 27, 2016 18:31
IceCTF InterceptedConversationsPt.2 writeup
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import base64
P = [27, 35, 50, 11, 8, 20, 44, 30, 6, 1, 5, 2, 33, 16, 36, 64, 3,
61, 54, 25, 12, 21, 26, 10, 57, 53, 38, 56, 58, 37, 43, 17, 42,
47, 4, 14, 7, 46, 34, 19, 23, 40, 63, 18, 45, 60, 13, 15, 22,
9, 62, 51, 32, 55, 29, 24, 41, 39, 49, 52, 48, 28, 31, 59]