Skip to content

Instantly share code, notes, and snippets.

@kaspar-naaber
kaspar-naaber / use-breakpoints.ts
Last active January 14, 2022 11:11
use-breakpoints custom hook
import { useEffect, useState } from 'react';
import { useMediaQuery } from 'react-responsive';
const gridBreakpoints = {
xs: 0,
sm: 576,
md: 768,
lg: 992,
xl: 1200,
xxl: 1400,
@kaspar-naaber
kaspar-naaber / edicy_to_voog_migration_tasklist.md
Last active September 19, 2016 07:44
Edicy -> Voog migration tasklist

Edicy -> Voog migration tasklist

Basic stuff

  • Let support team do the magic from clientbase side.
  • Wait until the site is running on Voog...

If site is running on Voog, proceed with the following tasks.

  • Pull template to your computer and make it a git repo (optional but reccomended).
  • Make an "initial commit" to save the current stage (if you decided to pull the template).
@kaspar-naaber
kaspar-naaber / gist:5a872db65f5a816250d9
Created March 3, 2016 11:08
Edicy -> Voog migration tasklist
# Edicy -> Voog migration tasklist
## Basic stuff
* Let Mathias do the magic from clientbase side.
* Wait until the site is running on Voog...
If site is running on Voog, proceed with the following tasks.
* Pull template to your computer and make it a git repo **(optional but reccomended)**.
* Make an *"initial commit"* to save the current stage (if you decided to pull the template).
@kaspar-naaber
kaspar-naaber / gist:59437b494fc28867fa82
Created April 9, 2015 08:04
Update Voog content areas
// Article body
Edicy.jQuery.ajax({
type: "PUT",
contentType: "application/json",
url: '/admin/api/articles/566710',
data: JSON.stringify({ body: '' }),
dataType: "json"
});
// Content text