This is a note of running exiftool with Terminal Emulator on Android.
ExifTool is an Android port of exiftool:
https://play.google.com/store/apps/details?id=ru.al.exiftool&hl=en_US
#!/bin/sh | |
# Examples: | |
# ./image64.sh myImage.png | |
# outputs: data:image/png;base64,xxxxx | |
# ./image64.sh myImage.png -img | |
# outputs: <img src="data:image/png;base64,xxxxx"> | |
append="" | |
if [[ "$1" == *.gif ]]; then |
/////////////////////////////////////////////////////////// | |
// Plain SASS Trigonometry Algorithm in Taylor Expansion // | |
// // | |
// Based on // | |
// http://japborst.net/posts/sass-sines-and-cosines // | |
/////////////////////////////////////////////////////////// | |
$pi: 3.14159265359; | |
$_precision: 10; |
import { useCallback, useLayoutEffect, useMemo, useReducer } from "react"; | |
function createHooks() { | |
const listeners: (() => void)[] = []; | |
window.addEventListener("popstate", () => { | |
for (const listener of listeners) { | |
listener(); | |
} | |
}); |
#!/bin/sh | |
GENERATOR="/^application-icon-(\\d+):(.*)/ && print \"unzip -o $1 \$2 && mv \$2 $(basename $1 .apk)-\$1.png\n\"" | |
aapt d --values badging $1 | perl -n -e"$GENERATOR" | sh | |
rm -rf res/ |
import { useEffect, useState, useRef } from "react"; | |
export function useAsyncInputRef<T extends HTMLElement & { value: string }>( | |
value: string, | |
forwardRef?: React.RefObject<T> | |
) { | |
const [compositionFlag, setComposition] = useState(false); | |
const newRef = useRef<T>(null); | |
const ref = forwardRef || newRef; |
This is a note of running exiftool with Terminal Emulator on Android.
ExifTool is an Android port of exiftool:
https://play.google.com/store/apps/details?id=ru.al.exiftool&hl=en_US
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.RectF; | |
import android.util.AttributeSet; | |
import android.view.View; | |
public class ProgressCircle extends View { |
<android.support.v4.widget.SwipeRefreshLayout | |
android:id="@+id/refreshLayout" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<android.support.v4.widget.NestedScrollView | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<LinearLayout |
-- | |
-- Query unique GeoHash prefixes | |
-- | |
SELECT | |
SUBSTR(p.last_location, 1, :length) prefix, | |
COUNT(p.id) count | |
FROM | |
user_profile p | |
GROUP BY prefix; |