Skip to content

Instantly share code, notes, and snippets.

import kotlin.math.round
enum class AcademicLevel {
EXCELLENT, GOOD, AVERAGE, BELOW_AVERAGE
}
interface Printable {
fun getInfo(): String
@maichanchinh
maichanchinh / Interstitial_startapp.java
Created June 7, 2019 08:16
Custom Interstitial of startapp
public class AdsActivity extends AppCompatActivity {
@BindView(R.id.rl_main)
RelativeLayout rlMain;
@BindView(R.id.btnClose)
ImageView btnClose;
@BindView(R.id.tv_count_timer)
TextView tvCountTimer;
private String path;
@maichanchinh
maichanchinh / get_KEY_HASH.java
Created June 22, 2017 16:18
KEY HASH android for facebook
public static String printKeyHash(Activity context) {
PackageInfo packageInfo;
String key = null;
try {
//getting application package name, as defined in manifest
String packageName = context.getApplicationContext().getPackageName();
//Retriving package info
packageInfo = context.getPackageManager().getPackageInfo(packageName,
PackageManager.GET_SIGNATURES);
<meta charset="utf-8">
<!--
Hướng dẫn sử dụng các loại form chèn vào LadingPage
-->
<!--
Bước 1
Chèn phần này vào thẻ Head
<meta charset="utf-8">
<!--
Hướng dẫn sử dụng các loại form chèn vào LadingPage
-->
<!--
Bước 1
Chèn phần này vào thẻ Head
-->
<style type="text/css">
@maichanchinh
maichanchinh / form_call.html
Last active April 20, 2017 11:01
From gọi lại số điện thoại
<meta charset="utf-8">
<!--
Hướng dẫn sử dụng các loại form chèn vào LadingPage
-->
<!--
Bước 1
Chèn phần này vào thẻ Head -->
<style type="text/css">
body{background: #249249}
@maichanchinh
maichanchinh / c3_hungmuctieu.html
Last active April 3, 2017 04:35
Form Hứng C3 Mục tiêu
<meta charset="utf-8">
<!--
Hướng dẫn sử dụng các loại form chèn vào LadingPage
-->
<!--
Bước 1
Chèn phần này vào thẻ Head -->
<style type="text/css">
.contact_form { max-width: 300px; }
@maichanchinh
maichanchinh / form_phaidep.html
Last active April 15, 2017 03:36
Hướng dẫn sử dụng Form contact phái đẹp
<!--
Hướng dẫn sử dụng các loại form chèn vào LadingPage
-->
<!--
Bước 1
Chèn phần này vào thẻ Head -->
<style type="text/css">
.contact_form { max-width: 300px; }
.contact_form button.submit_btn { margin-bottom: 10px; }
@maichanchinh
maichanchinh / Code form tổng hợp
Last active April 3, 2017 04:36
Code form dùng được nhiều lần ở một trang
<!--
Hướng dẫn sử dụng các loại form chèn vào LadingPage
-->
<!--
Bước 1
Chèn phần này vào thẻ Head -->
<style type="text/css">
.contact_form { max-width: 300px; }
.contact_form button.submit_btn { margin-bottom: 10px; }
@maichanchinh
maichanchinh / google-cloud-storage-upload-download.php
Created March 31, 2016 23:03 — forked from stetic/google-cloud-storage-upload-download.php
PHP Example for Google Storage Upload and Download with Google APIs Client Library for PHP
<?php
/*
* PHP Example for Google Storage Up- and Download
* with Google APIs Client Library for PHP:
* https://github.com/google/google-api-php-client
*/
include( "Google/Client.php" );
include( "Google/Service/Storage.php" );