Skip to content

Instantly share code, notes, and snippets.

🌮

Josh Pollock Shelob9

🌮
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am shelob9 on github.

  • I am josh412 (https://keybase.io/josh412) on keybase.

  • I have a public key ASCT2BGcVt7nW9uRSYmEN6v5BekpxFqeGw0JF3I_qSKpkwo

View cf-editor.js
(function () {
jQuery(document).on("field.config-change", (e, update) => {
let { name, value } = update;
console.log(name, value);
});
jQuery(document).on("field.removed", (e, data) => {
const { fieldId } = data;
console.log(fieldId);
});
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 {
/**
You can’t perform that action at this time.