Skip to content

Instantly share code, notes, and snippets.

View inuvalogic's full-sized avatar
🎯
Focusing on your daily target, will bring you one step closer to your success

Wisnu Hafid inuvalogic

🎯
Focusing on your daily target, will bring you one step closer to your success
View GitHub Profile
@inuvalogic
inuvalogic / tauri_icon_gen.py
Created October 11, 2023 18:40 — forked from Auax/tauri_icon_gen.py
Automatically generate all different icons from a base image for a Tauri Application. It also creates the .ico and .icns files for both Windows and macOS.
"""
Generate icons for a Tauri Application
----------------------
By Ibai Farina
For correct functionality, the base logo should be 512x512 or larger (keeping the aspect ratio).
"""
__title__ = 'Tauri Icon Generator'
__author__ = 'Ibai Farina'
__license__ = 'MIT'
@inuvalogic
inuvalogic / phone.php
Last active June 23, 2023 10:27
replace 0 to 62 or other country code for whatsapp link wa.me
<?php
// replace 081234567890 or 6281234567890 or +6281234567890 or 62 812 34 567 890
// to 6281234567890 for whatsapp link http://wa.me/62xxxxx
function phoneFormat($number, $country_code = '62')
{
$number = str_replace('+', '', $number);
$number = str_replace(' ', '', $number);
$number = preg_replace('/^0/', $country_code, $number);
return $number;
}
@inuvalogic
inuvalogic / .env
Last active October 22, 2020 10:26
tambah ini ke file .env
MAIL_DRIVER=mailgun
MAIL_HOST=smtp.mailgun.org
MAIL_PORT=587
MAIL_ENCRYPTION=tls
[email protected]
MAIL_FROM_NAME="KSP"
MAILGUN_DOMAIN=domain.com
MAILGUN_SECRET=key-dari-mailgun
<?php
namespace Akaneapp\Controller;
class FiturController extends \Akane\Controller\BaseController
{
public function indexAction()
{
$paket = $this->paketModel->all('', '', array(
'tampil' => 'ya'
<?php
// anggap ini data bulan lalu hasil select dari database ya
// (nanti bikin sendiri utk ngambil datanya)
$data_kas_bulan_lalu = [
[
'tgl_transaksi' => '2020-08-30',
'resort' => '1A',
'no_anggota' => 'CB200830001',
'no_transaksi' => 'CB200830001-1',
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gmap Test</title>
<style>
#map {
width: 600px;
height: 300px;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no">
<title>KSP - Koperasi Simpan Pinjam</title>
<link rel="icon" type="image/x-icon" href="/assets/img/favicon.ico"/>
<link href="/assets/css/loader.css" rel="stylesheet" type="text/css" />
<script src="/assets/js/loader.js"></script>
<?php
class ClassName
{
private function date_range($first, $last, $step = '+1 day', $output_format = 'Y-m-d' )
{
$dates = array();
$current = strtotime($first);
$last = strtotime($last);
@inuvalogic
inuvalogic / sublime-shortcut.json
Created September 14, 2018 03:58
my sublime custom shortcut
[
{ "keys": ["ctrl+alt+u"], "command": "ftp_sync_current" },
{ "keys": ["ctrl+alt+d"], "command": "ftp_sync_down_current" },
{ "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" },
{ "keys": ["ctrl+shift+t"], "command": "reopen_last_file" },
{ "keys": ["ctrl+alt+t"], "command": "open_terminal" },
{ "keys": ["ctrl+shift+alt+t"], "command": "open_terminal_project_folder" }
]
<?php
case 'add':
$web->breadcumbs->add('?content=sub_account','Sub Account');
$web->breadcumbs->add('current','Add');
echo BACKLINK;
if ( (isset($_POST['ppost'])) && ($_POST['ppost']==MENU_ADD) )
{
if (!empty($_POST['name']) && !empty($_POST['email']) && !empty($_POST['password']) && !empty($_POST['phone']) && !empty($_POST['alamat']) && !empty($_POST['id_provinsi']) && !empty($_POST['id_kota']) && !empty($_POST['status']))