Skip to content

Instantly share code, notes, and snippets.

Avatar

hiroshi mimori mogeta

View GitHub Profile
View Rotate
//スプライトを回転
pSprite->setRotation(90);
View LWFSampleObjest.cs
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 Jan 10, 2013
DeleteObject under DELETE_Y_POS
View CheckFallDelete.cs
using UnityEngine;
using System.Collections;
public class CheckFallDelete : MonoBehaviour
{
GameObject manager;
private const float sendParameter = 1;
private const float DELETE_Y_POS = -3;
View Preferences.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":
View BottomButtonPosition.cs
using UnityEngine;
using System.Collections;
[ExecuteInEditMode]
public class BottomButtonPosition : MonoBehaviour
{
public int XPos;
public int buttonNum;
@mogeta
mogeta / main.go
Created Apr 16, 2013
gae/g using memcached
View main.go
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 Dec 16, 2015
gae/g using memcache. channelAPI user cache.
View cacheMember.go
package channelExample
import (
"appengine"
"appengine/memcache"
"time"
)
type Users struct {
Name string
View gist:6052633
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 Dec 20, 2015
Go弱の会に向けて資料作成開始。
View Go.md

Go弱向け資料。

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

@mogeta
mogeta / no_goroot
Created Aug 13, 2013
if you run "go run hello.go" without setting GOROOT
View no_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)