Skip to content

Instantly share code, notes, and snippets.

View farhamdani's full-sized avatar

Farhamdani farhamdani

View GitHub Profile
<script type="text/javascript">
var a_rc = 5;
var m_rc = false;
var n_rc = true;
var o_rc = 100;
function showrecentcomments(e){for(var r=0;r<a_rc;r++){var t,n=e.feed.entry[r];if(r==e.feed.entry.length)break;for(var i=0;i<n.link.length;i++)if("alternate"==n.link[i].rel){t=n.link[i].href;break}t=t.replace("#","#");var a=t.split("#");a=a[0];var c=a.split("/");c=c[5],c=c.split(".html"),c=c[0];var s=c.replace(/-/g," ");s=s.link(a);var o=n.published.$t,l=(o.substring(0,4),o.substring(5,7)),u=o.substring(8,10),m=new Array;if(m[1]="Jan",m[2]="Feb",m[3]="Mar",m[4]="Apr",m[5]="May",m[6]="Jun",m[7]="Jul",m[8]="Aug",m[9]="Sep",m[10]="Oct",m[11]="Nov",m[12]="Dec","content"in n)var d=n.content.$t;else if("summary"in n)var d=n.summary.$t;else var d="";var v=/<\S[^>]*>/g;if(d=d.replace(v,""),document.write('<div class="rcw-comments">'),1==m_rc&&document.write("On "+m[parseInt(l,10)]+" "+u+" "),document.write('<span class="author-rc"><a href="'+t+'">'+n.author[0].name.$t+"</a></span> commented"),1==n_rc&&document.write(" on
<!-- 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 {
@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
<!- 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 -->
<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>
<?php
function cekDimensiMax($lokasi_file){
$lebar_max = 200;
$tinggi_max = 300;
$lokasi_gambar = $lokasi_file;
$hasil = 0;
$ukuran_asli = GetImageSize($lokasi_gambar);
<?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";


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
@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

<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;