Skip to content

Instantly share code, notes, and snippets.

Avatar

Afzal Najam AfzalivE

View GitHub Profile
@cedrickring
cedrickring / ColoredShadow.kt
Created Nov 1, 2020
Draw a colored shadow in Android Jetpack Compose
View ColoredShadow.kt
import androidx.compose.ui.Modifier
import androidx.compose.ui.drawBehind
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.Paint
import androidx.compose.ui.graphics.drawscope.drawIntoCanvas
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
fun Modifier.drawColoredShadow(
color: Color,
@benigumocom
benigumocom / debug_from_qr.py
Last active Oct 29, 2020
Connect Wireless Debug from Terminal on Android11
View debug_from_qr.py
#!/usr/bin/env python3
"""
Android11
Pair and connect devices for wireless debug on terminal
python-zeroconf: A pure python implementation of multicast DNS service discovery
https://github.com/jstasiak/python-zeroconf
"""
View Android CI
#Android and CI and Gradle (A How-To)
There are tech stacks in this world that make it dead simple to integrate a <abbr title="Continuous Integration">CI</abbr> build system. <br>
The Android platform is not one of them.
Although Gradle is getting better, it's still a bit non-deterministic, and some of the fixes you'll need will start to feel more like black magic than any sort of programming.
But fear not! It can be done!
Before we embark on our journey, you'll need a few things to run locally:
View FloatLabelLayout.java
/*
* Copyright 2014 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@scruffyfox
scruffyfox / Structure.md
Last active Dec 30, 2015
Documentation of default coding style for 3SC
View Structure.md

#README

This is the default struture of all projects (starting from Jan 2013) for 3 SIDED CUBE.

Last updated: 11/07/14 by Callum Taylor

Note: These guidelines are for everyone's benifit, to ensure consistency between code and projects, allowing quick understanding of the code with minimal problems.

##Structure

@Axxiss
Axxiss / AsyncTester.java
Last active Jun 2, 2016
Testing AsyncHttpClient with Robolectric
View AsyncTester.java
public class AsyncTester {
protected static final int HTTP_OK = 200;
protected ApiCallback mCallback;
private ProtocolVersion mHttpVersion;
protected AsyncHttpClient mHttpClient = new AsyncHttpClient();