Skip to content

Instantly share code, notes, and snippets.

View siarie's full-sized avatar
🐼
I may be slow to respond.

siarie

🐼
I may be slow to respond.
View GitHub Profile
module Encoder = struct
let alphabet = "abcdefghijklmnopqrstuvwxyz"
let encode x =
let n = String.length alphabet in
let rec _encode s v =
if v > 0 then _encode (String.make 1 alphabet.[v mod n] ^ s) (v / n)
else s
in _encode "" x
end
@siarie
siarie / json.php
Created December 7, 2022 06:41
Simpel PHP wrapper for manipulating JSON
<?php
class Json
{
private $json = [];
/**
* Parse json to array
*
* @param string $json JSON string
* @return void
MY FIRST STORY β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘ 3 plays
Drive β–ˆβ–ˆβ–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 1 plays
Jamrud β–ˆβ–ˆβ–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 1 plays