Skip to content

Instantly share code, notes, and snippets.

View byronwade's full-sized avatar
🏠
Working from home

Byron Wade byronwade

🏠
Working from home
View GitHub Profile
/* include the paragraph block and if its being queryed then display it passing the props down to it */
/* this is just me throwing somthing in quickly but I think you might understand what im doing */
<Paragraph className="props.className" content="props.content" />
query MyQuery {
pages {
nodes {
blocks {
/* when this paragraph block is used on another page it will take the props and pass it down to the tag */
/* if no class name then we can use a default */
/* we add the rest as styled props on the 'p' tag */
/* this is your component using the props passed down to it */
<p className="{{this.props.className}}">this.props.content</p>
/* --------- Programatically Create Image Nodes --------- */
const { createRemoteFileNode } = require(`gatsby-source-filesystem`)
exports.createResolvers = async (
{
actions,
cache,
createNodeId,
createResolvers,
store,
@byronwade
byronwade / docker-help.md
Created January 8, 2020 00:17 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

<?php
$con=mysqli_connect("#####","blogthorbis","########","blogthorbis");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
date_default_timezone_set('America/New_York');
?>
<!DOCTYPE html>
<?php
$con=mysqli_connect("#############","blogthorbis","###########","blogthorbis");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
date_default_timezone_set('America/New_York');
?>
<!DOCTYPE html>
<?php
$con=mysqli_connect("#############","blogthorbis","###########","blogthorbis");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
date_default_timezone_set('America/New_York');
?>
<!DOCTYPE html>
<?php
$con=mysqli_connect("#############","blogthorbis","###########","blogthorbis");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
date_default_timezone_set('America/New_York');
?>
<!DOCTYPE html>
<?php
$con=mysqli_connect("############","blogthorbis","##############","blogthorbis");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
date_default_timezone_set('America/New_York');
?>
<!DOCTYPE html>
<?php
$con=mysqli_connect("##########","blogthorbis","##########","blogthorbis");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
date_default_timezone_set('America/New_York');
?>
<?php