Skip to content

Instantly share code, notes, and snippets.

View treby's full-sized avatar

Hiroaki Ninomiya treby

View GitHub Profile
@treby
treby / whenever.md
Last active November 30, 2016 03:32
Shinjuku.rb#43 research -- javan/whenever

Wheneverの調査

Shinjuku.rb #43

Wheneverとは、明快なシンタックスとcron jobを提供するgemである。

使い方

インストール

@treby
treby / gist:ca5cdc7e708cfe28f568
Created July 6, 2014 04:06
gitbook環境構築
- nodejsのインストール
- homebrewのインストール
Last login: Sun Jul 6 11:39:53 on ttys000
Mami:~ treby$ ruby -v
ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13]
Mami:~ treby$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
@treby
treby / evil.js
Last active August 29, 2015 14:01
alert('hello');
@treby
treby / gist:10592180
Created April 13, 2014 16:51
Cheat pokemon master :-P
http://hoget.web.fc2.com/pokesay.html
var p = 0;
var pokeArray = new Array();
$.ajax({
url : "pokemon.xml",
dataType : 'xml',
success : function(data) {
$("pokemon", data).each(function() {
pokeArray[p] = $("Name", this).text();
(function(){
var CARD_COUNT_PER_PAGE = 25;
var page_limit = 3;
var total = 0;
var pointer = 0;
var card_list;
var idol_list = new Array();
function action(num) {
@treby
treby / gist:7804446
Last active December 30, 2015 08:39
GREE Tech Talk #4

GREE Tech Talk #4

UnityによるGameObjectとコルーチンを利用したTestingフレームワーク

  • コードによるテストやりたいよねー
    • UniUnitTest!
    • うにうにっとてすと

パネルディスカッション: Jenkinsによるテスト自動化の会社への導入

  • テストしやすいコードはそもそもレベルが高い
  • CI導入時、開発者の手元で先にテストを走らせるべきか、インテグレート時にやるべきか
  • できれば両方
@treby
treby / gist:7715810
Created November 30, 2013 05:48
kyo_ago-san @ html5j

オフラインファースト

  • オフライン機能
    • 機能としてオフラインを取り入れていく
    • カメラ機能とかのように「機能」として考える
    • という考え方
      • オフラインとソーシャルは相性がよくない
      • キャッシュをどう扱うか
  • オフライン時、キャッシュオンラインになったらキャッシュした情報を投稿
  • つながらない!==エラー
@treby
treby / gist:7674320
Created November 27, 2013 11:36
このべん!
@treby
treby / NFC Candle
Created June 13, 2012 09:50
using NFC Shield and Full Color LED
#include <PN532.h>
#define SCK 13
#define MOSI 11
#define SS 10
#define MISO 12
#define LED_RED_PIN 6
#define LED_GREEN_PIN 5
#define LED_BLUE_PIN 3
@treby
treby / KaomojiSFChecker.ino
Created May 17, 2012 19:16
Read FeliCa system of 0x0003 and show Kaomoji
#include <LiquidCrystal.h>
#include <NewRCS620S.h>
#define COMMAND_TIMEOUT 400
#define POLLING_INTERVAL 500
#define LED_PIN 13
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
NewRCS620S rcs620s;
int waitCardReleased = 0;