Skip to content

Instantly share code, notes, and snippets.

evelyne24 / 0_reuse_code.js
Last active August 29, 2015 14:27
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
evelyne24 /
Created September 28, 2013 18:20
Because cats are AWESOME and because programming is AWESOME! Being inspired by the beautiful Cat ASCII Art here I decided to make LogCat behave like its name! This makes my debugging so much fun! :D
import android.util.Log;
import java.text.MessageFormat;
import static java.lang.String.format;
* Created by evelyne24.
evelyne24 /
Last active July 12, 2016 08:22
`test` *bold*
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import java.util.Arrays;
import java.util.Collections;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicLong;
evelyne24 / README
Last active November 24, 2017 21:36
I've been using Maven for Android projects quite extensively from command line lately and I found that a colour output is really helpful.I'm using iTerm2 on MacOs Mavericks (10.9). I've found a couple of bash scripts to colorise Maven output but none was quite enough for me :PThe two best I found are and
The blog post explainig how to use this:
source $HOME/
evelyne24 / .dockerignore
Last active September 4, 2019 19:57
Docker-ize Connfa
evelyne24 /
Last active May 8, 2021 15:40
This is how to get the colour from a custom style within a custom style within an Android Theme.
import android.content.Context;
import android.content.res.Resources;
import android.util.AttributeSet;
import android.util.Log;
import android.util.TypedValue;
import android.widget.TextView;
evelyne24 / scrollable_footer.dart
Created April 7, 2019 21:06
Flutter scrollable footer - a footer that stays at the bottom of the screen and scrolls with its container; also see
evelyne24 /
Last active December 18, 2022 05:56
Bash script to extract the build name and number from `pubspec.yaml` before building your Flutter app
set -e
file=$(cat pubspec.yaml)
BUILD_NAME=$(echo $file | sed -ne 's/[^0-9]*\(\([0-9]\.\)\{0,4\}[0-9][^.]\).*/\1/p')
BUILD_NUMBER=$(git rev-list HEAD --count)