Skip to content

Instantly share code, notes, and snippets.

View Awilum's full-sized avatar
🧙‍♂️
WORK HARD. PLAY HARD

Sergey Romanenko Awilum

🧙‍♂️
WORK HARD. PLAY HARD
View GitHub Profile
### Keybase proof
I hereby claim:
* I am Awilum on github.
* I am awilum (https://keybase.io/awilum) on keybase.
* I have a public key whose fingerprint is 6348 9E76 D86B 773D 0B30 024A 923A FFE7 3AC6 DB03
To claim this, I am signing this object:
$array1 = array("PHP" => "Rasmus", "Javascript" => "Brendan", "R" => "Robert", "flextype" => ["founder" => "Sergey"], 10 => 'num1', '11' => 'num1');
$array2 = array("Java" => "James", "R" => "Ross", "Python" => "Guido", "flextype" => ['version' => '1.0'], 10 => 'num2', '11' => 'num2');
$result = array_merge($array1, $array2);
$result2 = array_replace($array1, $array2);
$result3 = array_merge_recursive($array1, $array2);
$result4 = array_replace_recursive($array1, $array2);
echo '<pre>array_merge: <br>';
print_r($result);
@Awilum
Awilum / flextype-0.9.9-traditional-cms.bash
Last active August 5, 2020 14:11
Flextype Traditional CMS
#
# Flextype Traditional CMS (MacOS, Linux)
#
# Required: curl, wget, jq
#
# Will be installed
#
# Core: Flextype
# Plugins: admin, accounts, accounts-admin, acl, site, twig, form, form-admin, themes-admin, jquery, icon, phpmailer
# Themes: noir
<p style="font-size: 500%; text-align: center">Total Downloads:</p>
<p id="downloads-all" style="font-size:1000%; text-align: center"></p>
<script type="text/javascript">
let userName = "flextype"; // User name of the repository
let repoName = "flextype"; // Repository name
let releaseTag = "latest"; // Using tag 'latest' for latest released download count
let url = `https://api.github.com/repos/${userName}/${repoName}/releases/${releaseTag}`;
let request = new XMLHttpRequest();
request.open('GET', url, true);
request.onload = function () {
@Awilum
Awilum / git-commit-log-stats.md
Created April 15, 2021 07:54 — forked from eyecatchup/git-commit-log-stats.md
Some commands to get git commit log statistics for a repository on the command line.

git commit stats

Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.




title: Default
type: entry
icon:
set: bootstrap
name: file-text
admin:
entries:
view:
emitter:
addListener:
admin:
entries:
view:
emitter:
addListener:
- name: onAdminThemeTail
properties:
value: |
<form id="delete-entry-id-{{ entry.id }}" action="{{ urlFor('admin.content.deleteProcess') }}" method="POST" style="display: none;">
{{ csrf() }}
<?php
return Atomastic\Arrays\Arrays::__set_state(array(
'items' =>
array (
'title' => 'Shop',
'entries' =>
array (
'fetch' =>
array (
'catalog' =>
<?php
return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate(
$o = [
clone (($p = &\Symfony\Component\VarExporter\Internal\Registry::$prototypes)['Atomastic\\Arrays\\Arrays'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('Atomastic\\Arrays\\Arrays')),
clone $p['Atomastic\\Arrays\\Arrays'],
clone $p['Atomastic\\Arrays\\Arrays'],
clone $p['Atomastic\\Arrays\\Arrays'],
clone $p['Atomastic\\Arrays\\Arrays'],
clone $p['Atomastic\\Arrays\\Arrays'],
clone $p['Atomastic\\Arrays\\Arrays'],

Keybase proof

I hereby claim:

  • I am awilum on github.
  • I am awilum (https://keybase.io/awilum) on keybase.
  • I have a public key ASBuf2Fuhn_PRGA1JnWLY187vFoiKuHnemJCl9ypnSE_awo

To claim this, I am signing this object: