Skip to content

Instantly share code, notes, and snippets.

Avatar

Mitchel van Eijgen mvaneijgen

View GitHub Profile
View cloudSettings
{"lastUpload":"2021-03-06T11:55:05.404Z","extensionVersion":"v3.4.3"}
View log
studioalloy.nl. 500 IN SOA ns1.webhostingserver.nl. hostmaster (2020110500 500 400 1209600 100)
studioalloy.nl. 500 IN NS ns1.webhostingserver.nl.
studioalloy.nl. 500 IN NS ns2.webhostingserver.nl.
studioalloy.nl. 500 IN NS ns3.webhostingserver.nl.
studioalloy.nl. 500 IN A 195.211.74.22
studioalloy.nl. 500 IN MX 10 aspmx.l.google.com.
studioalloy.nl. 500 IN MX 20 alt1.aspmx.l.google.com.
studioalloy.nl. 500 IN MX 20 alt2.aspmx.l.google.com.
studioalloy.nl. 500 IN MX 30 alt3.aspmx.l.google.com.
studioalloy.nl. 500 IN MX 30 alt4.aspmx.l.google.com.
View log
[Error] Origin https://codepen.io is not allowed by Access-Control-Allow-Origin.
[Error] XMLHttpRequest cannot load https://m49mlual6a.execute-api.us-west-2.amazonaws.com/production/zip?token=eyJhbGciOiJIUzI1NiJ9.eyJkYXRhIjp7InBhaWQiOmZhbHNlLCJ0ZWFtX2hhc2hpZCI6IllkRXpHbiIsInRlYW1faWQiOjAsInVzZXJfaGFzaGlkIjoiTUFRQkJNIiwidXNlcl9pZCI6Ik1BUUJCTSIsInVzZXJuYW1lIjoibXZhbmVpamdlbiJ9LCJleHAiOjE2MDQ2NTM0OTR9.QgIdOc2AWHFKZJ185Luu2rYwgRYQl0FEtjT1FLPpXAc due to access control checks.
[Error] Failed to load resource: Origin https://codepen.io is not allowed by Access-Control-Allow-Origin. (zip, line 0)
@mvaneijgen
mvaneijgen / function.php
Last active Aug 18, 2020
Possible solution for multiple where: in GraphQL and Wordpress
View function.php
<?php
// Register extra types
add_action('graphql_register_types', function () {
$customposttype_graphql_single_name = “MyCustomPostType”;
register_graphql_field('RootQueryTo' . $customposttype_graphql_single_name . 'ConnectionWhereArgs', 'postObjectIdTWO', [
'type' => 'ID',
'description' => __('The ID of the post object to filter by', 'your-textdomain'),
]);
View external.js
(function ($) {
// External tools and plugis JS
gsap.registerPlugin(ScrollTrigger); // Register plugin so you can use defauls
gsap.registerPlugin(MotionPathPlugin);
ScrollTrigger.defaults({ // Defaults are used by all ScrollTriggers
toggleActions: "restart pause reverse pause", // Scoll effect Forward, Leave, Back, Back Leave
markers: true // Easaly remove markers for production
});
View Taxonomy loop.php
<?php
$taxonamy = 'location';
$terms = get_terms($taxonamy, array('hide_empty' => true));
?>
<?php if (!empty($terms) && !is_wp_error($terms)) : ?>
<?php foreach ($terms as $term) : ?>
<?php
$args = array(
'post_type' => 'thanks',
'posts_per_page' => -1,
View group_58f9b55cdbf02.json
{
"key": "group_58f9b55cdbf02",
"title": "Flex",
"fields": [
{
"key": "field_58f9b56154b9a",
"label": "Contentblokken",
"name": "content-blocks",
"type": "flexible_content",
"instructions": "",
@mvaneijgen
mvaneijgen / colorSorting.js
Created Apr 25, 2020 — forked from afonsograca/colorSorting.js
Color sorting in JavaScript
View colorSorting.js
//Sorting Hex Color:
var scheme = [
"#4C4C4C","#1F2029","#35404E","#282938","#00A0BE","#C67C48","#32CF72", "#4155D1","#B86838","#D81196","#149C92","#786DC4","#DB2C38","#83C057", "#A4A4A4","#55747C","#FFFFFF"
];
var Color = function Color(hexVal) { //define a Color class for the color objects
this.hex = hexVal;
};
View 4096 Hex colors
000
001
002
003
004
005
006
007
008
009
View GSAP.js
import Vue from 'vue'
import { gsap } from "gsap";
import { DrawSVGPlugin } from "../static/DrawSVGPlugin.min.js";
import { MorphSVGPlugin } from "../static/MorphSVGPlugin.min.js";
import ScrollMagic from 'scrollmagic'
import 'imports-loader?define=>false!scrollmagic/scrollmagic/uncompressed/plugins/animation.gsap'
gsap.registerPlugin(DrawSVGPlugin, MorphSVGPlugin);
const GSAPScrollMagic = {