Skip to content

Instantly share code, notes, and snippets.

View mzaini30's full-sized avatar
🤗
I love you, my wife....

Zen mzaini30

🤗
I love you, my wife....
View GitHub Profile
@mzaini30
mzaini30 / Welcome file.md
Last active February 21, 2021 06:54
Welcome file

Welcome to StackEdit!

Hi! I’m your first Markdown file in StackEdit. If you want to learn about StackEdit, you can read me. If you want to play with Markdown, you can edit me. Once you have finished with me, you can create new files by opening the file explorer on the left corner of the navigation bar.

Files

StackEdit stores your files in your browser, which means all your files are automatically saved locally and are accessible offline!

Create files and folders

The file explorer is accessible using the button in left corner of the navigation bar. You can create a new file by clicking the New file button in the file explorer. You can also create folders by clicking the New folder button.

Switch to another file

All your files and folders are presented as a tree in the file e
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Navbar Responsive With HTML CSS and Javascript</title>
<meta name="viewport" content="width=350, user-scalable=no">
</head>
<?php
ob_start();
//cek session
session_start();
if(empty($_SESSION['admin'])){
$_SESSION['err'] = '<center>Anda harus login terlebih dahulu!</center>';
header("Location: ./");
die();
} else {
@mzaini30
mzaini30 / template.xml
Created September 26, 2020 02:29
Template blogspot untuk Sanggar Caraka
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:css='false' b:defaultwidgetversion='2' b:layoutsVersion='3' b:responsive='true' b:templateVersion='1.0.0' expr:class='data:blog.languageDirection' expr:dir='data:blog.languageDirection' lang='id' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<meta content='width=device-width, initial-scale=1' name='viewport'/>
<title><data:view.title.escaped/></title>
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<meta content='Komunitas baca tulis Sanggar Caraka' name='description'/>
</b:if>
@mzaini30
mzaini30 / script.sh
Created May 23, 2020 02:17
npm install without symlink (for termux)
npm i
rsync --archive --verbose --copy-links ./node_modules/ ./node_modules_cp/
rm -r ./node_modules/
mv ./node_modules_cp/ ./node_modules/
<h1>Hello world</h1>
<script id="jsbin-source-html" type="text/html">h1 Hello world</script>
@mzaini30
mzaini30 / halaman.py
Created March 18, 2020 01:19
Program yang membantu kita untuk menemukan nomor halaman asli
#!/usr/bin/python3.6
# Aplikasi ini akan membantumu untuk mencari letak halaman pada sebuah buku.
# Misalnya aja ada buku yang berisi halaman i-xiii pada halaman awal dan dilanjutkan dengan 1-100. Total halaman adalah 113. Kalau kita mencari halaman 1, maka yang kita buka di PDF (kalau misalnya berbentuk PDF) bukanlah halaman 1 melainkan halaman 14. Nah, program ini membantumu untuk menemukannya.
# Cara menggunakannya, simpan program ini di PATH dan kasih akses root. Cara menggunakannya tinggal sebut aja namanya. Jangan lupa, pastikan terinstall Python 3.6.
# Hasil:
@mzaini30
mzaini30 / keybase.md
Created February 17, 2020 15:53
Hello

Keybase proof

I hereby claim:

  • I am mzaini30 on github.
  • I am mzaini30 (https://keybase.io/mzaini30) on keybase.
  • I have a public key ASBaSf0Aroi2-GQT8LhH9CNVVyyDf-tGdPEIAdCIJ5cpdQo

To claim this, I am signing this object:

@mzaini30
mzaini30 / MainActivity.java
Last active January 28, 2019 14:39
Main activity java dengan webview dan admob
package com.mzaini30.onedayonepost;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.content.Context;
import android.view.KeyEvent;
import android.webkit.URLUtil;
import android.webkit.WebSettings;
import android.webkit.WebView;