Skip to content

Instantly share code, notes, and snippets.

View ArbahudRioDaroyni's full-sized avatar
💭
RandD Studio - Freelancer ;)

Roy ArbahudRioDaroyni

💭
RandD Studio - Freelancer ;)
View GitHub Profile
@ArbahudRioDaroyni
ArbahudRioDaroyni / median-ui.xml
Created September 8, 2023 06:33
Median UI v-1.6 - Theme Blogger
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:css='false' b:defaultwidgetversion='2' b:layoutsVersion='3' b:responsive='true' b:templateUrl='indie.xml' b:templateVersion='1.3.0' expr:dir='data:blog.languageDirection' expr:lang='data:blog.locale.language' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<b:attr name='xmlns' value=''/>
<b:attr name='xmlns:b' value=''/>
<b:attr name='xmlns:expr' value=''/>
<b:attr name='xmlns:data' value=''/>
<!--
<?php
function minifier($code) {
$search = array(
// Remove whitespaces after tags
'/\>[^\S ]+/s',
// Remove whitespaces before tags
'/[^\S ]+\</s',
@ArbahudRioDaroyni
ArbahudRioDaroyni / generate-string-number.php
Created January 31, 2020 13:51
Generate String and Number
<?php
function generateRandomString($length = 10) {
$characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$charactersLength = strlen($characters);
$randomString = '';
for ($i = 0; $i < $length; $i++) {
$randomString .= $characters[rand(0, $charactersLength - 1)];
}
return $randomString;
}
<?php
abstract class Lorem {
public static function paragraphs($nparagraphs) {
$paragraphs = [];
for($p = 0; $p < $nparagraphs; ++$p) {
$nsentences = random_int(3, 8);
$sentences = [];
for($s = 0; $s < $nsentences; ++$s) {
$frags = [];