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
image: gitlab/gitlab-runner:alpine
- ./gitlab/config.toml:./config.toml
FROM wordpress
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
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
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 {
Shelob9 /
Last active Oct 14, 2019
Set up Windows 10 for web development

Git Bash And Git

Go Here Click download. Install git bash.

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