# create new network
docker network create my-net
# run mongo
docker run -d --name some-mongo --network my-net mongo
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
EnvGet, LocalAppData, LocalAppData | |
!space::ToggleTerminal() | |
ToggleTerminal() | |
{ |
import tinymce from "tinymce"; | |
require("tinymce/plugins/preview/plugin"); | |
require("tinymce/plugins/importcss/plugin"); | |
require("tinymce/plugins/searchreplace/plugin"); | |
require("tinymce/plugins/save/plugin"); | |
require("tinymce/plugins/visualblocks/plugin"); | |
require("tinymce/plugins/fullscreen/plugin"); | |
require("tinymce/plugins/visualchars/plugin"); | |
require("tinymce/plugins/link/plugin"); |
# create new network
docker network create my-net
# run mongo
docker run -d --name some-mongo --network my-net mongo
<?php namespace App\Controllers; | |
use Ozdemir\Datatables\Datatables; | |
use Ozdemir\Datatables\DB\Codeigniter4Adapter; | |
class Home extends BaseController | |
{ | |
public function index() | |
{ | |
return view('datatables'); |
(?P<orderby>order\s+by)\s+(\w+\.)?(?P<column>[\.|\w]+)\s*(?P<dir>asc|desc)\s*$ |
$(document).ready(function() { | |
// Setup - add a text input to each footer cell | |
$('#example tfoot th').each( function () { | |
var title = $(this).text(); | |
$(this).html( '<input type="text" class="input is-small dt-input" placeholder="Search '+title+'" />' ); | |
} ); | |
$('#example tfoot th.dropdown').html( '<div class="control"><div class="select is-primary is-small"><select class="dt-input" ><option value="">Select a track</option><option value="Evil Walks">Evil Walks\t</option><option value="Snowballed">Snowballed</option></select></div></div>' ); | |
// DataTable |
/** | |
* Merge defaults with user options | |
* @private | |
* @param {Object} defaults Default settings | |
* @param {Object} options User options | |
* @returns {Object} Merged values of defaults and options | |
*/ | |
var extend = function ( defaults, options ) { | |
var extended = {}; | |
var prop; |
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
// Codeigniter 3 usage : | |
// Set config/config.app: | |
// $config['composer_autoload'] = 'vendor/autoload.php'; | |
use Ozdemir\Datatables\Datatables; | |
use Ozdemir\Datatables\DB\CodeigniterAdapter; | |
class Welcome extends CI_Controller { | |
public function index() | |
{ |
<table border="0" class="display" id="example" width="100%"> | |
<thead> | |
<tr> | |
<th width="8%">Id</th> | |
<th width="50%">Name</th> | |
<th width="22%">Unit Price</th> | |
<th width="20%">Action</th> | |
</tr> | |
</thead> | |
<tbody> |
<?php | |
$time_start = microtime(true); | |
for($i=0; $i<1000; $i++){ | |
// code here | |
} | |
$time_end = microtime(true); |