Skip to content

Instantly share code, notes, and snippets.

View mogeta's full-sized avatar

hiroshi mimori mogeta

View GitHub Profile
//スプライトを回転
pSprite->setRotation(90);
@mogeta
mogeta / LWFSampleObjest.cs
Created November 14, 2012 05:03
LWF example
using UnityEngine;
[ExecuteInEditMode]
public class LWFSampleObject : LWFObject {
public int count=0;
void Start()
{
string dir = System.IO.Path.GetDirectoryName(lwfName);
if (dir.Length > 0)
dir += "/";
@mogeta
mogeta / CheckFallDelete.cs
Created January 10, 2013 02:48
DeleteObject under DELETE_Y_POS
using UnityEngine;
using System.Collections;
public class CheckFallDelete : MonoBehaviour
{
GameObject manager;
private const float sendParameter = 1;
private const float DELETE_Y_POS = -3;
@mogeta
mogeta / Preferences.sublime-settings
Created January 15, 2013 08:20
sublime settings
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"draw_minimap_border": true,
"font_face": "Source Code Pro",
"font_size": 12.0,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
using UnityEngine;
using System.Collections;
[ExecuteInEditMode]
public class BottomButtonPosition : MonoBehaviour
{
public int XPos;
public int buttonNum;
@mogeta
mogeta / main.go
Created April 16, 2013 14:48
gae/g using memcached
func dataStore(c appengine.Context, id string) {
m = make(map[string]int32)
_, err := memcache.JSON.Get(c, "names", &m)
if err != nil && err != memcache.ErrCacheMiss {
return
}
c.Infof("%s", m)
m[id] = int32(time.Now().Unix())
@mogeta
mogeta / cacheMember.go
Last active December 16, 2015 09:29
gae/g using memcache. channelAPI user cache.
package channelExample
import (
"appengine"
"appengine/memcache"
"time"
)
type Users struct {
Name string
heroku login
# accountとpassを入力し、ssh keyの登録を行います。
heroku create moge-sandbox -s cedar
#https://devcenter.heroku.com/articles/cedar
#アプリの作成を行います。stackにcedarを選択。
#Creating moge-sandbox... done, stack is cedar
#http://moge-sandbox.herokuapp.com/ | git@heroku.com:moge-sandbox.git
git clone git@heroku.com:moge-sandbox.git
@mogeta
mogeta / Go.md
Last active December 20, 2015 15:29
Go弱の会に向けて資料作成開始。

Go弱向け資料。

この資料はGo弱の会向けに作成中の資料です。 Go強の方がいらっしゃいましたら補足とかもらえると助かります。

@mogeta
mogeta / no_goroot
Created August 13, 2013 05:48
if you run "go run hello.go" without setting GOROOT
go run hello.go
hello.go:4:2: cannot find package "fmt" in any of:
/usr/local/etc/src/pkg/fmt (from $GOROOT)
/Users/mogetta/Documents/go/src/fmt (from $GOPATH)
package runtime: cannot find package "runtime" in any of:
/usr/local/etc/src/pkg/runtime (from $GOROOT)
/Users/mogetta/Documents/go/src/runtime (from $GOPATH)