Skip to content

Instantly share code, notes, and snippets.

View TechIsFun's full-sized avatar

Andrea Maglie TechIsFun

View GitHub Profile
@gabrielemariotti
gabrielemariotti / build.gradle
Last active October 30, 2025 03:09
Use signing.properties file which controls which keystore to use to sign the APK with gradle.
android {
signingConfigs {
release
}
buildTypes {
release {
signingConfig signingConfigs.release
}
android {
defaultConfig {
versionName "actionbar"
}
signingConfigs {
release {
storeFile file("android.keystore")
...
}
}
@dodyg
dodyg / gist:5823184
Last active December 5, 2025 17:31
Kotlin Programming Language Cheat Sheet Part 1

#Intro

Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3

Kotlin project website is at kotlin.jetbrains.org.

All the codes here can be copied and run on Kotlin online editor.

Let's get started.

@rsvp
rsvp / noise.sh
Last active November 15, 2025 00:06
noise : relaxing ambient Brown noise generator (cf. white noise) | Linux bash script using sox | CogSci notes
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2019-01-02
#
# _______________| noise : ambient Brown noise generator (cf. white noise).
#
# Usage: noise [minutes=59] [band-pass freq center=1786] [wave]
# ^minutes can be any positive integer.
# Command "noise 1" will display peak-level meter.
#
# Dependencies: play (from sox package)
@turugina
turugina / asset_on_servicetest.java
Created July 29, 2011 09:04
Get asset on test package with ServiceTestCase. (Android)
import android.content.Context;
import android.content.res.AssetManager;
import android.test.ServiceTestCase;
import com.example.android.HogeService;
public class HogeTest extends ServiceTestCase<HogeService>
{
private Context getTestContext() throws Exception
{