Skip to content

Instantly share code, notes, and snippets.

View syumai's full-sized avatar
:octocat:

syumai syumai

:octocat:
View GitHub Profile
@syumai
syumai / twitter-avatar-retriever.go
Last active February 19, 2022 12:43
Twitter avatar image retriever
package main
import (
"fmt"
"io"
"net/http"
"os"
"path/filepath"
"strings"
@syumai
syumai / gospec.diff
Created January 12, 2022 10:05
gospec diff 0112
diff --git a/doc/go_spec.html b/doc/go_spec.html
index fd5fee46eb..7c20236016 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -1,9 +1,16 @@
<!--{
- "Title": "The Go Programming Language Specification",
- "Subtitle": "Version of Jul 26, 2021",
+ "Title": "The Go Programming Language Specification - Go 1.18 Draft (incomplete)",
+ "Subtitle": "Version of Jan 10, 2022",
@syumai
syumai / gospec.diff
Last active December 15, 2021 10:22
gospecdiff12_15
diff --git a/doc/go_spec.html b/doc/go_spec.html
index fd5fee46eb..cb57aa301c 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -1,9 +1,16 @@
<!--{
- "Title": "The Go Programming Language Specification",
- "Subtitle": "Version of Jul 26, 2021",
+ "Title": "The Go Programming Language Specification - Go 1.18 Draft (incomplete)",
+ "Subtitle": "Version of Dec 13, 2021",
@syumai
syumai / fake.py
Created September 7, 2021 08:46
faker
# run pip install Faker
#
# usage: python3 fake.py company 10 => outputs 10 company names in Japanese
import sys
from faker import Faker
fake = Faker('ja_JP')
args = sys.argv
cmd = args[1]
@syumai
syumai / kitty.conf
Created October 3, 2020 15:42
Kitty config
font_family Ubuntu Mono
bold_font Ubuntu Mono Bold
italic_font Ubuntu Mono Italic
bold_italic_font Ubuntu Mono Bold Italic
font_size 14.0
shell zsh
#: Theme: monokai
@syumai
syumai / simpe_stack_queue.go
Last active August 26, 2018 11:38
Simple stack & queue in Go
package main
import "fmt"
type Stack struct {
len int
buf []int
}
func (s *Stack) Push(i int) {
@syumai
syumai / bundle.js
Created August 5, 2018 06:01
ReactNative issue #18942
__d(function (global, _require, module, exports, _dependencyMap) {
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react2 = _require(_dependencyMap[0], "react");
var _react3 = _interopRequireDefault(_react2);
var _index = _require(_dependencyMap[1], "./node_modules/react-transform-hmr/lib/index.js");
@syumai
syumai / hug_streaming_tips_en.md
Last active March 26, 2016 17:05
hug_streaming_tips_en

HUG live streaming tips

  • We think less time lags are important for live streaming.
  • Improving publisher's environment is the most important point if you want to stream high quality video.

Recommended browser for live streaming

  • Firefox

Recommended tools for outside live streaming

  • Windows laptop
@syumai
syumai / hug_streaming_tips.md
Last active February 26, 2016 18:07
hug_streaming_tips.md

HUG外配信Tips

  • HUG( http://hugvr.com )では、WebRTCを利用してなるべくタイムラグをなくし、受信側と配信側で円滑にコミュニケーションがとれることを重視しています。
  • WebRTCで高品質な配信を行うには、 配信側の環境が整っていること が最も大事なので、それについてTipsをまとめます。

オススメ環境

  • Windowsの動くノートPC
  • USBテザリングの使える機器
  • Firefox

推奨する理由

#include <iostream>
#include <string>
#include <vector>
#include <cstdlib>
#include <ctime>
#include <fstream>
using namespace std;