This file contains 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
// Should I be ES6+ing this file? Does it matter? Seems like it would feel nicer but running Babel over this file feels like ouroboros. | |
// I'm using Gulp 3.x. I couldn't for the life of me get Gulp 4.x going, I think because my Gulp CLI was at too high (??) of a version and no amount of uninstalling and reinstalling would bring it back down. | |
var gulp = require("gulp"); | |
// I thought I needed this until I found out about gulp.series. Can I refactor anything here? | |
var runSequence = require("run-sequence"); | |
// Would this be a speed boost for anything? As in, only looking at files that have changed instead of all files? | |
// https://github.com/sindresorhus/gulp-changed |
This file contains 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
<template> | |
(...) | |
<parallax-scene :scalar-x="25" :scalar-y="15"> | |
<parallax-layer :depth="0.00"> | |
<img src="~assets/parallax/0_sun.png" style="position: relative; top: -4px;" draggable="false" alt=""> | |
</parallax-layer> | |
<parallax-layer :depth="0.33"> | |
<img src="~assets/parallax/1_mountains.png" style="position: relative; top: 40px;" draggable="false" alt=""> | |
</parallax-layer> | |
<parallax-layer :depth="0.67"> |
This file contains 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
function custom_theme_assets() { | |
// bail if classic editor setting is set to block or no-replace | |
$option = get_option( 'classic-editor-replace' ); | |
if ( $option === 'block' || $option === 'no-replace' ) { | |
return; | |
} | |
// bail if classic editor plugin is not active. can't use is_plugin_active() here, unless you include wp-admin/includes/plugin.php | |
if ( ! in_array( 'classic-editor/classic-editor.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { | |
return; |
This file contains 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 FormulateForm from './FormulateForm.vue' | |
export function plugin(instance) { | |
instance.extend({ | |
components: { | |
FormulateForm, | |
}, | |
}) | |
} |
This file contains 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 { setContext } = require('apollo-link-context'); | |
const { HttpLink } = require('apollo-link-http'); | |
const { introspectSchema, makeRemoteExecutableSchema } = require('graphql-tools'); | |
const fetch = require('node-fetch'); | |
module.exports = function(api) { | |
api.createSchema(async function(graphql) { | |
const http = new HttpLink({ | |
uri: 'http://example.com/api', | |
fetch |
This file contains 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 node | |
const http = require('http') | |
const fs = require('fs') | |
const url = 'http://pokeapi.co/api/v2/pokemon-species/' | |
let results = [] | |
const receivedAllResults = () => { | |
const filename = './names.json' |
This file contains 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 WordpressPurgeCSS = { | |
whitelist: [ | |
"rtl", | |
"home", | |
"blog", | |
"archive", | |
"date", | |
"error404", | |
"logged-in", | |
"admin-bar", |
This file contains 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
// by davey whyte aka @beesandbombs | |
void setup(){ | |
size(600,520,P3D); | |
colorMode(HSB,1); | |
noStroke(); | |
} | |
float R = 160, r = 55; | |
int N = 720; |
This file contains 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
/** | |
* Gettext Scanner Script for Twig Projects | |
* v1.3 | |
* | |
* Developed by Luís Silva | |
* https://github.com/luism-s | |
*/ | |
/** | |
* Purpose: |
OlderNewer