Skip to content

Posts from the ‘Diverse’ Category

Working on the Gatsbyjs Plugin In The Morning

August 2nd, 2018

olavea

Helping out Making a Gatsbyjs plugin

Some friends and me are making a plugin for photos and stuff in Gatsbyjs. The work I do is very basic, here I am testing out the ‘Read Me’ we have on github. You might know the friends, they are Benedicte Raae, Tom Erik Støwer and last but not least Martin Grimeland. The infamous MartinG.

Before starting:

I Checked My Version of the Code

Actually I didn’t. I went straight into the code on my own machine and tried to find ‘.then()’. I did a quick “Find” in the right file and when I couldn’t find it I Checked My Version of the Code.

 

Gatsbyjs Plugin Gatsbyjs Plugin Gatsbyjs Plugin

 

I changed my search term

Gatsbyjs Plugin

I changed my search term
from:

‘.then()’ to
‘.then(‘

Noooob mistake to search for both ‘()’ together, what if there was something between! Like for example (something).

Yeah people I spent my whole 24 minute breakfast code practice session looking around in different branches on github.com and looking in several files. Better luck after I have walked Lillian to ‘Frisk Bris’.

Better Luck Later

Lillian and I am going to take her Green Dragon Bike downhill to ‘Frisk Bris’. ‘Frisk Bris’ is like a kindergarten for kids 2-5 and every day of the work week the go on a short trip. Some days they hop on the bus and go on a long trip to the forests of Ammerud or the Viking Museum at Bygdøy.

Plugin for Photos and Stuff in Gatsbyjs

August 1st, 2018

olavea

Helping out Making a Gatsbyjs plugin

Some friends and me are making a plugin for photos and stuff in Gatsbyjs. The work I do is very basic, here I am testing out the ‘Read Me’ we have on github. You might know the friends, they are Benedicte Raae, Tom Erik Støwer and last but not least Martin Grimeland. The infamous MartinG.

Before starting:

I Checked My Development Environment

Gatsby.js plugin

In the screenshot above you see the Gatsbyjs tutorial part one.

 

You Should Install Gatsby CLI

If you don’t have it, I had it installed. Because Gatsby and me go waaaaay back. Like weeks and weeeeeks!

 

Gatsby.js plugin

Step 1: Initialize a Gatsby Starter Template

Use the Gatsby CLI to initialize a Gatsby starter template. gatsby new blog https://github.com/gatsbyjs/gatsby-starter-blog.

Gatsby.js plugin

 

Gatsby.js plugin

Step 2: Move the ‘cd blog’ directory

Gatsby.js plugin Gatsby.js plugin

I made a pull request on github.com 💪😺👍

 

Step 3: New Folder

Create a plugins folder mkdir plugins.

Step 4: Move Into Folder

Move into the plugins folder cd plugins.

Step 5: Clone Our Gatsbyjs Repo

Clone this repo `git clone git@github.com:lillylabs/gatsby-remark-oembed.git`

 

Gatsby.js plugin

Step 6: Add Some Code

Add the following to the plugins property of the gatsby-transformer-remark plugin in gatsby-config.js:

 {
   resolve: `gatsby-remark-oembed`
 },

Gatsbyjs Plugin Gatsbyjs Plugin

 

Step 7: Add link to Gatsbyjs

Add a oembed link to one of the markdown posts (pages) on a line with an empty line above and below.

 

Step 8: Serve Up Gatsbyjs

Serve up the page using gatsby develop.

 

Gatsbyjs Plugin

Something was wrong with my ‘npm’. So I wrote ‘install npm’ into the terminal.

Gatsbyjs Plugin

Step 9: Gatsbyjs Works, but I See No Transformation

Take a look at the post you added the oembed link to, and see it being transformed into something else.

 Gatsbyjs plugin

 

 

NotTheScripts!

March 30th, 2018

olavea

Lillian og tomaten

January 28th, 2016

olavea

Jeg Krøssklipper Lillian

#Lillian1årv-

med

A long long time ago in a Boston harbour far, far away

December 22nd, 2015

olavea

stor

A long long time ago in a Boston harbour far, far away

@Sketch_Dailies asked people to post drawings of ewoks with the hashtag #EWOK.It happened to be the same day as the Boston Tea Party, so why not blame the ewoks for all the ruined tea instead of the indians?

m

m

Here is the original.