Skip to content

Instantly share code, notes, and snippets.

View aliab's full-sized avatar
🤨

Ali Abdollahi aliab

🤨
View GitHub Profile
@hamid-ne
hamid-ne / Boostrap 4 RTL for Laravel.md
Last active July 8, 2021 19:12
Install Boostrap 4 RTL for Laravel

Install Boostrap 4 RTL for Laravel

  1. npm uninstall --save-dev bootstrap-sass

  2. npm install --save-dev rtl-bootstrap popper.js

  3. Find In 'resources/assets/js/bootstrap.js' and Replace

@theshem
theshem / calcStr.beta.php
Last active December 15, 2015 12:39
How to Calculate arithmetic operators in strings via PHP
<?php
function calc($str)
{
$compute = create_function('', 'return (' . trim($str) . ');' );
return $compute();
}
# Demonstration
$string = " (5 - 1) * (6 / 2 + 1) ";