Skip to content

Instantly share code, notes, and snippets.

@kakutani
kakutani / reading-polished-ruby-translation.md
Last active November 3, 2021 14:06
Polished Ruby Programming翻訳査読書(のようなもの)

"Polished Ruby Programming" by Jeremy Evans

-- Build better software with more intuitive, maintainable, scalable, and high-performance Ruby code

「Rubyの磨きかた -- わかりやすくてメンテナンスしやすい、スケール可能で高性能なRubyコードでソフトウェアを上手につくろう」みたいな感じ?

https://www.packtpub.com/product/polished-ruby-programming/9781801072724

  • Publication date: June 2021
  • Publisher: Packt
  • Pages: 381
@palmerandy
palmerandy / azure-function-arm-template-with-staging-slot.json
Last active February 18, 2020 08:30
Azure Function ARM template with Staging and Production slots.
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"azureSubscriptionId": {
"type": "string",
"metadata": {
"description": "The azure subscription Id. Something like 12345678-abcd-abcd-abcd-1234567890ab."
}
},
@ufcpp
ufcpp / RecursivePattern.cs
Created November 5, 2018 17:27
2重で、タプルな switch 式を使ってみてるやつ。recursive pattern のデモ用。
using System;
public static class C
{
public static int Calculate(this Node n, int x)
=> n switch
{
Var v => x,
Const c => c.Value,
Add(var l, var r) => l.Calculate(x) + r.Calculate(x),
@aluanhaddad
aluanhaddad / Example.cs
Created November 22, 2017 23:31
C# Observable HTTP
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Immutable;
using System.Linq;
using System.Net.Http;
using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Disposables;
using System.Reactive.Joins;
using System.Reactive.Linq;
@voluntas
voluntas / typescript.rst
Last active August 29, 2023 20:34
TypeScript コトハジメ

TypeScript コトハジメ

日時:2017-09-10
作:@voluntas
バージョン:0.3.0
URL:https://voluntas.githu.io/

突っ込みは Twitter @voluntas まで。

問題1. 選択肢の中からRubyの予約語ではないものを2つ選択してください。

  • A.super
  • B.begin
  • C.try
  • D.goto

問題2. 以下のコードを実行した出力として正しいものを1つ選択してください。

def foo (a, *b)
 p a
@sagivo
sagivo / gist:3a4b2f2c7ac6e1b5267c2f1f59ac6c6b
Last active March 15, 2026 05:59
webRTC stun / turn server list
to check if the server works - https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice
stun:
stun.l.google.com:19302,
stun1.l.google.com:19302,
stun2.l.google.com:19302,
stun3.l.google.com:19302,
stun4.l.google.com:19302,
stun.ekiga.net,
stun.ideasip.com,
@uemuraj
uemuraj / coturn.md
Last active December 27, 2020 00:47
TURNサーバの構築

TURNサーバの構築

WebRTCを使ってみよう! で紹介されている rfc5766-turn-server は既に更新が終わり、別のプロジェクトになっています。

coturn を代わりに使用します。 https://github.com/coturn/coturn/wiki/Downloads から最新バージョンをダウンロードしてビルドします。

※ダウンロードページに turnserver-*-amazon-aws-ec2-x86_64.txt というファイルあり! EC2 ではこの内容にも注意すること

ビルドに必要なパッケージをインストール

@voluntas
voluntas / webrtc.rst
Last active March 12, 2026 12:25
WebRTC コトハジメ
@voluntas
voluntas / webrtc.rst
Last active January 13, 2025 22:40
WebRTC の未来