This file contains hidden or 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" | |
import { HtmlToReact } from "./parse-html-to-react.js" | |
import { Link, Box } from "some-ui-package" | |
function MyPage(props) { | |
const { html } = props | |
return ( | |
<div> |
This file contains hidden or 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
const inGatsbyDir = { | |
initial: "unsureIfSourcePluginIsInstalled", | |
states: { | |
unsureIfSourcePluginIsInstalled: { | |
onEntry: "determineIfSourcePluginIsInstalled", | |
on: { | |
SOURCE_PLUGIN_IS_INSTALLED: "sourcePluginIsInstalled", | |
SOURCE_PLUGIN_IS_NOT_INSTALLED: "sourcePluginIsNotInstalled", | |
}, | |
}, |
This file contains hidden or 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
const inGatsbyDir = { | |
initial: "unsureIfPluginIsInstalled", | |
states: { | |
unsureIfPluginIsInstalled: { | |
onEntry: "determineIfSourcePluginIsInstalled", | |
on: { | |
SOURCE_PLUGIN_IS_INSTALLED: "sourcePluginIsInstalled", | |
SOURCE_PLUGIN_IS_NOT_INSTALLED: "sourcePluginIsNotInstalled", | |
}, | |
}, |
This file contains hidden or 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
<?php | |
/** | |
* Write out a multiline log to the wordpress debug.log file | |
*/ | |
if (!function_exists('write_log')) { | |
function write_log($log) | |
{ | |
if (true === WP_DEBUG) { | |
if (is_array($log) || is_object($log)) { |
This file contains hidden or 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, { useRef, useEffect } from "react"; | |
import { SplitText } from "../../libs/gsap/SplitText"; | |
import { TimelineLite } from "gsap"; | |
import styled from "styled-components"; | |
const animateChars = nodes => { | |
new TimelineLite().staggerFromTo( | |
nodes, | |
1, | |
{ xPercent: "+=100%", opacity: 0 }, |
This file contains hidden or 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, { useRef, useEffect } from "react"; | |
import TweenLite from "gsap"; | |
import "../../libs/gsap/ScrambleTextPlugin"; | |
export default ({ children }) => { | |
if (typeof window === "undefined") return children; | |
const text = useRef(null); | |
useEffect(() => { |
This file contains hidden or 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
#!/usr/bin/env bash | |
# MIT © Tyler Barnes | |
# git hook to run a command after `git pull` to build our theme | |
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
eval npm i | |
eval gulp init-theme |
This file contains hidden or 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
#!/usr/bin/env bash | |
# MIT © Sindre Sorhus - sindresorhus.com | |
# git hook to run a command after `git pull` if a specified file was changed | |
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" |
This file contains hidden or 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
// Here is the unminified output | |
html { | |
font: 112.5%/1.6 HalisGR, helvetica; | |
box-sizing: border-box; | |
overflow-y: scroll | |
} | |
* { | |
box-sizing: inherit | |
} |