This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"image": "cirrusci/flutter" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static def setOutputAPKName(applicationVariants) { | |
applicationVariants.all { variant -> | |
variant.outputs.each { output -> | |
def SEPARATOR = "_" | |
def project = "Mybao" | |
def buildType = variant.buildType.name | |
def versionName = "v" + variant.versionName | |
def versionCode = variant.versionCode | |
def date = new Date(); | |
def formattedDate = date.format('yyyyMMdd_HHmm') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
apply plugin: 'android-apt' | |
def setOutputAPKName(applicationVariants) { | |
applicationVariants.all { variant -> | |
variant.outputs.each { output -> | |
def SEPARATOR = "_" | |
def project = "AppName" | |
def buildType = variant.variantData.variantConfiguration.buildType.name | |
def versionName = "v" + variant.versionName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* USB HID Keyboard scan codes as per USB spec 1.11 | |
* plus some additional codes | |
* | |
* Created by MightyPork, 2016 | |
* Public domain | |
* | |
* Adapted from: | |
* https://source.android.com/devices/input/keyboard-devices.html | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps aux|grep qemu|awk '{print $2}'|xargs kill -9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// numbers | |
// strings | |
// booleans | |
// lists (also known as arrays) | |
// maps | |
// runes (for expressing Unicode characters in a string) | |
// symbols | |
void main() { | |
// numbers | |
int i = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias kill_flutter=ps -ef |grep flutter|grep -v grep|awk '{print $2}'|xargs kill -9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun measureBezierPath(pointList: List<PointF>, path: Path, lineSmoothness: Float) { | |
var prePreviousPointX = Float.NaN | |
var prePreviousPointY = Float.NaN | |
var previousPointX = Float.NaN | |
var previousPointY = Float.NaN | |
var currentPointX = Float.NaN | |
var currentPointY = Float.NaN | |
var nextPointX: Float | |
var nextPointY: Float |
NewerOlder