Skip to content

Instantly share code, notes, and snippets.

🌮

Josh Pollock Shelob9

🌮
Block or report user

Report or block Shelob9

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View docker-compose.yml
gitlab-runner:
image: gitlab/gitlab-runner:alpine
volumes:
- ./gitlab/config.toml:./config.toml
View DOCKERFILE
FROM wordpress
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
View DOCKERFILE
FROM wordpress
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
View useWordPress.tsx
import 'react-app-polyfill/ie11';
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import WPAPI from 'wpapi';
import { useRef } from 'react';
export default function useWordPress(endpoint: string) {
let wp = useRef(new WPAPI({ endpoint }));
return [wp.current];
}
View withphp5.php
<?php
interface Item {
}
interface Collection {
/**
View 0.MD

Using WordPress Featured Images In Gatsby

GraphQL Queries For WordPress Posts With Featured Image

query PostsWithFeaturedImage {
  allWordpressPost {
    nodes {
      title
@Shelob9
Shelob9 / 00-windows-development.md
Last active Oct 14, 2019
Set up Windows 10 for web development
View 00-windows-development.md

Git Bash And Git

Go Here Click download. Install git bash.

git config --global user.email "josh@saturdaydrive.io"
git config --global user.name "Josh Pollock"
View Editor.js
export const Editor = ({attributes}) => {
const {something} = attributes;
const [data,setData]= useState({});
useEffect( () => {
fetch( `https://hiroy.club/${something}`)
.then(r => r.json())
.then(r => setData(r);
}, [something, setData]);
return (
<div />
You can’t perform that action at this time.