Skip to content

Instantly share code, notes, and snippets.

View shinriyo's full-sized avatar

shinriyo shinriyo

View GitHub Profile
var tabGroup = Ti.UI.createTabGroup();
var win1 = Ti.UI.createWindow({
title: "win 1",
backgroundColor: "blue"
});
var data = [
{title:'Album 1', hasChild:true, dest:'album_1.js'},
{title:'Album 2', hasChild:true, dest:'album_2.js'},
//
// HelloWorldScene.cpp
// TileBasedGame
//
// Created by Clawoo on 8/17/11.
// Copyright __MyCompanyName__ 2011. All rights reserved.
//
#include "HelloWorldScene.h"
@shinriyo
shinriyo / GameOverScene.h
Created October 11, 2012 02:54
Tiledゲームのパート3のGameOverSceneのヘッダ
//
// GameOverScene.h
// TileBasedGame
//
// Created by sugita on 12/10/11.
// Copyright (c) 2012 __shinriyo__. All rights reserved.
//
#ifndef __GAMEOVER_SCENE_H__
#define __GAMEOVER_SCENE_H__
@shinriyo
shinriyo / GameOverScene.cpp
Created October 11, 2012 02:55
Tiledゲームのパート3のGameOverSceneのソース
//
// GameOverScene.cpp
// TileBasedGame
//
// Created by sugita on 12/10/11.
// Copyright (c) 2012 __shinriyo__. All rights reserved.
//
#include "GameOverScene.h"
#include "HelloWorldScene.h"
@shinriyo
shinriyo / CCUIScrollView.h
Created October 16, 2012 01:26
スクロールファイルのヘッダ(v2.x専用)
//
// UIScrollView.h
// papwa
//
// Created by shinriyo on 12/10/16.
// Copyright 2012年 __MyCompanyName__. All rights reserved.
#ifndef cocos2dUI_CCUIScrollView_h
#define cocos2dUI_CCUIScrollView_h
#include "cocos2d.h"
@shinriyo
shinriyo / CCUIScrollView.cpp
Created October 16, 2012 01:39
スクロールファイルのソース(v2.x専用)
//
// CCUIScrollView.cpp
// papwa
//
// Created by sugita on 12/10/16.
// Copyright 2012年 __MyCompanyName__. All rights reserved.
#include "CCUIScrollView.h"
USING_NS_CC;
#define contentViewFontColorRed (GLubyte)(255 * 0.8)
@shinriyo
shinriyo / getRedmineTask
Created October 24, 2012 13:14
Redmineから自分のタスクを箇条書きで出すスクリプトレット
javascript:var str="";var regexp = new RegExp("issue-[0-9]*");var trs = document.getElementsByTagName("tr"); for (var i = 0;i <trs.length;i++){if (regexp.test(trs[i].getAttribute("id"))){str+=("%E3%83%BB"+trs[i].childNodes[8].innerText+"\n");}};alert(str);;
#if !UNITY_EDITOR
#define DEBUG_LOG_OVERWRAP
#endif
using UnityEngine;
#if DEBUG_LOG_OVERWRAP
public static class Debug
{
static public void Break ()
{
<html>
<title>just close</title>
<script type="text/javascript">
window.close();
</html>
@shinriyo
shinriyo / UIActivityIndicatorView.cs
Last active December 12, 2015 07:38
iOSのインジゲーターができない Unity側
using UnityEngine;
using System.Collections;
using System.Runtime.InteropServices;
public class UIActivityIndicatorView
{
#if UNITY_IPHONE
[DllImport("__Internal")]
private static extern void startSpinner();
#endif