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
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE html> | |
<html b:css='false' b:js='false' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'> | |
<head> | |
<!-- Required meta tags --> | |
<meta charset='utf-8'/> | |
<meta content='width=device-width, initial-scale=1' name='viewport'/> | |
<title><data:view.title.escaped/></title> |
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
$page = (int) $this->request->getGet('page'); // | |
$limit = config('Pager')->perPage; // see Config/Pager.php | |
if (!isset($page) || $page === 0 || $page === 1) { | |
$page = 1; | |
$offset = 0; | |
} else { | |
$offset = ($page - 1) * $limit; | |
$page = $page; | |
} |
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
{ | |
"compile-hero.typescript-output-toggle": false, | |
"diffEditor.maxComputationTime": 0, | |
"editor.multiCursorModifier": "ctrlCmd", | |
"git.autofetch": true, | |
"git.confirmSync": false, | |
"git.enableCommitSigning": true, | |
"json.schemaDownload.enable": false, | |
"php.validate.executablePath": "", | |
"window.menuBarVisibility": "toggle", |
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
/** | |
* Usage: | |
* makeRequest("GET", "URL_GET_JSON", { postId: 1}) | |
* .then(data => { | |
* console.log(data); | |
* }); | |
*/ | |
function makeRequest(method, url, qs_params) { | |
return new Promise((resolve, reject) => { |
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 | |
function defer_scripts( $tag, $handle, $src ) { | |
$defer = array( | |
'my-js' | |
); | |
if ( in_array( $handle, $defer ) ) { | |
return '<script defer src="' . $src . '" type="text/javascript"></script>'; | |
} |
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 | |
// Here is a sample of the URLs this regex matches: (there can be more content after the given URL that will be ignored) | |
// http://youtu.be/dQw4w9WgXcQ | |
// http://www.youtube.com/embed/dQw4w9WgXcQ | |
// http://www.youtube.com/watch?v=dQw4w9WgXcQ | |
// http://www.youtube.com/?v=dQw4w9WgXcQ | |
// http://www.youtube.com/v/dQw4w9WgXcQ | |
// http://www.youtube.com/e/dQw4w9WgXcQ | |
// http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcQ |
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
var placeTable = document.getElementById('tableDetail') | |
// clean placeTable | |
placeTable.innerHTML = '' | |
// (C1) CREATE EMPTY TABLE | |
var table = document.createElement("table"), | |
row, cellA, cellB; | |
table.classList.add('table', 'table-bordered') |
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 | |
// app/Config/Eloquent.php | |
namespace Config; | |
use Illuminate\Database\Capsule\Manager as Capsule; | |
class Eloquent | |
{ |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Spark Serve", | |
"type": "php", | |
"request": "launch", | |
"program": "${workspaceFolder}/spark", | |
"cwd": "${workspaceRoot}", | |
"args": ["serve", "-port", "4562" ], |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<defaultDocument> | |
<files> | |
<add value="index.php" /> | |
</files> | |
</defaultDocument> | |
</system.webServer> | |
</configuration> |
OlderNewer