Skip to content

Instantly share code, notes, and snippets.

View underwindfall's full-sized avatar
🐌
Making Progress

Qifan Yang underwindfall

🐌
Making Progress
View GitHub Profile
Kotlin 15 hrs 13 mins ■■■■■■■■■■■■■■■◱ 81.2%
XML 1 hr 31 mins ■■■▥□□□□□□□□□□□□ 8.1%
YAML 52 mins ■■■□□□□□□□□□□□□□ 4.6%
Java 44 mins ■■■□□□□□□□□□□□□□ 4.0%
Text 13 mins ■■▥□□□□□□□□□□□□□ 1.2%
JSON 4 mins ■■◱□□□□□□□□□□□□□ 0.4%
@underwindfall
underwindfall / YTD Strava Metrics
Last active December 24, 2022 00:41
Strava Stats
‍🏃‍♂️ Running 73.56 km ▩▩▩▩▩▩▩▩▩▩▨□ 5.60/h
🏊‍♂️ Swimming 0.00 km □□□□□□□□□□□□ 0.00/h
🚴‍♂️ Cycling 9.50 km ▩◱□□□□□□□□□□ 14.97/h
Last month 0.00 km 0:0h
@underwindfall
underwindfall / Kotlin Extensions .md
Last active August 10, 2022 16:14
Kotlin Extensions
@underwindfall
underwindfall / release_debug_apk.yml
Created April 4, 2020 09:30
Github Workflow Action Create Release and Add Debug.Apk as additional asset
name: Release And Update
on:
push:
tags:
- "v*"
jobs:
apk:
name: Release APK
runs-on: ubuntu-18.04
#!/bin/bash TEXT=$1 if [ -z "$TEXT" ]; then echo "Usage: android-paste TEXT" exit fi ( echo sms send 5555555555 $TEXT; sleep 1; ) | telnet localhost 5554 &> /dev/null
/**
* Utility functions for Android View
*/
fun View.setZTranslation(z: Float) {
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {
this.translationZ = z
}
}
/**
@underwindfall
underwindfall / watcher.xml
Created December 21, 2018 12:33
prettier-watcher
<TaskOptions>
<TaskOptions>
<option name="arguments" value="--write --single-quote --tab-width 4 -- $FilePath$" />
<option name="checkSyntaxErrors" value="true" />
<option name="description" />
<option name="exitCodeBehavior" value="ERROR" />
<option name="fileExtension" value="js" />
<option name="immediateSync" value="false" />
<option name="name" value="Prettier" />
<option name="output" value="" />
@underwindfall
underwindfall / FastFile iOS
Created October 10, 2018 09:48
Template FastFile iOS
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
@underwindfall
underwindfall / FastFile Android
Created October 10, 2018 09:47
FastFile Template
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
@underwindfall
underwindfall / DividerItemDecorator.kt
Created September 6, 2018 12:22 — forked from rock3r/DividerItemDecorator.kt
A simple yet fully featured RecyclerView ItemDecorator that draws a divider line between items. Only works with vertical LinearLayoutManagers!
package me.seebrock3r.common.widget
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Rect
import android.view.View
import androidx.annotation.ColorInt
import androidx.annotation.Px
import androidx.core.graphics.withTranslation
import androidx.core.view.children