Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block arnisjuraga

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
arnisjuraga /
Last active Oct 24, 2019
A small script with manual steps, how to convert simple TWIG templates back to PHP markup. Used for Opencart, sequence is important. Will be updated as used for any new template.

TODO: automated script

Regex search-replace

Static variables echo

# Arrays
arnisjuraga / suffixsearch.php
Last active Sep 19, 2019
Search, is array strings matches suffix of another string
View suffixsearch.php
e.g. I need to search, if given string suffix characters (starts with) "allowed" characters.
$allowed = [ 'LV', 'LT' , 'IBAN' ];
$given = 'LViban8500';
arnisjuraga / 0_reuse_code.js
Created Dec 11, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.