jdoe@home-pc:~# apt-get install redis-server
jdoe@home-pc:~# systemctl enable [email protected]
jdoe@home-pc:~# apt-get update
jdoe@home-pc:~# apt-cache pkgnames | grep php7.4
jdoe@home-pc:~# apt install php7.4-redis
This file contains hidden or 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
"use strict"; | |
var users = [ | |
{ | |
id: 1, | |
alias: "jdoe", | |
name: "John Doe" | |
}, | |
{ | |
id: 2, |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Parent Window</title> | |
</head> | |
<body> | |
<label>Avatar</label> | |
<br/> | |
<input type="text" name="avatar" readonly> | |
<br/> |
This file contains hidden or 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 | |
$categories = [ | |
['id' => 1, 'name' => 'TV & Home Theater', 'parent_id' => null,], | |
['id' => 2, 'name' => 'Tablets & E-Readers', 'parent_id' => null,], | |
['id' => 3, 'name' => 'Computers', 'parent_id' => null,], | |
['id' => 4, 'name' => 'Laptops', 'parent_id' => 3,], | |
['id' => 5, 'name' => 'PC Laptops', 'parent_id' => 4,], | |
['id' => 6, 'name' => 'Macbooks (Air/Pro)', 'parent_id' => 4,], | |
['id' => 7, 'name' => 'Desktops', 'parent_id' => 3,], |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Dynamic Charts</title> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div class="container-fluid"> | |
<div id="wrapper" class="row"></div> | |
</div> |
This file contains hidden or 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
# https://gitlab.com/mbrian/ects-ea-docs/-/ci/lint | |
# This file is a template, and might need editing before it works on your project. | |
image: node:10-alpine | |
# specify the location of the Open API Specification files within your project | |
# and the filename of the specification that you would like to display by default | |
variables: | |
DOCS_FOLDER: "specs" | |
SPEC_TO_DISPLAY: "rects.yaml" |
Source:
https://www.youtube.com/playlist?list=PLnBvgoOXZNCOiV54qjDOPA9R7DIDazxBA
$ cd /var/www/html
html$ git clone https://github.com/swagger-api/swagger-editor
https://www.youtube.com/watch?v=LNIvugvmCyQ
- XAMPP for Windows: https://www.apachefriends.org/download.html
- The VC14 build requires the Microsoft Visual C++ Redistributable for Visual Studio 2014
- The VC15 build requires the Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019
Raw SQL
SELECT
modules.name AS module,
(CASE WHEN facility_module.facility_id IS NULL
THEN 0
ELSE 1
END) AS granted
FROM
This file contains hidden or 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 | |
$tableModelMap = [ | |
'orders' => null, | |
'customers' => 'customer', | |
]; | |
$modelFields = [ | |
'id', | |
'customer.id', |