Skip to content

Instantly share code, notes, and snippets.

@objcode
objcode / ConcurrencyHelpers.kt
Last active January 15, 2024 05:17
Helpers to control concurrency for one shot requests using Kotlin coroutines.
/* Copyright 2019 The Android Open Source Project
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@zaki50
zaki50 / gist:9663178
Created March 20, 2014 12:55
私がよくつかうライブラリのライセンスページ用 HTML
<html>
<head>
<style> body { font-family: sans-serif; }
div { background-color: #eeeeee; padding: 1em; white-space: pre-wrap; font-family: monospace }
</style>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
</head>
<body>
<h3><a href="http://jakewharton.github.io/butterknife/">Butter Knife</a></h3>
@romannurik
romannurik / DrawInsetsFrameLayout.java
Created February 10, 2014 16:28
DrawInsetsFrameLayout — adding additional background protection for system UI chrome when using KitKat’s translucent decor flags.
/*
* Copyright 2014 Google Inc.
*
* 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