Skip to content

Instantly share code, notes, and snippets.

View saepul8's full-sized avatar

SAEPULOH saepul8

View GitHub Profile
@saepul8
saepul8 / README.md
Created July 3, 2025 15:53 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@saepul8
saepul8 / semantic-commit-messages.md
Created September 2, 2024 15:01 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@saepul8
saepul8 / http-status-codes.php
Created October 20, 2023 17:21 — forked from henriquemoody/http-status-codes.php
List of HTTP status codes in PHP
<?php
/**
* Content from http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
*
* You may also want a list of unofficial codes:
*
* 103 => 'Checkpoint',
* 218 => 'This is fine', // Apache Web Server
* 419 => 'Page Expired', // Laravel Framework
@saepul8
saepul8 / http-status-codes.php
Created October 20, 2023 17:21 — forked from henriquemoody/http-status-codes.php
List of HTTP status codes in PHP
<?php
/**
* Content from http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
*
* You may also want a list of unofficial codes:
*
* 103 => 'Checkpoint',
* 218 => 'This is fine', // Apache Web Server
* 419 => 'Page Expired', // Laravel Framework
@saepul8
saepul8 / postgis_formats_test.sql
Created September 30, 2023 16:19 — forked from mloskot/postgis_formats_test.sql
SQL script to quickly generate and test PostGIS geometry formats in pgAdmin
-- SQL script to quickly generate and test PostGIS geometry formats in pgAdmin
SELECT
ST_AsText(g),
--ST_AsGeoJSON(g),
encode(ST_AsBinary(g), 'hex')
FROM (SELECT
------------ EMPTY by PostGIS and SQL Server:
------------ http://blog.cleverelephant.ca/2010/03/nothing-nada-zip-bupkus.html
------ OGC 1.0
--'POINT EMPTY'::geometry --"010400000000000000"
@saepul8
saepul8 / spinner.java
Created July 6, 2021 16:35 — forked from oriolrivera/spinner.java
Add hashmap key value to spinner
Map<String, String> spinnerValueMap = new HashMap<String, String>();
List<StringWithTag> itemList = new ArrayList<StringWithTag>();
String loadsearchkeyID;
spinnerValueMap.put(“Key”,”Value”);
for (Entry<String, String> entry : spinnerValueMap.entrySet()) {
String key = entry.getKey();
String value = entry.getValue();
@saepul8
saepul8 / cesium_terrains
Created May 6, 2021 23:59 — forked from bertt/cesium_terrains
Cesium + custom terrains
Cesium.Ion.defaultAccessToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI1OGUyODEwNC03YTIzLTRjMmItOTk4Ni1iZWNkNGE1MWZhMTkiLCJpZCI6NTQzLCJpYXQiOjE1MjUyNzM4OTd9.F2r6H2XRAcnkHjkFgXAzDieW6TeIxDhTZ5hdikd-_Q8';
var viewer = new Cesium.Viewer('cesiumContainer', {
terrainExaggeration : 10.0
});
var terrainProvider = new Cesium.CesiumTerrainProvider({
url : '/tilesets/tiles'
});
viewer.scene.terrainProvider = terrainProvider;
@saepul8
saepul8 / index.html
Created February 4, 2021 23:29 — forked from ThomasG77/index.html
Simple OpenLayers Reverse Geocoding sample with Nominatim
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<meta name=description content="">
<meta name=viewport content="width=device-width, initial-scale=1">
<title>Reverse geocoding</title>
<link rel="stylesheet" href="https://openlayers.org/en/v4.4.2/css/ol.css" type="text/css">
<!-- The line below is only needed for old environments like Internet Explorer and Android 4.x -->
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL,fetch"></script>
@saepul8
saepul8 / 0_reuse_code.js
Created October 22, 2015 09:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console