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
function json_response($message = null, $code = 200) | |
{ | |
// clear the old headers | |
header_remove(); | |
// set the actual code | |
http_response_code($code); | |
// set the header to make sure cache is forced | |
header("Cache-Control: no-transform,public,max-age=300,s-maxage=900"); | |
// treat this as json | |
header('Content-Type: application/json'); |
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
chrome://flags | |
chrome duet | |
scroll anchor serialization | |
parallel downloading | |
enable horizontal tab switcher | |
future v8 vm features | |
smooth scrolling |
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
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
{ | |
"workbench.iconTheme": "file-icons", | |
"workbench.activityBar.visible": false, | |
"editor.detectIndentation": true, | |
"editor.renderIndentGuides": false, | |
"editor.multiCursorModifier": "ctrlCmd", | |
"workbench.list.multiSelectModifier": "alt", | |
"workbench.colorTheme": "One Dark Pro", | |
"editor.fontLigatures": false, | |
"editor.fontSize": 14, |
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
Hey! Welcome to the JavaScript group. First of all, please read the rules: | |
@thedevsrules | |
Want to learn JavaScript and conquer the world? Start here: | |
Tutorials and Books | |
- JavaScript For Cats (http://jsforcats.com/) is a dead simply introduction for new programmers. | |
- MDN JavaScript Guide (https://developer.mozilla.org/docs/Web/JavaScript/Guide%5C) has the most standard and straightforward tutorials. If you need references, MDN is here for you | |
too. | |
- You Don’t Know JS (https://github.com/getify/You-Dont-Know-JS%5C) is the best book to learn JavaScript from. It’s free to read on GitHub. |
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
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
"dev": "node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", | |
"watch": "node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", | |
"watch-poll": "node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --watch-poll --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", | |
"hot": "node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", | |
"production": "node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config |
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
*useful google drive links* | |
Google drive movies - https://drive.google.com/drive/u/0/mobile/folders/0B6FjKMQKynZILTlwZHl4ajUwcFU | |
*Programming language collection on google drive* - https://drive.google.com/drive/folders/0ByWO0aO1eI_MN1BEd3VNRUZENkU | |
*Books*- | |
https://drive.google.com/drive/folders/0B0hgUX3me1_RNi1KTXBzXzdXSzA | |
*Google drive hacking ebook collection* | |
- https://drive.google.com/drive/folders/0B-JzQsKoJaANbTFGN0RWLWhONms |
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
//Use <?php and ?> | |
<? ... ?> // Incorrect | |
<?php ... ?> // Correct | |
<?=$Var?> // Incorrect | |
<?php echo $Var ?> // Correct | |
//Separate Configuration Files | |
include("<span class="skimlinks-unlinked">config.php</span>"); | |
// code goes here ... |