Skip to content

Instantly share code, notes, and snippets.

@maranemil
maranemil / transformKeys.php
Created May 22, 2022 16:33 — forked from goldsky/transformKeys.php
Convert under_score type array's keys to camelCase type array's keys and likewise
<?php
/**
* Convert under_score type array's keys to camelCase type array's keys
* @param array $array array to convert
* @param array $arrayHolder parent array holder for recursive array
* @return array camelCase array
*/
public function camelCaseKeys($array, $arrayHolder = array()) {
$camelCaseArray = !empty($arrayHolder) ? $arrayHolder : array();
@maranemil
maranemil / myscript.sh
Created October 17, 2021 19:31 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@maranemil
maranemil / ffmpeg.md
Created October 30, 2020 13:02 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@maranemil
maranemil / meta-tags.md
Created December 6, 2019 11:02 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags
<?php
$app_list_strings['iso_country_code_phone_prefixes_list'] = array (
'' => '',
'AX' => 35818,
'DK' => 45,
'FO' => 298,
'FI' => 35,
'GL' => 299,
'IS' => 354,
<?php
$app_list_strings['phone_prefixes_list'] = array (
'' => '',
35818 => '+ 358 18',
45 => '+ 45',
298 => '+ 298',
35 => '+ 35',
299 => '+ 299',
354 => '+ 354',
<?php
/**
* @author Emil Kilhage <emilkilhage@gmail.com>
*/
$app_list_strings['iso_3166_1_country_code_list'] = array (
"SE" => "Sweden",
"FI" => "Finland",
"NO" => "Norway",
"DK" => "Denmark",