Skip to content

Instantly share code, notes, and snippets.

View MaralS's full-sized avatar
🐢
Learning new skills

Sabbagh Maral MaralS

🐢
Learning new skills
View GitHub Profile
@sarahbethfederman
sarahbethfederman / RichTextRenderer.js
Last active May 12, 2021 17:56
Using contentful with gatsby and react
import React from 'react';
import { Link as GatsbyLink } from 'gatsby';
import * as deepmerge from 'deepmerge';
import { INLINES, BLOCKS, MARKS } from '@contentful/rich-text-types';
import { documentToJSX } from './../scripts/documentToJSX';
import { getEntry } from './../scripts/getContentfulEntry';
const Link = ({ children, to, activeClassName, ...other }) => {
const internal = /^\/(?!\/)/.test(to);
@shirokoweb
shirokoweb / cookiepermission.json
Created April 30, 2018 13:10
GTM Cookiepermission GDPR
{
"exportFormatVersion": 2,
"exportTime": "2018-04-30 13:08:19",
"containerVersion": {
"path": "accounts/2719250224/containers/8610498/versions/13",
"accountId": "2719250224",
"containerId": "8610498",
"containerVersionId": "13",
"container": {
"path": "accounts/2719250224/containers/8610498",
@parmentf
parmentf / GitCommitEmoji.md
Last active May 9, 2024 13:47
Git Commit message Emoji
@seanbuscay
seanbuscay / git_create_orphan.sh
Created June 27, 2013 15:26
Create an orphan branch in a repo.
cd repository
git checkout --orphan orphan_name
git rm -rf .
rm '.gitignore'
echo "#Title of Readme" > README.md
git add README.md
git commit -a -m "Initial Commit"
git push origin orphan_name