Skip to content

Instantly share code, notes, and snippets.

Avatar

Amir Uval auval

  • Facebook
  • TLV
View GitHub Profile
@auval
auval / jpg_add_timestamp.sh
Created Sep 22, 2017
Add a timestamp watermark to photos
View jpg_add_timestamp.sh
#!/bin/bash
# Change the font variable to point to your font location
#ok
font="/usr/share/fonts/truetype/lato/Lato-Thin.ttf"
#font="/home/amir/.local/share/fonts/Roboto-Light.ttf"
if [ $# -eq 0 ]
then
cat << _EOF_
@auval
auval / grid_constraintlayout.xml
Created Mar 29, 2017
GridLikeConstraintLayout
View grid_constraintlayout.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<android.support.constraint.ConstraintLayout
android:layout_width="wrap_content"