Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using UnityEngine.EventSystems;
/// <summary>
/// Unity 横向滑动 Snap scroll rect.
///
/// github:https://github.com/cyario/SnapScroll
/// </summary>
# =============== #
# Unity generated #
# =============== #
[Tt]emp/
[Oo]bj/
[Bb]uild
[Ll]ibrary/
sysinfo.txt
*.stackdump
@AndroidT
AndroidT / README.md
Created December 24, 2015 02:43 — forked from lopspower/README.md
All Android Directory Path

All Android Directory Path

Twitter

1) System directories

⚠️ We can't write to these folers

Method Result
@AndroidT
AndroidT / ExampleClass.m
Created December 18, 2015 08:38 — forked from lukeredpath/ExampleClass.m
Macro for creating your "shared instance" using GCD
@implementation MySharedThing
+ (id)sharedInstance
{
DEFINE_SHARED_INSTANCE_USING_BLOCK(^{
return [[self alloc] init];
});
}
@end
@AndroidT
AndroidT / fragmentstack.java
Created October 29, 2015 01:08
fragmentstack
/*
* Copyright 2013 Simon Vig Therkildsen
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@AndroidT
AndroidT / gist:b52eb22778da5317b969
Last active November 20, 2015 02:29
viewpager的小动画
package cn.iwgang.parallaxguidedemo;
import android.annotation.SuppressLint;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.view.animation.AnimationUtils;
import android.widget.Button;
@AndroidT
AndroidT / OkHttpClientManager
Created October 22, 2015 01:02
okhttpUtils
package com.zhy.utils.http.okhttp;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Handler;
import android.os.Looper;
import android.util.DisplayMetrics;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
@AndroidT
AndroidT / AnimatedExpandableListView.java
Created October 16, 2015 01:14
An extendable, flexible ExpandableListView widget that supports animations.
/*
* Copyright (C) 2014 Gary Guo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@AndroidT
AndroidT / SnakeView.java
Created October 16, 2015 00:49
Snake View is a simple and animated linear chart for Android.
/*
* Copyright Txus Ballesteros 2015 (@txusballesteros)
*
* This file is part of some open source application.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
@AndroidT
AndroidT / FabricView.java
Created October 12, 2015 01:29
A new canvas drawing library for Android
package com.agsw.FabricView;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.view.MotionEvent;