Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
echo "Starting process"
mkdir 265
for f in *.MOV; do
echo "Encoding ${f}"
out="265/mavic_${f}"
ffmpeg -i "${f}" -c:v hevc -c:a copy -crf 28 -preset slow -vtag hvc1 -map_metadata 0 "${out}"
public class ItemDetail extends Fragment implements LoaderManager.LoaderCallbacks<Cursor> {
private static final int ITEM_IMAGES_LOADER = 0;
private static final int ITEM_LOADER = 1;
@Override
public void onActivityCreated(Bundle savedInstanceState) {
getLoaderManager().initLoader(ITEM_IMAGES_LOADER, null, this);
getLoaderManager().initLoader(ITEM_LOADER, null, this);
@sirkuryaki
sirkuryaki / ItemDetail.java
Created June 7, 2018 14:29
Multiple loaders in same fragment
public class ItemDetail extends Fragment {
private static final int ITEM_IMAGES_LOADER = 0;
private static final int ITEM_LOADER = 1;
@Override
public void onActivityCreated(Bundle savedInstanceState) {
getLoaderManager().initLoader(ITEM_IMAGES_LOADER, null, this);
getLoaderManager().initLoader(ITEM_LOADER, null, this);
@sirkuryaki
sirkuryaki / API.md
Last active December 14, 2017 14:37 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method: