Skip to content

Instantly share code, notes, and snippets.

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

Zlatko Stamatov Zlate87

🏠
Working from home
  • CARIAD
  • Berlin, Germany
View GitHub Profile
@Zlate87
Zlate87 / AndroidHelper.java
Last active January 21, 2016 06:10
A helper class with common methods useful when developing Android applications.
import android.content.Context;
import android.content.Intent;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* Andorid Helper class with common methids.
*/
@Zlate87
Zlate87 / installAllApks.bat
Last active January 12, 2016 14:46
Need to install several APKs on your device? Put them in a folder with this script and execute it. (WINDOWS ONLY)
for /f %%f in ('dir /b *.apk') do adb install %%f
@Zlate87
Zlate87 / Cheat Sheet.md
Last active September 19, 2023 10:52
Things that I use, but don't want to remember
import System.Directory
import Control.Monad (filterM, mapM, liftM)
import System.FilePath ((</>))
getDirsRec :: FilePath -> IO [FilePath]
getDirsRec d = do
dirContents <- getDirectoryContents d
let dirContents' = [ d </> x | x <- dirContents, x /= ".", x /= ".." ]
dirs' <- mapM dirRec dirContents'
return (concat dirs' ++ [d])