Skip to content

Instantly share code, notes, and snippets.

View tientham's full-sized avatar
🚀
Focusing

Minh Tien TO tientham

🚀
Focusing
View GitHub Profile
Get SHA1 android debug key on Macbook env
keytool -list -v -keystore ~/.android/debug.keystore
Password: 'android'
@tientham
tientham / gist:7867e6c39b5bc49e46da89f29bc1dfdb
Created August 13, 2019 19:41
Achieve an rounded card with image as background in xamarin forms
There are 2 ways:
1- Frame and Image
<Frame CornerRadius="10" Margin="0" Padding="0" IsClippedToBounds="True" HasShadow="false">
<Image Source="{Binding Picture}" Aspect="AspectFill" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"/>
</Frame>
2- FFImageLoading
<ffimageloading:CachedImage HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"
Aspect="AspectFill" DownsampleToViewSize="true" Source = "{Binding Picture}">
<ffimageloading:CachedImage.Transformations >
@tientham
tientham / gist:db14a3aedd7c2124a32aee308b3a8343
Last active April 29, 2019 16:05
SOLID principle quick recap

SOLID

  • S - Single Responsibility Principle
  • O - Open/Closed Principle
  • L - Liskov’s Substitution Principle
  • I - Interface Segregation Principle
  • D - Dependency Inversion Principle

S - Single Responsibility Principle

“Class should be having one and only one responsibility”.

# AppyCall Policy
Minh Tien TO built the AppyCall app as a Free and in-app purchase Android application. This SERVICE is provided by Minh Tien TO at no cost (free) for basic uses and is intended for use as it is. However, some more items or/and features inside this application may have their cost to enable themselves.
This page is used to inform website visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.
If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at AppyCall unless otherwise defined in this Privacy Policy.
@tientham
tientham / docker-help.md
Created August 24, 2018 13:33 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@tientham
tientham / ssh.md
Created August 24, 2018 13:32 — forked from bradtraversy/ssh.md
SSH & DevOps Crash Course Snippets

SSH Cheat Sheet

This sheet goes along with this SSH YouTube tutorial

Login via SSH with password (LOCAL SERVER)

$ ssh brad@192.168.1.29

Create folder, file, install Apache (Just messing around)

$ mkdir test

$ cd test

@tientham
tientham / gist:65dbbd8b0f337bedd36a4d418ba67082
Last active September 7, 2018 20:43
App4Timer Privacy Policy

App4Timer Policy

Minh Tien TO built the App4Timer app as a Free and in-app purchase Android application. This SERVICE is provided by Minh Tien TO at no cost (free) for basic uses and is intended for use as it is. However, some more items or/and features inside this application may have their cost to enable themselves.

This page is used to inform website visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Visual Support for Autism unless otherwise defined in this Privacy Policy.

@tientham
tientham / gist:888acf5abee3ff28fd2ec19da74cd5d5
Last active September 7, 2018 20:57
Visual Support for Autism (VSFA) Privacy Policy

App4Autism's Policy

    Minh Tien TO built the Visual Support for Autism (VSFA) app as a Free and in-app purchase Android application. This SERVICE is provided by Minh Tien TO at no cost (free) for basic uses and is intended for use as it is. However, some more items or/and features inside this application may have their cost to enable themselves.

    This page is used to inform website visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

    If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Visual Support for Autism unless otherwise defined i

@tientham
tientham / gist:b29cc218bc680e2ba0b7f94d53caefb9
Last active September 7, 2018 20:57
Daily Notes Privacy Policy

WikiNote's Policy

Minh Tien TO built the Daily Notes app as a Free app. This SERVICE is provided by Minh Tien TO at no cost and is intended for use as is.

This page is used to inform website visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Daily Notes unless otherwise defined in this Privacy Policy.

@tientham
tientham / gist:295c62da438162c45435bb49be887ede
Last active September 7, 2018 21:06
[Android] Copy database .db from android phone

Copy database.db from Android to PC

From linux terminal
adb shell
run-as <your package>
chmod 666 databases/<database>.db
cp databases/<database>.db /sdcard/
chmod 600 datavases/<database>.db
exit

exit