Skip to content

Instantly share code, notes, and snippets.

View anton-novikau's full-sized avatar

Anton Novikau anton-novikau

View GitHub Profile
@anton-novikau
anton-novikau / DataUtil.java
Created July 29, 2018 20:05
Generates a list of actors with their data for Android Academy Minsk homework (Lecture 3: lists and adapters)
import android.net.Uri;
import java.util.ArrayList;
import java.util.List;
public class DataUtil {
public static List<Actor> generateActors() {
List<Actor> actors = new ArrayList<>();
actors.add(new Actor(
@anton-novikau
anton-novikau / adbdevices
Last active January 13, 2017 20:56
Bash script to obtain android device ids with human readable names
#!/bin/bash
# Copyright (c) 2016 Anton Novikau
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#