// Built-in types
$variable = null; // null type
// Scalar types
$boolVar = true; // bool type
$intVar = 42; // int type
$floatVar = 3.14; // float type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Controllers; | |
use Ozdemir\Datatables\Datatables; | |
use Ozdemir\Datatables\DB\Codeigniter4Adapter; | |
class Home extends BaseController | |
{ | |
public function index() | |
{ | |
return view('datatables'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(?P<orderby>order\s+by)\s+(\w+\.)?(?P<column>[\.|\w]+)\s*(?P<dir>asc|desc)\s*$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
NewerOlder