Skip to content

Instantly share code, notes, and snippets.

Lee JunHo shoridevel

Block or report user

Report or block shoridevel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View scrollable_view_test.dart
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
View circle_indicator.dart
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,
View utils.dart
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) {
View Scratch.cs
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
public class Scratch : MonoBehaviour, IPointerClickHandler, IBeginDragHandler, IDragHandler {
[SerializeField]
private Image m_Image;
private Texture2D m_TmpTexture;
private RectTransform m_ImageRT;
@shoridevel
shoridevel / file0.cs
Created Dec 21, 2015
【Unity】Pluginsフォルダーのスクリプトから本体スクリプトを呼び出したい ref: http://qiita.com/shoridevel/items/9f4b15b1c129e0fb6213
View file0.cs
void Start ()
{
// 実行中にManagersという名前のゲームオブジェクトを探す
var GUIMessageHelper = GameObject.Find ("Managers");
// ゲームオブジェクトに付いているコンポーネントを名前から探す
var comp = GUIMessageHelper.GetComponent ("GUIMessageHelper");
// 呼び出したいメソッドのパラメータを作る。ここではDictionary<string, string>型
var messageDic = new Dictionary<string, string>
{
{ "MapPos", transform.position.ToString()}
View BlockDto.cs
public class BlockDto : ObjectBaseDto
{
public BlockDto ()
{
}
public BlockDto (PositionDto _Position, float _SpawnTime, int _Type) : base (_Position, _SpawnTime)
{
Type = _Type;
}
@shoridevel
shoridevel / file0.txt
Last active Aug 29, 2015
【環境構築】VirtualBox + Vagrant + CoreOS + Docker環境の構築めも ref: http://qiita.com/gc-j-lee/items/cf9877f3e459fb631dd1
View file0.txt
$ brew install caskroom/cask/brew-cask
@shoridevel
shoridevel / file0.txt
Created Sep 4, 2014
【環境構築】GradleでGoogle Play Services対応(Mac, Linux) ref: http://qiita.com/gc-j-lee/items/8cd18e344a12da12ce5f
View file0.txt
apply plugin: 'android'
...
dependencies {
...
compile 'com.google.android.gms:play-services:+'
}
@shoridevel
shoridevel / file0.txt
Created Jun 14, 2014
【node.js】nodebrewでnode.jsのインストールめも ref: http://qiita.com/shori0917/items/e45c4eca64a4992ad37b
View file0.txt
% node
% node -v
% which node
@shoridevel
shoridevel / file0.txt
Created Feb 25, 2014
【Unity】Viewportを利用したWorldPoint(position)の画面外のposition ref: http://qiita.com/shori0917/items/5c4a249ff09244645c93
View file0.txt
public static Camera mainCamera;
public static float startWorldPointX;
public static float endWorldPointX;
public static float startWorldPointY;
public static float endWorldPointY;
void Start () {
You can’t perform that action at this time.