Skip to content

Instantly share code, notes, and snippets.

Avatar
人既是人 有責任有自由決定遠景

RockerFlower RockerFlower

人既是人 有責任有自由決定遠景
View GitHub Profile
View main.dart
import 'package:flutter/material.dart';
import 'dart:async';
import 'dart:math';
import 'dart:ui';
void main() => runApp(WaveDemoApp());
class WaveDemoApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@RockerFlower
RockerFlower / flutter.yml
Created May 13, 2020
Flutter Build, Test and Release config for GitHub actions
View flutter.yml
name: Test, Build and Release
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- master
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
@RockerFlower
RockerFlower / eltool.sh
Last active May 24, 2018 — forked from dimkir/eltool.sh
Tool for building dependencies for electron on Amazon Linux (and maybe on CentOS / RHEL)
View eltool.sh
#!/bin/bash
DIST_DEPS=0
CENTOS_DEPS=0
GCONF_COMPILE=0
GCONF_INSTALL=0
PIXBUF_INSTALL=0
PIXBUF_COMPILE=0
View bintrayv1.gradle
apply plugin: 'com.jfrog.bintray'
version = libraryVersion
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadoc(type: Javadoc) {
@RockerFlower
RockerFlower / bintrayv1.gradle
Last active Dec 28, 2015
Files to be applied in `build.gradle` to deploy to `Bintray`.
View bintrayv1.gradle
apply plugin: 'com.jfrog.bintray'
version = libraryVersion
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadoc(type: Javadoc) {
@RockerFlower
RockerFlower / GroupViewHolder
Created Dec 11, 2014
A RecyclerView with multiple view type.
View GroupViewHolder
public class GroupViewHolder extends MainViewHolder {
@InjectView ( R.id.groupTitle )
TextView mTitle;
@InjectView ( R.id.groupContent )
TextView mContent;
public GroupViewHolder ( View itemView ) {
super ( itemView );