Skip to content

Instantly share code, notes, and snippets.

🐇
Working hard on Vue Form Builder @ v2.0.0

(Seth) Phat Tran sethsandaru

🐇
Working hard on Vue Form Builder @ v2.0.0
View GitHub Profile
@sethsandaru
sethsandaru / Intent.java
Created Feb 25, 2020
Android Java Force Intent to open URL in Google Chrome
View Intent.java
String url = "http://www.example.com";
try {
Uri uri = Uri.parse("googlechrome://navigate?url=" + url);
Intent i = new Intent(Intent.ACTION_VIEW, uri);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(i);
} catch (ActivityNotFoundException e) {
// Chrome is probably not installed
}
View keybase.md

Keybase proof

I hereby claim:

  • I am sethsandaru on github.
  • I am sethphat (https://keybase.io/sethphat) on keybase.
  • I have a public key ASDiebLsbJ9eFy0STO7FwAwu0sEqe1BKWgPFlxjqRzAHMgo

To claim this, I am signing this object:

View placeholder-loading-demo.html
<html>
<head>
<title>Placeholder Loading - SethPhat</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/placeholder-loading/dist/css/placeholder-loading.min.css">
</head>
<body>
<div class="container mt-4">
<h2>1 row 1 item basic info</h2>
@sethsandaru
sethsandaru / GithubAuthController.php
Last active May 4, 2019
Laravel Socialite Github Login Demo
View GithubAuthController.php
<?php
/**
* Created by PhpStorm.
* User: Seth Phat
* Date: 5/4/2019
* Time: 3:41 PM
*/
namespace App\Http\Controllers\Social;
@sethsandaru
sethsandaru / map.html
Created Mar 27, 2019
Example for LeafletJS: Init map, create marker, popup, tooltip & styling popup content
View map.html
<!--
Code By Seth Phat
https://sethphat.com
-->
<html>
<head>
<meta charset="utf-8" />
<title>LeafletJS - OpenStreetMap API by Seth Phat</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.4.0/dist/leaflet.css" integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA==" crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js" integrity="sha512-QVftwZFqvtRNi0ZyCtsznlKSWOStnDORoefr1enyq5mVL4tmKB3S/EnC3rRJcxCPavG10IcrVGSmPh6Qw5lwrg==" crossorigin=""></script>
You can’t perform that action at this time.