Skip to content

Instantly share code, notes, and snippets.

@sile
sile / file0.erl
Last active June 30, 2016 16:55
ホットコードローディング時のプロセスクラッシュについて ref: http://qiita.com/sile/items/697f80db992819056127
-module(hoge).
-export([gen_external_fun/0, gen_local_fun/0, gen_anonymouns_fun/0]).
-export([hello/0]).
gen_external_fun() -> % 公開関数への参照を返す
fun hoge:hello/0. % これだけが完全修飾形式での参照 (= 複数回のコードローディングを跨いでも安全)
gen_local_fun() -> % ローカル関数への参照を返す
fun hello/0.
@voluntas
voluntas / shiguredo_webrtc_sfu_log.rst
Last active April 18, 2026 12:23
時雨堂 WebRTC SFU Sora 開発ログ
@obolton
obolton / elb-nodejs-ws.md
Last active November 12, 2023 11:49
Configuring an AWS Elastic Load Balancer for a Node.js application using WebSockets on EC2

AWS ELB with Node.js and WebSockets

This assumes that:

  • You are using Nginx.
  • You want to accept incoming connections on port 80.
  • Your Node.js app is listening on port 3000.
  • You want to be able to connect to your Node.js instance directly as well as via the load balancer.

####1. Create load balancer

@voluntas
voluntas / shiguredo_bot_system_gumistudy.rst
Last active April 30, 2017 02:08
時雨堂 BOT サーバー (gumiStudy #20)
@hikarock
hikarock / gist:818b67c91e98fd74929f
Created August 17, 2014 10:49
rendr-examplesメモ

rendr-examplesを眺めてみたメモ。

00. simple

基本的な構成。npm install & grunt serverhttp://localhost:3030で起動する(以下のexampleも同様)。

01. config

00ではindex.jsに直接書かれていたdataAdapterConfig/configディレクトリ内のファイルに分離。 NODE_ENVの値で本番/開発環境の設定ファイル切り替えを行う

@yukidarake
yukidarake / PIGGO#1.md
Last active August 29, 2015 14:03
#1
@2bbb
2bbb / HelloWorld.swift
Last active August 29, 2015 14:02
HelloWorld.swift
//
// main.swift
// SwiftLine
//
// Created by ISHII 2bit on 2014/06/03.
// Copyright (c) 2014 buffer Renaiss. All rights reserved.
//
import Foundation
@TiuTalk
TiuTalk / gist:dd18b2797f9bbddce8dc
Last active May 19, 2021 23:59
CakePHP on Heroku

CakePHP via composer

composer.json

{
  "name": "assando-sites",
  "require": {
    "cakephp/cakephp": ">=2.5.0",
    "ext-apcu": "*",
@yukidarake
yukidarake / npm.sh
Created May 30, 2014 10:06
npm系の知識(若干マニアック)
# npm自体をアップデート
npm update -g npm
# npm installのエイリアス
npm i
# tar.gzもインストールできる
npm i https://github.com/yukidarake/node-qc/archive/0.0.2.tar.gz
# githubからインストールできる