Skip to content

Instantly share code, notes, and snippets.

View hogivano's full-sized avatar
💉
Stay healthy

Hendriyan Ogivano hogivano

💉
Stay healthy
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

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

@hogivano
hogivano / adb
Created March 9, 2022 23:54
Run on terminal for restarting adb and change port
adb kill-server&&adb -P 5555 start-server
@hogivano
hogivano / index.html
Last active March 4, 2022 11:08
Apple Canvas
<html>
<head>
</head>
<script type="text/javascript" src="index.js"></script>
<body onload="draw();">
<h1>Snake</h1>
<canvas id="snakeBoard" width="400" height="400" style="border:1px solid #000000;"></canvas>
<canvas id="score1Board" width="100" height="100" style="border:1px solid #000000;"></canvas>
<canvas id="score2Board" width="100" height="100" style="border:1px solid #000000;"></canvas>
</body>
@hogivano
hogivano / push-fcm.php
Created October 3, 2021 13:06
Sampel Push Notification
//push notificaion
public function push($req){
$get = ResourceNotification::where('user_id', $req->receiver_id)->with('userId')->get();
$tokens = [];
foreach ($get as $g) {
// code...
array_push($tokens, $g->resource);
}
$limitToken = array_chunk($tokens, 500);