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 UserProfile({ user }) { | |
return ( | |
<div> | |
<h1>{user.name}</h1> | |
<p>{user.bio}</p> | |
</div> | |
); | |
} | |
export async function getServerSideProps(context) { |
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
import axios from 'axios' | |
const About = ({ data }) => { | |
return ( | |
<div> | |
<h1>About Our App</h1> | |
<p>Our app is the best thing since sliced bread.</p> | |
<p>Data from API: {data}</p> | |
</div> | |
) |
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
import Link from 'next/link' | |
const Home = () => { | |
return ( | |
<div> | |
<Link href="/about"> | |
<a>About</a> | |
</Link> | |
</div> | |
) |
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
import React from 'react' | |
const About = () => { | |
return ( | |
<div> | |
<h1>About Our App</h1> | |
<p>Our app is the best thing since sliced bread.</p> | |
</div> | |
) | |
} |
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 strict equality when comparing variables of the same type | |
let age = 25; | |
let legalAge = 21; | |
console.log(age === legalAge); // false | |
// Use loose equality when comparing variables that may be a string or a number | |
let input = "25"; | |
let number = 25; | |
console.log(input == number); // true |
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
Amoxicillin | |
insurance companies | |
cashless society | |
Viagra | |
Zithromax | |
.net | |
.org | |
.com | |
mewkid.net | |
mewkid |
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
RewriteEngine On | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
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
/** | |
* Disable all the Nags & Notifications | |
* https://orixlab.net/disable-updates-for-specific-plugin-in-wordpress | |
* Place at bottom in theme functions.php | |
*/ | |
function remove_core_updates(){ | |
global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,); | |
} | |
add_filter('pre_site_transient_update_core','remove_core_updates'); |
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
/** | |
* Disable Plugin Update Notifications | |
* https://orixlab.net/disable-updates-for-specific-plugin-in-wordpress | |
* Place at bottom in theme functions.php | |
*/ | |
remove_action('load-update-core.php','wp_update_plugins'); | |
add_filter('pre_site_transient_update_plugins','__return_null'); |
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
/** | |
* Disable WordPress Update nag | |
* https://orixlab.net/disable-updates-for-specific-plugin-in-wordpress | |
* Place at bottom in theme functions.php | |
*/ | |
add_action('after_setup_theme','remove_core_updates'); | |
function remove_core_updates() | |
{ | |
if(! current_user_can('update_core')){return;} |