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 / SaveWebtoonAllEpisode.py
Created September 3, 2016 00:29 — forked from jsb9412/SaveWebtoonAllEpisode.py
Webtoon Download Program in Python
import re, sys
import urllib2
webtoonURL = 'http://comic.naver.com/webtoon/detail.nhn?titleId='
subWebtoonURL = '&no='
def saveHtml(content, filename) :
f = open(filename, 'w')
f.write(content)
f.close()
@mzaini30
mzaini30 / Hasil.txt
Last active March 3, 2017 13:00
Simple reverse list in python
/data/data/org.qpython.qpy/files/bin/qpython.sh "/storage/emulated/0/qpython/scripts/.last_tmp.py" && exit
d/0/qpython/scripts/.last_tmp.py" && exit <
10
9
8
7
6
5
4
@mzaini30
mzaini30 / App.py
Created March 3, 2017 13:26
Mengubah 2 spasi menjadi 1 tab
import re
lokasi = "/sdcard/python/regex tab/"
with open(lokasi+"/input.txt", "r") as file_input,\
open(lokasi+"/output.txt", "w") as file_output:
file_input = file_input.read()
file_input = re.sub(r" ", r"\t", file_input)
file_output.write(file_input)
@mzaini30
mzaini30 / App.py
Created March 3, 2017 13:30
Mengubah spasi menjadi bentuk tabel markdown
import re
lokasi = "/sdcard/python/regex table/"
enter = "\n"
with open(lokasi+"/input.txt", "r") as file_input,\
open(lokasi+"/output.txt", "w") as file_output:
file_input = file_input.read()
file_input = re.sub(r"\t", r" | ", file_input)
@mzaini30
mzaini30 / App.py
Created March 3, 2017 13:48
Menggabungkan semua kontak ke 1 html
import glob, re
lokasi = "/sdcard/python/kontak/"
folder = "input"
enter = "\n\n"
header = open(lokasi+"_component/header.txt").read()
footer = open(lokasi+"_component/footer.txt").read()
output = open(lokasi+"output.html", "w")
@mzaini30
mzaini30 / Data.md
Last active March 4, 2017 01:29
Bagaimana cara mengubah table menjadi list python?
nama jabatan usia
zaini cto 25
ati user experience 26
rahman designer 21
andre bussiness strategies 23
rey ceo 29
@mzaini30
mzaini30 / App.py
Created March 4, 2017 02:43
Konversi tabel ke list
import re
lokasi = "/sdcard/python/tabel/"
data = open(lokasi+"data.txt").read().splitlines()
nama=[]
jabatan=[]
usia=[]
print data
print
@mzaini30
mzaini30 / upload-gambar.php
Created April 2, 2018 04:36
Mengapa data yang tersimpan di database adalah data kosong yang di initialise?
<?php
$ktp = $this->input->post('ktp');
$nama = $this->input->post('nama');
$gender = $this->input->post('gender');
$alamat = $this->input->post('alamat');
$foto_diri = ''; // mengapa yang ini yang tersimpan di database?
$username = $this->input->post('username');
$password = $this->input->post('password');
// main upload gambar
while true
do
git status
git add -A .
git commit -m "oke"
git push
sleep 3m
done
@echo off
title cloud
:app
git status
git add -A .
git commit -m "oke"
git push
timeout /t 180 /nobreak