Skip to content

Instantly share code, notes, and snippets.

@jaideejung007
jaideejung007 / bc4trialreset.cmd
Created August 31, 2022 02:45 — forked from zsoumya/bc4trialreset.cmd
Beyond Compare 4 Trial Reset
reg delete "HKCU\Software\Scooter Software\Beyond Compare 4" /v CacheID /f
@jaideejung007
jaideejung007 / Line Notify ด้วย php
Created April 20, 2022 02:29 — forked from boychawin/Line Notify ด้วย php
แจ้งเตือนด้วย Line Notify ด้วย php
<?php
//post ข้อมูลมาเก็บไว้ที่ตัวแปร
$fullname = $_POST['fullname'];
$email = $_POST['email'];
$number = $_POST['number'];
$company = $_POST['company'];
$messages = $_POST['message'];
///ส่วนที่ 1 line แจ้งเตือน จัดเรียงข้อความที่จะส่งเข้า line ไว้ในตัวแปร $message
$header = 'ส่งข้อความถึงเรา';
@jaideejung007
jaideejung007 / php_bbcode_parser.php
Created April 19, 2022 04:15 — forked from afsalrahim/php_bbcode_parser.php
A simple PHP BBCode Parser function
<?php
/**
* A simple PHP BBCode Parser function
*
* @author Afsal Rahim
* @link http://digitcodes.com/create-simple-php-bbcode-parser-function/
**/
//BBCode Parser function
@jaideejung007
jaideejung007 / Tampermonkey-SiamBitZoomScreenShot.source.js
Last active December 16, 2019 01:42
Source Tampermonkey-SiamBitZoomScreenShot
(function ( $ ) {
/*
* ##REQUIRE##
* jquery
* md5
* fancybox
*
* ##CDN https://raw.githack.com/ ##
* release new version must purge cached
* use source url for purge cached
@jaideejung007
jaideejung007 / Tampermonkey-SiamBitZoomScreenShot.js
Created May 10, 2019 01:30
Tampermonkey - SiamBit Zoom Screen Shot
// ==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
@jaideejung007
jaideejung007 / timeAgo.php
Created May 22, 2017 14:52 — forked from grim-reapper/timeAgo.php
PHP: Facebook style time ago
<?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) {
@jaideejung007
jaideejung007 / short-number-format.php
Created February 3, 2017 12:05 — forked from RadGH/short-number-format.php
Short Number Formatter for PHP (1000 to 1k; 1m; 1b; 1t)
<?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) {