Sometimes I have multiple jQuery variables that I want to perform the same action on. So I find myself doing something like...
var $header = $( 'body > header' );
var $nav = $( 'body > nav.burger-menu' );| <?php | |
| function event(string $name, array $data = [],callable $action = null,int $priority = 0){ | |
| static $events = []; | |
| if($action){ | |
| $events[$name][]=[ | |
| 'priority' => $priority, | |
| 'action' => $action | |
| ]; | |
| return null; | |
| } |
| <?php | |
| $start_time = microtime(true); | |
| $startMemoryUsage = memory_get_peak_usage(); | |
| /********************************************** | |
| WITHOUT GENERATOR | |
| **********************************************/ | |
| $array = []; |
| <div id="invoice-POS"> | |
| <center id="top"> | |
| <div class="logo"></div> | |
| <div class="info"> | |
| <h2>SBISTechs Inc</h2> | |
| </div><!--End Info--> | |
| </center><!--End InvoiceTop--> | |
| <!-- Don't forget to include the Tailwind css file --> | |
| <div class="flex w-full"> | |
| <div class="bg-grey-darkest h-screen"> | |
| <img src="https://jeroen.github.io/erum2018/logo.png" alt="Random Logo" class="block w-16 p-2 mx-auto mb-5"> | |
| <div class="w-64 navigationMenu"> | |
| <div class="mb-5"> | |
| <div class="flex text-white"> | |
| <div class="w-12 ml-1 text-center"><i class="fas fa-tachometer-alt"></i></div> | |
| <div class="navItem"><a href="javascript:void(0)" class="relative no-underline text-grey-light hover:text-grey-lightest hover:border-4 border-brand">Link 1</a></div> |
Most of programs will not accept an email using just @localhost as domain.
So, edit /etc/hosts file to make the domain localhost.com point to your machine, including this content to the file:
127.0.0.1 localhost.com
| <?php | |
| /** | |
| * Class to handle job execution | |
| */ | |
| class Jobs extends Onecore_Controller | |
| { | |
| const STATUS_DONE = 'done'; | |
| const STATUS_QUEUED = 'queued'; | |
| const STATUS_RUNNING = 'running'; |
| <?php (defined('BASEPATH')) OR exit('No direct script access allowed'); | |
| /** | |
| * Router Class | |
| * | |
| * Parses URIs and determines routing | |
| * | |
| * @package CodeIgniter | |
| * @subpackage Libraries | |
| * @author ashokmhrj |
| /*determine th file extension | |
| $file_name = $_FILES['image']['name']; | |
| $file_extn = end(explode(".", strtolower($_FILES['image']['name']))); | |
| if($file_extn == "doc" || $file_extn == "docx"){ | |
| }elseif($file_extn == "rtf"){ | |
| } | |
| */ |