This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Converts a number into a short version, eg: 1000 -> 1k | |
// Based on: http://stackoverflow.com/a/4371114 | |
function number_format_short( $n, $precision = 1 ) { | |
if ($n < 900) { | |
// 0 - 900 | |
$n_format = number_format($n, $precision); | |
$suffix = ''; | |
} else if ($n < 900000) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* time since last post | |
* @author Mad Jack | |
* @param {int} $time passed time in seconds as param | |
* @return {datetime} Return formated date and time | |
*/ | |
function ago($time) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name SiamBit Zoom Screen Shot | |
// @namespace http://tampermonkey.net/ | |
// @version 0.23 | |
// @description Show screen shot when mouse hover icon camera or title name | |
// @author น้องแมว | |
// @match https://www.siambit.me/* | |
// @require https://code.jquery.com/jquery-1.12.4.min.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/blueimp-md5/2.10.0/js/md5.min.js | |
// @grant GM_addStyle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ( $ ) { | |
/* | |
* ##REQUIRE## | |
* jquery | |
* md5 | |
* fancybox | |
* | |
* ##CDN https://raw.githack.com/ ## | |
* release new version must purge cached | |
* use source url for purge cached |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* A simple PHP BBCode Parser function | |
* | |
* @author Afsal Rahim | |
* @link http://digitcodes.com/create-simple-php-bbcode-parser-function/ | |
**/ | |
//BBCode Parser function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//post ข้อมูลมาเก็บไว้ที่ตัวแปร | |
$fullname = $_POST['fullname']; | |
$email = $_POST['email']; | |
$number = $_POST['number']; | |
$company = $_POST['company']; | |
$messages = $_POST['message']; | |
///ส่วนที่ 1 line แจ้งเตือน จัดเรียงข้อความที่จะส่งเข้า line ไว้ในตัวแปร $message | |
$header = 'ส่งข้อความถึงเรา'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
reg delete "HKCU\Software\Scooter Software\Beyond Compare 4" /v CacheID /f |