Skip to content

Instantly share code, notes, and snippets.

View tensory's full-sized avatar

Ari Lacenski tensory

  • out paddleboarding
View GitHub Profile

Keybase proof

I hereby claim:

  • I am tensory on github.
  • I am tensory (https://keybase.io/tensory) on keybase.
  • I have a public key ASBzaFXX_9Yi95u7p1rzsE0IiiKPnl6l3s7dbdcLwHfGgwo

To claim this, I am signing this object:

@tensory
tensory / androidx-class-mapping.csv
Last active September 26, 2019 19:20 — forked from alexjlockwood/androidx-class-mapping.csv
Android X migration script
android.support.v7.widget.util.SortedListAdapterCallback androidx.recyclerview.widget.SortedListAdapterCallback
android.support.v7.widget.helper.ItemTouchUIUtilImpl androidx.recyclerview.widget.ItemTouchUIUtilImpl
android.support.v7.widget.helper.ItemTouchUIUtil androidx.recyclerview.widget.ItemTouchUIUtil
android.support.v7.widget.helper.ItemTouchHelper androidx.recyclerview.widget.ItemTouchHelper
android.support.v7.widget.WithHint androidx.appcompat.widget.WithHint
android.support.v7.widget.ViewUtils androidx.appcompat.widget.ViewUtils
android.support.v7.widget.ViewStubCompat androidx.appcompat.widget.ViewStubCompat
android.support.v7.widget.ViewInfoStore androidx.recyclerview.widget.ViewInfoStore
android.support.v7.widget.ViewBoundsCheck androidx.recyclerview.widget.ViewBoundsCheck
android.support.v7.widget.VectorEnabledTintResources androidx.appcompat.widget.VectorEnabledTintResources
@tensory
tensory / AsyncTokenProvider.kt
Last active April 12, 2018 15:40
Blocking token request example
internal class AsyncTokenProvider : Runnable {
val lock = ReentrantLock()
val requestCondition = lock.newCondition()
var done = false
interface AsyncTokenListener {
fun onEvent(foo: String)
}
var result: String = "Not Done"
@tensory
tensory / Example.java
Created October 6, 2017 20:38 — forked from nightscape/Example.java
Simple RxJava-based adapter for an Android RecyclerView
public class ReactiveTextViewHolder<T> extends ReactiveViewHolder<T> {
private TextView label;
private T currentItem;
public ReactiveTextViewHolder(View itemView) {
super(itemView);
label = (TextView) itemView.findViewById(android.R.id.text1);
}
@tensory
tensory / Example.java
Created October 6, 2017 20:38 — forked from nightscape/Example.java
Simple RxJava-based adapter for an Android RecyclerView
public class ReactiveTextViewHolder<T> extends ReactiveViewHolder<T> {
private TextView label;
private T currentItem;
public ReactiveTextViewHolder(View itemView) {
super(itemView);
label = (TextView) itemView.findViewById(android.R.id.text1);
}
@app.route('/blog/output/theme/<path:filename>')
def base_static(filename):
send_from_directory(app.root_path + '/blog/output/theme/static/', filename)
@tensory
tensory / gist:1110687
Created July 28, 2011 00:49
Test CSS file for dbliss
<html>
<head>
<style type="text/css">
#left-column {
float: left;
width: 90px;
border-right: 1px solid red;
}
#main {
margin-left: 100px;
@tensory
tensory / gist:1026348
Created June 15, 2011 02:08
QR-code printing
function printSticker($game, $url) {
global $StickersDir, $PrinterName;
$qrUrl = "https://chart.googleapis.com/chart?chs=300x300&cht=qr&choe=UTF-8&chl=".
urlencode($url);
system("curl '$qrUrl' > $StickersDir/qr.png");
$filename = $StickersDir . '/sticker_' . $game->game_id . '-' . $game->player . '.png';
nycrbot: [phooky] You can take the JVM out of the heap, but you can't take the heap out of the JVM.
[6:28pm] wwward: apparently
[6:29pm] nycrbot: [phooky] Have you heard about the new JVM with Just-Too-Late technology?
[6:29pm] wwward: heard about it? I'm living it.