(void) - cardboardView:didFireEvent:
ユーザーイベントが発生したときに呼び出されます
(void) - cardboardView:willStartDrawing:
最初のフレームが描画される前に呼ばれます
(void) - cardboardView:prepareDrawFrame:
各フレームの開始前に繰り返し呼ばれます
(void) - cardboardView:drawEye:withHeadTransform:
OpenGL レンダリングを実行するために、各フレーム毎に呼び出されます
(void) - cardboardView:shouldPauseDrawing:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = new Image(); | |
a.src = "http://ec2.images-amazon.com/images/I/41BQMkJNYsL._SL500_AA300_.jpg"; | |
document.body.innerHTML = ""; | |
document.body.appendChild(a); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate url; | |
use url::percent_encoding::utf8_percent_encode; | |
use url::percent_encoding::FORM_URLENCODED_ENCODE_SET; | |
fn main () { | |
let a = "https://gist.github.com/nacika-ins/c08b3c275d80796a2fe7"; | |
let b = utf8_percent_encode(a, FORM_URLENCODED_ENCODE_SET); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use google::GoogleAuthAccount; | |
use http::Client; | |
/* URL | |
-------------------------------------------------------------------------------*/ | |
const URL_GOOGLE_PLUS: &'static str = "https://plus.google.com/"; | |
/* GooglePlusは parent という寿命を持っている | |
-------------------------------------------------------------------------------*/ | |
pub struct GooglePlus<'parent> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.5.1 | |
# build protos | |
WORKDIR /usr/src/app | |
COPY tmp/protoc /usr/local/bin/protoc | |
COPY protos /usr/src/app/protos | |
RUN bash -c "source /etc/profile && source ~/.bashrc && cd /usr/src/app/protos && protoc --python_out=plugins=grpc:. customer_service.proto" | |
# protobuf | |
WORKDIR /usr/src/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to find out the configuration commands, run: h2o --help | |
# 最大コネクション数 | |
max-connections: 1024 | |
max-delegations: 100 | |
# スレッド数 | |
num-threads: 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install pyenv | |
brew install pyenv-virtualenv | |
brew update && brew upgrade pyenv | |
xcode-select --install | |
pyenv install 3.5.1 | |
pyenv virtualenv 3.5.1 intellij-python-3.5.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.shortcuts import render, redirect | |
from django.http import HttpResponse | |
from .models import Item | |
from redis import Redis | |
from rest_framework import viewsets, filters | |
from .serializers import * | |
from django.contrib.auth.models import User as AdminUser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
machine: | |
pre: | |
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0 | |
services: | |
- docker | |
dependencies: | |
pre: | |
- pip install docker-compose | |
test: |
OlderNewer