Skip to content

Instantly share code, notes, and snippets.

View auval's full-sized avatar

Amir Uval auval

  • CWT
  • TLV
View GitHub Profile
@auval
auval / grid_constraintlayout.xml
Created March 29, 2017 10:20
GridLikeConstraintLayout
<?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"
@auval
auval / jpg_add_timestamp.sh
Created September 22, 2017 22:45
Add a timestamp watermark to photos
#!/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_