Skip to content

Instantly share code, notes, and snippets.

View desawarna's full-sized avatar

Zae makhrus desawarna

View GitHub Profile
@desawarna
desawarna / css-internal.html
Created October 24, 2018 14:36
Yaitu penulisan CSS menggunakan tag <style> ... </style> yang ditulis di dalam tag <head> ... </head>
<!DOCTYPE HTML>
<html>
<head>
<title>CSS Internal</title>
<style type="text/css">
p{
color: red;
font-weight: bold;
}
</style>
@desawarna
desawarna / css-inline.html
Created October 24, 2018 14:38
Yaitu menuliskan CSS dengan menggunkan atribut style yang langsung dituliskan di dalam tag HTML.
<!DOCTYPE HTML>
<html>
<head>
<title>Inline</title>
</head>
<body>
<p style="color: red"> Tulisan ini berwarna merah </p>
<p style="font-weight: bold"> Tulisan ini dicetak tebal </p>
</body>
</html>
@desawarna
desawarna / css-exsternal.html
Created October 24, 2018 14:41
Yaitu penulisan CSS dimana skrip CSS disimpan dalam file tersendiri dengan extensi .css dan terpisah dengan file HTML.
<!DOCTYPE HTML>
<html>
<head>
<title>Internal</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<p> Tulisan ini berwarna merah </p>
<p> Tulisan ini dicetak tebal </p>
</body>
@desawarna
desawarna / visitor.inc.php
Created November 29, 2018 10:56
Visitor Slims yg Bisa Bicara
<?php
/**
*
* Visitor Counter
* Copyright (C) 2010 Arie Nugraha (dicarve@yahoo.com)
* Modified By Eddy Subratha (eddy.subratha@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
@desawarna
desawarna / print-seting.txt
Created January 21, 2019 03:07
Copas Code nya ya
/// Desain kartu 4 ambil seting disini
// by Jushadi Arman Saz
/* measurement in cm*/
$sysconf['print']['membercard_5']['factor'] = "37.795275591"; //cm to px
// Items Settings
// change to 0 if dont want to use selected items
$sysconf['print']['membercard_5']['include_id_label'] = 1; // no anggota
$sysconf['print']['membercard_5']['include_birth_date'] = 1; // birth_date / tanggal lahir
$sysconf['print']['membercard_5']['include_name_label'] = 1; // nama anggota
@desawarna
desawarna / custom.css
Created May 18, 2019 14:39
desain css untuk arteri 1.2.1 warna kuning , hover biru tua
/* latin */
@font-face {
font-family: 'Actor';
font-style: normal;
font-weight: 400;
src: local('Actor-Regular'), local('Actor-Regular'), url(./fonts/Actor-Regular.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}
body
{
@desawarna
desawarna / main.php
Created May 20, 2019 02:37
Copas Code ini di /arteri-1.2.1/application/views/
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<nav class="navbar navbar-inverse navbar-submenu">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#module-submenu" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
@desawarna
desawarna / artikel.php
Created August 8, 2019 23:30
Code PHP Pada CMSKu /cmsku/admin/content/
<script type="text/javascript" src="../plugin/tinymce/tinymce.min.js"></script>
<script type="text/javascript" src="js/tinymce_config.js"></script>
<?php
if(!defined("INDEX")) header('location: ../index.php');
$show = isset($_GET['show']) ? $_GET['show'] : "";
$link = "?content=artikel";
switch($show){
sudo mysql -u root
CREATE USER 'server'@'localhost' IDENTIFIED BY 'server';
GRANT ALL PRIVILEGES ON *.* TO 'server'@'localhost' WITH GRANT OPTION;
EXIT;
@desawarna
desawarna / visitor.inc.php
Created March 27, 2020 14:13
Loss IP Visitor Counter Slims 8 dengan Suara juga
<?php
/**
*
* Visitor Counter
* Copyright (C) 2010 Arie Nugraha (dicarve@yahoo.com)
* Modified By Eddy Subratha (eddy.subratha@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or