Skip to content

Instantly share code, notes, and snippets.

View royalrex's full-sized avatar

Sebbe Selvig royalrex

View GitHub Profile
@royalrex
royalrex / example-photobook-data.json
Last active April 28, 2020 14:12
Eksempel på dataformat der kan valideres. Styles kan indeholde de properties de har brug for, det er forventet at det bliver brugt til CSS-like KV pairs. Extras kan indeholde data de måtte synes de har brug for, for at kunne genskabe deres design.
{
"title": "Min fotobog",
"pages": [
{
"image_url": "imgur URL",
"content": [
{
"type": "title",
"text": "Min titel",
"styles": {},

Keybase proof

I hereby claim:

  • I am royalrex on github.
  • I am royalrex (https://keybase.io/royalrex) on keybase.
  • I have a public key ASAjOqz6TAT-BH3QO_MPYsqwXZ8BuZz2-CWGmYoeIOecKQo

To claim this, I am signing this object:

@royalrex
royalrex / README.md
Last active October 11, 2017 13:35
Copy tabular data as an associative PHP Array. Useful for unit test fixtures.

Tabular data to associative PHP Array

Groovy template to use together with IntelliJ, PHPStorm and other supporting applications to copy tabular data as an associative PHP array.

The template was created to easily copy data from database to fixture for unit testing.

Use it as is. Reach out on https://twitter.com/SebbeSelvig for comments!

Installation

Download file Tabular-to-PHPArray.groovy and put it in config\extensions\com.intellij.database\data\extractors easiest way to find the folder is to:

  • open the database tool window in PHPStorm/IntelliJ.