Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Phuchit Sirimongkolsathien ripzery

🎯
Focusing
Block or report user

Report or block ripzery

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
@ripzery
ripzery / autosizing_textview.xml
Last active Mar 23, 2017
Granularity Autosizing TextView
View autosizing_textview.xml
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autoSizeMinTextSize="12sp"
android:autoSizeMaxTextSize="100sp"
android:autoSizeStepGranularity="2sp" />
@ripzery
ripzery / fonts.xml
Created Mar 23, 2017
A sample file for custom font in XML (Android O)
View fonts.xml
<?xml version="1.0" encoding="utf-8"?>
<font-family xmlns:android="http://schemas.android.com/apk/res/android">
<font
android:fontStyle="normal"
android:fontWeight="400"
android:font="@font/lobster_regular" />
<font
android:fontStyle="italic"
android:fontWeight="400"
android:font="@font/lobster_italic" />
@ripzery
ripzery / log_gcm_structure
Last active Oct 18, 2016
gcm structure from tsl which uses notification payload
View log_gcm_structure
10-18 23:58:21.170 25945-26010/com.socket9.thetsl D/MyGRcmListenerService: From: 197311876504
10-18 23:58:21.172 25945-26010/com.socket9.thetsl I/MyGcmListenerService: Bundle[{google.sent_time=1476809900797, type=SERVICE BOOKING, google.message_id=0:1476809900806468%43ae439143ae4391, notification=Bundle[{body=รถยนต์หมายเลขทะเบียน ปดก-2558 ได้นัดหมายเข้าใช้บริการที่ TSL Auto Service ในวันที่ 21/09/2016 เวลา 15:19:00 น., title=SERVICE BOOKING}], message={"th_data":{"date":"Wednesday, September 21, 2016","time":"3:19 pm","type":"บริการแบบ A","branch":"ศูนย์บริการภูเก็ต"},"th":"รถยนต์หมายเลขทะเบียน ปดก-2558 ได้นัดหมายเข้าใช้บริการที่ TSL Auto Service ในวันที่ 21\/09\/2016 เวลา 15:19:00 น.","en_data":{"date":"Wednesday, September 21, 2016","time":"3:19 pm","type":"Service A","branch":"Phuket Service Center"},"en":"Date confirm 21\/09\/2016 Time 15:19:00"}, collapse_key=com.socket9.thetsl}]
10-18 23:58:21.173 25945-26010/com.socket9.thetsl I/MyGcmListenerService: รถยนต์หมายเลขทะเบียน ปดก-2558 ได้นัดหมายเข้าใช้บริกา
@ripzery
ripzery / build.gradle (App's level)
Last active Jul 6, 2016
Reference for gradle-play-publisher configuration
View build.gradle (App's level)
apply plugin: 'com.android.application'
apply plugin: 'com.github.triplet.play'
android {
signingConfigs {
release {
keyAlias 'keystore'
keyPassword 'password'
storeFile file('../keystore.jks')
storePassword 'password'
@ripzery
ripzery / build.gradle (Project's level)
Last active Jul 6, 2016
Reference for config gradle-play-publisher
View build.gradle (Project's level)
buildscript {
ext.kotlin_version = '1.0.3'
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.github.triplet.gradle:play-publisher:1.1.4'
}
}
@ripzery
ripzery / build.gradle
Last active Jul 6, 2016
signingConfigs
View build.gradle
android {
signingConfigs {
release {
keyAlias 'keystore'
keyPassword 'password'
storeFile file('../keystore.jks')
storePassword 'password'
}
}
buildTypes {
View designer.html
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
:host {
You can’t perform that action at this time.