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
const tutorial = function () { | |
/* Change HTML Content */ | |
document.getElementById("element").innerHTML = "Hello JavaScript!"; | |
/* Change an Image */ | |
document.getElementById('element').src='pic_bulboff.gif'"; | |
/* Change the Style (CSS) of an element */ |
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
/* Color! */ | |
p { | |
color: white; | |
background-color: black; | |
} | |
/* Style! */ | |
p { |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>HTML: Nerd Translation For The Novice</title> | |
<meta name="description" content="HTML: Nerd Translation For The Novice"> | |
<meta name="author" content="Philleep Florence"> |
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 | |
use Directus\Bootstrap; | |
use Directus\Util\ArrayUtils; | |
use Directus\Database\TableGateway\RelationalTableGateway; | |
return [ | |
'session' => [ | |
'prefix' => 'directus6_' | |
], |
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
# How to use = CALL `DIRECTUSTABLES`('old_table_name', 'new_table_name'); | |
DELIMITER ;; | |
CREATE PROCEDURE `DIRECTUSTABLES`(IN old_table_name VARCHAR(50), IN new_table_name VARCHAR(50)) | |
BEGIN | |
# Change the name of the table - BACK UP DB BEFORE STARTING!!!. | |
DECLARE sql_statement VARCHAR(1024); | |
SET @SQL := CONCAT('ALTER TABLE `', old_table_name, '` RENAME TO `', new_table_name, '`'); |
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
# Collections - Directus v6.x | |
CREATE TABLE `contents_posts` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`status` int(1) NOT NULL DEFAULT '2', | |
`sort` int(11) DEFAULT NULL, | |
`feature` tinyint(1) DEFAULT NULL COMMENT 'Feature post in various sections of application', | |
`source` varchar(250) DEFAULT NULL COMMENT 'Source URL for Post - Optional', | |
`post_type` int(11) DEFAULT NULL COMMENT 'Type of Post - Blog, Article, News, et al', | |
`page` int(11) DEFAULT NULL COMMENT 'Primary page where item should be displayed - required for setting up Page Metadata', |
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
/* | |
Global Bookmarks | |
Example: [domain]/tables/[table-name]?filters[neighborhood][like]=West%20Village | |
Add window.location.search to data going to the server for fetcing items | |
Add script after document.load event or in an init function | |
GLOBAL VARIABLES: | |
var version = '1.1' - dynamic depending of API version | |
*/ | |
Backbone._sync = Backbone.sync; |
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
/** | |
* `sails-linker` | |
* | |
* --------------------------------------------------------------- | |
* | |
* Automatically inject <script> tags and <link> tags into the specified | |
* specified HTML and/or EJS files. The specified delimiters (`startTag` | |
* and `endTag`) determine the insertion points. | |
* | |
* #### Development (default) |
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 | |
use Directus\Bootstrap; | |
use Directus\View\JsonView; | |
use Directus\Database\TableGateway\RelationalTableGateway; | |
use Directus\Util\ArrayUtils; | |
use Directus\Util\DateUtils; | |
use Directus\Util\StringUtils; |
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 | |
use Directus\Bootstrap; | |
use Directus\View\JsonView; | |
use Directus\Database\TableGateway\RelationalTableGateway; | |
use Directus\Util\ArrayUtils; | |
use Directus\Util\DateUtils; | |
use Directus\Util\StringUtils; |
NewerOlder