Skip to content

Instantly share code, notes, and snippets.

View RockerFlower's full-sized avatar

RockerFlower RockerFlower

View GitHub Profile
@RockerFlower
RockerFlower / GroupViewHolder
Created December 11, 2014 08:17
A RecyclerView with multiple view type.
public class GroupViewHolder extends MainViewHolder {
@InjectView ( R.id.groupTitle )
TextView mTitle;
@InjectView ( R.id.groupContent )
TextView mContent;
public GroupViewHolder ( View itemView ) {
super ( itemView );
@RockerFlower
RockerFlower / bintrayv1.gradle
Last active December 28, 2015 07:34
Files to be applied in `build.gradle` to deploy to `Bintray`.
apply plugin: 'com.jfrog.bintray'
version = libraryVersion
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadoc(type: Javadoc) {
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 / eltool.sh
Last active May 24, 2018 06:24 — forked from dimkir/eltool.sh
Tool for building dependencies for electron on Amazon Linux (and maybe on CentOS / RHEL)
#!/bin/bash
DIST_DEPS=0
CENTOS_DEPS=0
GCONF_COMPILE=0
GCONF_INSTALL=0
PIXBUF_INSTALL=0
PIXBUF_COMPILE=0
@RockerFlower
RockerFlower / flutter.yml
Created May 13, 2020 10:42
Flutter Build, Test and Release config for GitHub actions
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
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) {