Skip to content

Instantly share code, notes, and snippets.

Thomanphan Thomanphan

Block or report user

Report or block Thomanphan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View jsbin.EQIHEMiD.html
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<h1>Alexa Search Traffic</h1>
<ul class="b-menu-01">
View jsbin.EFayoCI.html
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
View jsbin.EFayoCI.html
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
@Thomanphan
Thomanphan / gist:9497721
Created Mar 11, 2014
Resize crop images
View gist:9497721
location /resize {
alias /tmp/nginx/resize;
set $width 150;
set $height 100;
set $dimens "";
if ($uri ~* "^/resize_(\d+)x(\d+)/(.*)" ) {
set $width $1;
set $height $2;
set $image_path $3;
@Thomanphan
Thomanphan / index.html
Created May 30, 2014
Load Disqus comments when scroll near bottom with ajax load , fast load your website check demo http://urlchecker.org with more than 400 comment
View index.html
<!-- An element a visitor can click if they <3 comments! -->
<button class="show-comments">Load Disqus comments</button>
<!-- The empty element required for Disqus to loads comments into -->
<div id="disqus_thread"></div>
View urlchecker.php
<?php
/**
* link checker by urlchecker.net
*/
$lcurl = 'http://urlchecker.org/?url=' . urlencode($_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);
$tnlc = '<a href="' . $lcurl . '"><strong>Check Download Links</strong></a>';
echo $tnlc;
?>
@Thomanphan
Thomanphan / html_form.html
Created Jul 15, 2014
html form by urlchecker.net
View html_form.html
<form action="http://urlchecker.org/" method="post">
<textarea style="border: 1px solid #9d9d9d; background-color: #d3d3d3; color: #000;" rows="10" cols="45" name="links"></textarea>
<br />
<div style="margin-top:4px;">
<input style="padding: 2px;" type="submit" value="Check Links" name="submit" />
</div>
</form>
@Thomanphan
Thomanphan / Javascript Addon.html
Last active Aug 29, 2015
Javascript Addon (Place this HTML form code in any page on your website)
View Javascript Addon.html
<script type="text/javascript">
urlchecker = "<a href='http://urlchecker.net/?url=" + window.top.location + "'> Check Download link</a>";
document.write(urlchecker);
</script>
View index.html
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-git2.js"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyDlN48smo55Cl48b71XpXuFD7OhJ5pktls&sensor=false"></script>
<script type="text/javascript" src="http://google-maps-utility-library-v3.googlecode.com/svn/tags/infobox/1.1.12/src/infobox.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
View a_mongodb_to_s3_backup.sh
#!/bin/bash
#Force file syncronization and lock writes
mongo admin --eval "printjson(db.fsyncLock())"
MONGODUMP_PATH="/usr/bin/mongodump"
MONGO_HOST="prod.example.com"
MONGO_PORT="27017"
MONGO_DATABASE="dbname"
You can’t perform that action at this time.