Skip to content

Instantly share code, notes, and snippets.

package com.github.irshulx.glitchtext;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.View;
@katowulf
katowulf / gist:4741111
Last active April 11, 2024 12:07
Firebase security rules for a simple chat room model
{
"chat": {
// the list of chats may not be listed (no .read permissions here)
// a chat conversation
"$key": {
// if the chat hasn't been created yet, we allow read so there is a way
// to check this and create it; if it already exists, then authenticated
// user (specified by auth.id) must be in $key/users
@shunsugai
shunsugai / android_gradient.xml
Created August 26, 2012 06:07
Android rich gradient drawable
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- ベースのグラデーション -->
<item android:state_pressed="true">
<shape android:shape="rectangle">
<gradinent
android:angle="270"
android:endColor="#009FD9"
android:startColor="#55CBF6" />
</shape>