Skip to content

Instantly share code, notes, and snippets.

View 6lueparr0t's full-sized avatar
😎

Daehyun Lim (임대현) 6lueparr0t

😎
View GitHub Profile
@azagniotov
azagniotov / beautiful.rest.api.docs.in.markdown.md
Last active May 20, 2024 19:34
Example to create beautiful REST API docs in Markdown, inspired by Swagger API docs.
@ve3
ve3 / Encryption.js
Last active August 10, 2023 10:51
Encrypt and decrypt between programming languages (PHP & JavaScript). (Newer version here https://gist.github.com/ve3/b16b2dfdceb0e4e24ecd9b9078042197 )
/**
* Encryption class for encrypt/decrypt that works between programming languages.
*
* @author Vee Winch.
* @link https://stackoverflow.com/questions/41222162/encrypt-in-php-openssl-and-decrypt-in-javascript-cryptojs Reference.
* @link https://github.com/brix/crypto-js/releases crypto-js.js can be download from here.
*/
class Encryption {
@svdmitrij
svdmitrij / cartesian.php
Last active January 10, 2020 14:09
4 algorithms of cartesian product
function cartesian($input) {
// http://stackoverflow.com/questions/6311779/finding-cartesian-product-with-php-associative-arrays
$result = array();
while (list($key, $values) = each($input)) {
// If a sub-array is empty, it doesn't affect the cartesian product
if (empty($values)) {
continue;
}