Skip to content

Instantly share code, notes, and snippets.

View buddypia's full-sized avatar

Buddypia buddypia

View GitHub Profile
import 'package:flutter/material.dart';
class CircleIndicator {
static Widget show() {
return Center(
child: new SizedBox(
height: 50.0,
width: 50.0,
child: new CircularProgressIndicator(
value: null,
class Utils {
static bool isNullOrEmpty(String s) {
return s == null || s == '';
}
static String stripTags(String s) {
return s.replaceAll(new RegExp('<[^>]*>'), '');
}
static Set<String> urlMatchs(String s) {
@buddypia
buddypia / BlockDto.cs
Created June 5, 2015 17:54
【Unity/JsonFx】UnityでJSONの読み書き ref: http://qiita.com/shoridevel/items/6f9b3477af1a17341fdb
public class BlockDto : ObjectBaseDto
{
public BlockDto ()
{
}
public BlockDto (PositionDto _Position, float _SpawnTime, int _Type) : base (_Position, _SpawnTime)
{
Type = _Type;
}
@buddypia
buddypia / file0.txt
Last active August 29, 2015 14:09
【環境構築】VirtualBox + Vagrant + CoreOS + Docker環境の構築めも ref: http://qiita.com/gc-j-lee/items/cf9877f3e459fb631dd1
$ brew install caskroom/cask/brew-cask
@buddypia
buddypia / file0.txt
Created September 4, 2014 10:57
【環境構築】GradleでGoogle Play Services対応(Mac, Linux) ref: http://qiita.com/gc-j-lee/items/8cd18e344a12da12ce5f
apply plugin: 'android'
...
dependencies {
...
compile 'com.google.android.gms:play-services:+'
}
@buddypia
buddypia / file0.txt
Created June 14, 2014 18:00
【node.js】nodebrewでnode.jsのインストールめも ref: http://qiita.com/shori0917/items/e45c4eca64a4992ad37b
% node
% node -v
% which node
@buddypia
buddypia / file0.txt
Created February 25, 2014 01:20
【Unity】Viewportを利用したWorldPoint(position)の画面外のposition ref: http://qiita.com/shori0917/items/5c4a249ff09244645c93
public static Camera mainCamera;
public static float startWorldPointX;
public static float endWorldPointX;
public static float startWorldPointY;
public static float endWorldPointY;
void Start () {
@buddypia
buddypia / itween.cs
Created September 8, 2013 11:51
【Unity】iTweenでハマったことメモ ref: http://qiita.com/shori0917/items/686404e0cc8a5d80146c
void OnTriggerStay(Collider other) {
ins = Instantiate(PlusMoneyPrefab) as GameObject;
Vector3 startPosition = new Vector3(startX, startY, -1);
ins.transform.parent = Respawn.transform;
ins.transform.localPosition = startPosition;
ins.transform.localScale = new Vector3(50, 50, 0);
Hashtable parameters = new Hashtable();
parameters.Add("y", startY + 80);
@buddypia
buddypia / center.cs
Created August 30, 2013 07:23
【Unity】GUITextureの画像を真ん中に表示する2つ方法 ref: http://qiita.com/shori0917/items/f32f9fcbce165c18e623
void Start () {
background = GetComponent<GUITexture>().texture;
}
void OnGUI(){
GUI.DrawTexture(new Rect(Screen.width / 2 - 128, Screen.height / 2 - 128, background.width,
background.width), background);
}
@buddypia
buddypia / qiita.cs
Created August 30, 2013 06:58
【Unity】GUITextureを真ん中で表示する方法2つ ref: http://qiita.com/shori0917/items/2f302bb8badb5e6d5ffe
void Start () {
background = GetComponent<GUITexture>().texture;
}
void OnGUI(){
GUI.DrawTexture(new Rect(Screen.width / 2 - 128, Screen.height / 2 - 128, background.width,
background.width), background);
}