Skip to content

Instantly share code, notes, and snippets.

View sassy's full-sized avatar
😀
happy hacking!

Satoshi Watanabe sassy

😀
happy hacking!
View GitHub Profile
@sassy
sassy / cs.md
Created May 22, 2018 16:11
コンピュータサイエンスの体系

情報数学

  • 符号理論
  • 情報理論
  • 群・環・有限体の情報化学的展開

離散数学

  • グラフ理論
  • 線形計画法
  • マトロイド理論
  • 離散量最適化法
@sassy
sassy / fizzbuzz.ml
Created May 3, 2018 14:34
FizzBuzz
let rec fizzbuzz n max =
if n mod 15 == 0 then Printf.printf "fizz buzz\n"
else if n mod 3 == 0 then Printf.printf "fizz\n"
else if n mod 5 == 0 then Printf.printf "buzz\n"
else Printf.printf "%d\n" n;
if n < max then fizzbuzz (n + 1) max
let () =
fizzbuzz 1 30
@sassy
sassy / com.md
Last active May 11, 2017 06:48
開発を円滑にするためのコミュニケーションを考える

コミュニケーションの難しさ

一人でコードを書いてサービスやプロダクトを作ることもできますが、 ある程度大きなものを作る場合はやっぱり一人じゃ限界があります。 いろんな人に気持ち良く使ってもらうソフトウェアは、やっぱり複数人が関わって開発する必要があります。

しかし、人間、生まれ育った環境も違えば信じる宗教も違います。 そこで意思疎通するのは非常に大変です。 特に私みたいにコミュ障の人間は非常に苦労します。

しかしこの問題をうまく解決しないと、ものを作るのに支障が出てしまいます。

フロントエンドのエンジニアリング

  • Satoshi.Watanabe
  • 2016-11-16

今まで

  • 主なアプリ開発
  • NetFront Life Browser
  • GREE / GREE Platform
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>hello</title>
<style>
webview {
position:absolute;
top: 0;
right: 0;
@sassy
sassy / fontfamily.html
Created March 8, 2016 05:38
font-familyのテスト
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<style>
.sansserif {
font-family: sans-serif;
}
.serif {
font-family: serif;
import std.stdio;
void main(string[] args)
{
for (uint i; i <= 100; i++) {
if (i % 15 == 0) writeln("FizzBuzz");
else if (i % 5 == 0) writeln("Buzz");
else if (i % 3 == 0) writeln("Fizz");
else writeln(i);
}
@sassy
sassy / .sublime-keymap
Created January 16, 2015 05:18
Sublime Textのキーバインド
[
{"keys" : ["ctrl+f"], "command" : "move", "args" : {"by" : "characters", "forward" : true}},
{"keys" : ["ctrl+b"], "command" : "move", "args" : {"by" : "characters", "forward" : false}},
{"keys" : ["ctrl+n"], "command" : "move", "args" : {"by" : "lines", "forward" : true}},
{"keys" : ["ctrl+p"], "command" : "move", "args" : {"by" : "lines", "forward" : false}},
{"keys" : ["ctrl+h"], "command" : "left_delete" },
{"keys" : ["ctrl+d"], "command" : "right_delete"},
{"keys" : ["ctrl+a"], "command" : "move_to", "args" : {"to" : "bol", "extend" : false}},
{"keys" : ["ctrl+e"], "command" : "move_to", "args" : {"to" : "eol", "extend" : false}},
]
@sassy
sassy / index_l10n_test.html
Last active August 29, 2015 14:10
l10n.jsテスト
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="localizations" href="localization.json" type="application/x-l10n+json">
<link rel="localization" hreflang="ja" href="japanese.json" type="application/x-l10n+json">
<script type="text/javascript" src="bower_components/l10n/l10n.js"></script>
<script type="text/javascript" src="bower_components/vue/dist/vue.min.js"></script>
<script>
@sassy
sassy / app.js
Created October 14, 2014 14:06
WebSocket
var http = require('http');
var fs = require('fs');
var ws = require('ws');
var server = http.createServer(function(req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
if (req.url.match(/^\/send$/)) {
res.end(fs.readFileSync('send.html'));
} else {
res.end(fs.readFileSync('index.html'));