This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This patch lets a ViewPagerAdapter{subclass} not know the exact number of items, and only keep prev and next. | |
- Return some arbitrary large number from getCount | |
- Maintain prev and next data items (not whole list) | |
- In instantiateItem, return null for item positions other than prev/next, or when there is no prev/next item | |
With this patch, ViewPager will notice the "null"'s and treat them like "end of list" markers. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#user nobody; | |
worker_processes 1; | |
#error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="UTF-8"> | |
</head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js" type="text/javascript"></script> | |
<script src="./test-reconnecting-websocket.js"></script> | |
<script> | |
function log(msg) { | |
var node = document.createElement("li") | |
node.appendChild(document.createTextNode(msg)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Performance logging for animations. | |
final DebugAnimationListener debug = new DebugAnimationListener(); | |
animator.addUpdateListener(debug); | |
animator.addListener(debug); | |
*/ | |
class DebugAnimationListener implements ValueAnimator.AnimatorUpdateListener, Animator.AnimatorListener { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
JAR=android-support-v23-wear-slim.jar | |
jar cvf ${JAR} \ | |
android/support/v4/app/NotificationCompat* \ | |
android/support/v4/app/NotificationManagerCompat* \ | |
android/support/v4/app/INotificationSideChannel* \ | |
android/support/v4/app/RemoteInput* \ | |
android/support/v4/app/NotificationBuilderWith* \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
JAR=google-play-services-28_auth.jar | |
jar cvf ${JAR} \ | |
com/google/android/gms/auth/* \ | |
com/google/android/gms/common/* \ | |
com/google/android/gms/common/api/* \ | |
com/google/android/gms/internal/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread 9 (Thread 0x7f64d5ee3700 (LWP 4295)): | |
#0 0x00007f64e4ce1d0d in poll () at /lib64/libc.so.6 | |
#1 0x00007f64e5a5916c in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0 | |
#2 0x00007f64e5a5927c in g_main_context_iteration () at /lib64/libglib-2.0.so.0 | |
#3 0x00007f64e5a592b9 in glib_worker_main () at /lib64/libglib-2.0.so.0 | |
#4 0x00007f64e5a7f835 in g_thread_proxy () at /lib64/libglib-2.0.so.0 | |
#5 0x00007f64e57f960a in start_thread () at /lib64/libpthread.so.0 | |
#6 0x00007f64e4ced78d in clone () at /lib64/libc.so.6 | |
Thread 8 (Thread 0x7f64d4ee1700 (LWP 4297)): | |
#0 0x00007f64e4ce1d0d in poll () at /lib64/libc.so.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread 3 (Thread 0x7f5272c7e700 (LWP 4307)): | |
#0 0x00007f527395db10 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 | |
#1 0x00000000004ce10f in ?? () | |
#2 0x00000000004ce20c in ?? () | |
#3 0x00007f527395860a in start_thread () from /lib64/libpthread.so.0 | |
#4 0x00007f5272d8178d in clone () from /lib64/libc.so.6 | |
Thread 2 (Thread 0x7f526b7b9700 (LWP 4308)): | |
#0 0x00007f527396127d in nanosleep () from /lib64/libpthread.so.0 | |
#1 0x00000000004cfe2a in ?? () | |
#2 0x000000000085fcd0 in execute_native_thread_routine () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"sync" | |
"sync/atomic" | |
"time" | |
"path/filepath" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env tarantool | |
require("os") | |
clock = require("clock") | |
fiber = require('fiber') | |
local ADDR="127.0.0.1" | |
local PORT_CONN=3401 | |
box.cfg{ |