Skip to content

Instantly share code, notes, and snippets.

Roman Usachev ramzes642

Block or report user

Report or block ramzes642

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ramzes642 / rencode
Created May 13, 2015
Reconvert shell script for tv/mediaplayers
View rencode
if [ -z "$1" ]
echo "Usage:
$0 <source_dir> <dest_dir> - reencode folder
$0 <source_file> - reencode file in same dir
Reconverts video stream in media files and keeps all audio channels. Uses ffmpeg."
ramzes642 /
Last active Nov 16, 2017
FilterCursorWrapper class creates a compatible cursor that uses a filter argument to quick search ListView in android. It can be useful when you need unicode case insensetive "like" search, but you don't want to rebuild android's sqlite with icu support.
private class FilterCursorWrapper extends CursorWrapper {
private String filter;
private int column;
private int[] index;
private int count=0;
private int pos=0;
public FilterCursorWrapper(Cursor cursor,String filter,int column) {
You can’t perform that action at this time.