This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for _, row := range data { | |
for idx2, row2 := range row { | |
row2map := row2.(map[string]any) | |
cell, _ := excelize.CoordinatesToCellName(activeCol, activeRow) | |
f.SetCellValue("Sheet1", cell, idx2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update all your packages | |
sudo apt update | |
sudo apt upgrade -y | |
# Add postgresql repository and key | |
sudo sh -c 'echo "deb [arch=$(dpkg --print-architecture)] http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
# Update again |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
type BangunDatar interface { | |
Luas() float64 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type BangunDatar interface { | |
Luas() float64 | |
} | |
type Persegi struct { | |
Sisi float64 | |
} | |
func (p Persegi) Luas() float64 { | |
return p.Sisi * p.Sisi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Persegi struct { | |
Sisi float64 | |
} | |
type Segitiga struct { | |
Alas float64 | |
Tinggi float64 | |
} | |
type Kalkulator struct{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { performance } = require("perf_hooks"); | |
// biasanya ini terjadi di website POS dimana | |
// ada laporan yang harus group sesuai master nya | |
// lalu keluarin detailnya | |
// ========= start fill data master + detail ============ | |
const masters = []; | |
const details = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function post_data() | |
{ | |
// ini seperti biasa kalian juga kalo engga menggunakan AJAX pake cara ini | |
// perhatikan $this->input->post('username'); username tersebut adalah data dari input yang name nya "username" | |
// sama juga dengan input lainnya | |
$username = $this->input->post('username'); | |
$password = $this->input->post('password'); | |
$config = [ | |
[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- kalian bebas kasih id apa aja --> | |
<!-- tapi utuk memudahkan sekarang kita kasih id form --> | |
<form id="form"> | |
<input type="text" placeholder="username" name="username" id="username"> | |
<!-- biar ada jarak aja sih jadi pake br--> | |
<br> | |
<div class="check_username"></div> | |
<br><br> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') or exit('No direct script access allowed'); | |
class Controller_kalian extends CI_Controller | |
{ | |
function __construct() | |
{ | |
parent::__construct(); | |
$this->load->library('form_validation'); | |
} |
NewerOlder