Skip to content

Instantly share code, notes, and snippets.

View farhamdani's full-sized avatar

Farhamdani farhamdani

View GitHub Profile
<div dir="ltr" style="text-align: left;" trbidi="on">
<style type="text/css">#toc{width:99%;margin:5px auto;border:1px solid #2D96DF; -webkit-box-shadow:4px 4px 8px 2px rgba(0,0,0, 0.2); -moz-box-shadow:4px 4px 8px 2px rgba(0,0,0, 0.2); box-shadow:4px 4px 8px 2px rgba(0,0,0, 0.2);} .labl{color:#FF5F00;font-weight:bold;margin:0 -5px; padding:1px 0 2px 11px;background: #3498DB; border:1px solid #2D96DF; border-radius:4px;-moz-border-radius:4px; -webkit-border-radius:4px;box-shadow:3px 3px 1px #bbb; -moz-box-shadow:3px 3px 1px #bbb;-webkit-box-shadow:3px 3px 1px #bbb;display:block;} .labl a{color:#fff;} .labl:first-letter{text-transform:uppercase;} .new{color:#FF5F00;font-weight:bold;font-style:italic;} .postname{font-weight:normal;background:#fff;margin-left: 35px;} .postname li{border-bottom: #ddd 1px dotted;margin-right:5px} </style>
<br /><div id="toc"><script src="https://cdn.rawgit.com/penaindigo/Pena-Indigo-Code/a134f9de/sitemappenaindigo.js" type="text/javascript"></script><br /><script src="/feeds/posts

<script type=’text/javascript’>

var postTitle = new Array(); var postUrl = new Array(); var postPublished = new Array(); var postDate = new Array(); var postLabels = new Array(); var postRecent = new Array(); var sortBy = “titleasc”; var numberfeed = 0;

@farhamdani
farhamdani / lightshot-prntscr-install.txt
Last active October 29, 2020 13:11
Installing Lightshot using Wine
sudo apt-get install wine
wget http://app.prntscr.com/build/setup-lightshot.exe
wine ./setup-lightshot.exe


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. If you have finished with me, you can just 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
<?php
include("fungsi_koneksi.php");
include("fungsi_validasi_tipe_image.php");
include("fungsi_cek_dimensi.php");
$lokasi_file = $_FILES['adiputra']['tmp_name'];
$tipe_file = $_FILES['adiputra']['type'];
$nama_file = $_FILES['adiputra']['name'];
$direktori = "image/$nama_file";
<?php
function cekDimensiMax($lokasi_file){
$lebar_max = 200;
$tinggi_max = 300;
$lokasi_gambar = $lokasi_file;
$hasil = 0;
$ukuran_asli = GetImageSize($lokasi_gambar);
<script charset='utf-8' src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js' type='text/javascript'/>
<script src='http://amronbadriza.googlecode.com/files/Lazyload%20Script.js' type='text/javascript'/>
<script>
$(function() {
$(&quot;img&quot;).lazyload({placeholder : &quot;http://3.bp.blogspot.com/-GbM7bUOC9UQ/UDJcRvpI1PI/AAAAAAAAAPA/AK_8K93XpHc/s1600/loading.png&quot;,threshold : 200});
});
</script>
<!- START disable copy paste --><script src='demo-to-prevent-copy-paste-on-blogger_files/googleapis.js'></script><script type='text/javascript'> if(typeof document.onselectstart!="undefined" ) {document.onselectstart=new Function ("return false" ); } else{document.onmousedown=new Function ("return false" );document.onmouseup=new Function ("return false"); } </script><!-- End disable copy paste -->
@farhamdani
farhamdani / gist:b94fb0d123797927bbb6cf34e1539873
Created May 12, 2018 11:12
Widget chat facebook untuk blog
<style type = "text / css"> # bc-facebook .fbchat_box, # chat_f_b_smal, # f_bt_start_chat {background: # 3a5897} #fbchat_box {padding-right: 15px; lebar maksimal: 210px; tinggi maksimal: 50px; layar : blok; transisi: semua .3s} # bc-facebook .f-chat-conent .chat-single a, # chat_f_b_smal {font-family: Arial, sans-serif} # bc-facebook .fbchat_box, # chat_f_b_smal {text- shadow: 0 1px 0 rgba (0,0,0, .1); background-repeat: repeat-x; background-size: auto; background-position: 0 0; text-decoration: none} .chat_f_vt {position: fixed ; kanan: 10px} #chat_f_b_smal {padding: 0 10px; kursor: penunjuk; lebar: 90px; warna: #fff; tinggi: 38px; tinggi-baris: 38px; latar belakang-warna: # 3a5897; pembatas: 0; margin-kanan : 12px; ukuran font: 14px; z-index: 999999999; bawah: 0; border-top-left-radius: 5px; border-top-right-radius: 5px; bottom: -400px; transisi: all .3s; text-align: center; display: block} #chat_f_b_smal:hover {background-color: # 3B5998; opacity: 1} # bc-facebook {margin-right: 50px; bottom: 0; z-index: 9
<!-- right hidden chatbox by http://www.brodanie.com/START -->
<style>
#hcl {
position:fixed;
top:35px;
left:0px;
z-index:+1000;
}
* html #hcl {position:relative;}
.hcltab {