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
Options FollowSymLinks ExecCGI | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] | |
# If the requested file is not an existing directory or file | |
RewriteCond %{REQUEST_FILENAME} !-f |
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
[[redirects]] | |
from = "/*" | |
to = "/index.html" | |
status = 200 |
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
// Get $order object when you have the ID. | |
$order = wc_get_order( $order_id ); | |
// Get order key. | |
$order->get_order_key(); | |
// Get Order Totals $0.00 | |
$order->get_formatted_order_total(); | |
$order->get_cart_tax(); | |
$order->get_currency(); |
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
# FILTER PEOPLE FUNCTION DEFINED | |
def filterPeople(peoples): | |
# CREATED EMPTRY ARRAY FOR INSERTING FILTERD NAME | |
filteredName = [] | |
# LOOP THROUGH THE WHOLE ARRAY | |
for people in peoples: | |
# LOGIC APPLY USING IF | |
if(people[1] >= 12): | |
# PUSH THE NAME INTO THE ARRAY | |
filteredName.append(people[0]) |
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 express = require('express'); | |
const app = express(); | |
// BASIC ROUTING | |
app.get('/', (req, res) => { | |
res.status(200).json({message: "Hello From NodeJS Server}); | |
}); | |
// PORT TO LISTEN http://localhost:3000/ | |
app.listen(3000) |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<module type="PYTHON_MODULE" version="4"> | |
<component name="NewModuleRootManager"> | |
<content url="file://$MODULE_DIR$"> | |
<excludeFolder url="file://$MODULE_DIR$/venv" /> | |
</content> | |
<orderEntry type="inheritedJdk" /> | |
<orderEntry type="sourceFolder" forTests="false" /> | |
<orderEntry type="library" name="R User Library" level="project" /> | |
<orderEntry type="library" name="R Skeletons" level="application" /> |