Skip to content

Instantly share code, notes, and snippets.

View gemblue's full-sized avatar
🏠
Working for Food

Ahmad Oriza gemblue

🏠
Working for Food
View GitHub Profile
@nurrachmat-nr
nurrachmat-nr / njr_helper.php
Created July 16, 2020 07:04
Fungsi PHP untuk mengubah angka menjadi bilangan romawi
/**
* @package njr_helper
* @subpackage Helper
* @author Nur Rachmat <rachmat.nur91@gmail.com>
* @version 0.1
* @copyright Copyright © 2017 Nur Rachmat <rachmat.nur91@gmail.com>
*/
/**
* Convert Number to Roman
@thoop
thoop / nginx.conf
Last active December 8, 2023 21:55
Official prerender.io nginx.conf for nginx
# Change YOUR_TOKEN to your prerender token
# Change example.com (server_name) to your website url
# Change /path/to/your/root to the correct value
server {
listen 80;
server_name example.com;
root /path/to/your/root;
index index.html;
@mathewbyrne
mathewbyrne / slugify.js
Created October 12, 2011 04:34
Javascript Slugify
function slugify(text)
{
return text.toString().toLowerCase()
.replace(/\s+/g, '-') // Replace spaces with -
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
.replace(/\-\-+/g, '-') // Replace multiple - with single -
.replace(/^-+/, '') // Trim - from start of text
.replace(/-+$/, ''); // Trim - from end of text
}