Skip to content

Instantly share code, notes, and snippets.

node_modules

Jade FTW

こんにちは。今回は現実逃避を兼ねて Jade の素晴らしさをお伝えしたいと思います。

Jade とは何か

[Jade][0] は JST (JavaScript Templates) の一つであり、HTML を書くための[軽量マークアップ言語][1] である [Haml][2] に影響を受けた JavaScript テンプレートエンジンでもあります。

実践 Erlang/OTP コトハジメ 2014.11

更新

2014-11-20

バージョン

0.0.5

作者

@voluntas

URL

http://voluntas.github.io/

概要

Oculus Rift メモ

概要

2012 年 8 月に Kickstarter 上で立ち上げられたプロジェクト。新しいゲーム用バーチャルリアリティ (VR) ヘッドセットとして高い注目を集め、同年 9 月に 250,000 USD 資金調達目標を大きく上回る 2,437,429 USD の資金調達に成功し、プロジェクトのスタートを切る。

同種のデバイスとしては Sony のヘッドマウントディスプレイ (HMD) である HMZ シリーズなどが考えられるだろうが、Oculus Rift はこれをはるかにしのぐ機能と性能を兼ね備えている。

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

00. simple

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

01. config

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

Benchmarking Nginx with Go

There are a lot of ways to serve a Go HTTP application. The best choices depend on each use case. Currently nginx looks to be the standard web server for every new project even though there are other great web servers as well. However, how much is the overhead of serving a Go application behind an nginx server? Do we need some nginx features (vhosts, load balancing, cache, etc) or can you serve directly from Go? If you need nginx, what is the fastest connection mechanism? This are the kind of questions I'm intended to answer here. The purpose of this benchmark is not to tell that Go is faster or slower than nginx. That would be stupid.

So, these are the different settings we are going to compare:

  • Go HTTP standalone (as the control group)
  • Nginx proxy to Go HTTP
  • Nginx fastcgi to Go TCP FastCGI
  • Nginx fastcgi to Go Unix Socket FastCGI
using UnityEngine;
using System.Collections;
public class Loby : MonoBehaviour
{
void OnEnable ()
{
// サーバー接続
PhotonNetwork.ConnectUsingSettings ("0.1");
}
//
// main.swift
// SwiftLine
//
// Created by ISHII 2bit on 2014/06/03.
// Copyright (c) 2014 buffer Renaiss. All rights reserved.
//
import Foundation
# 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からインストールできる