Skip to content

Instantly share code, notes, and snippets.

View tugceaktepe's full-sized avatar
🏠
Working from home

Tugce Aktepe tugceaktepe

🏠
Working from home
  • Trendyol
  • Istanbul
View GitHub Profile
@MertNYuksel
MertNYuksel / TestObserver.kt
Created August 16, 2023 17:02
TestObserver
class TestObserver<T> : Observer<T> {
private val values = mutableListOf<T>()
fun getValues(): List<T> = values
override fun onChanged(value: T) {
values.add(value)
}
}
@illuzor
illuzor / .gitlab-ci.yml
Last active June 22, 2024 13:54
Config for gitlab ci android with unit tests and instrumented tests
image: ubuntu:22.04
variables:
ANDROID_COMPILE_SDK: "33"
ANDROID_BUILD_TOOLS: "33.0.2"
EMULATOR_IMAGE: "24"
SDK_TOOLS: "9477386" # from https://developer.android.com/studio/#command-tools
before_script:
@priore
priore / gist:7163408
Created October 25, 2013 23:32
ASP.NET [C#] Redirect with post data
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections.Specialized;
using System.Text;
// ASP.NET [C#] REDIRECT WITH POST DATA
public static class WebExtensions
{
@dodyg
dodyg / gist:5823184
Last active March 29, 2024 03:59
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.

@granoeste
granoeste / EachDirectoryPath.md
Last active June 19, 2024 07:37
[Android] How to get the each directory path.

System directories

Method Result
Environment.getDataDirectory() /data
Environment.getDownloadCacheDirectory() /cache
Environment.getRootDirectory() /system

External storage directories