Skip to content

Instantly share code, notes, and snippets.

Avatar

Lisi Linhart lisilinhart

View GitHub Profile
@lisilinhart
lisilinhart / transform-data.js
Created September 3, 2022 13:15
Transform JSON data for Storyblok
View transform-data.js
const fs = require('fs')
const StoryblokClient = require('storyblok-js-client')
const { v4 } = require('uuid')
const Storyblok = new StoryblokClient({
oauthToken: 'YOUR_PERSONAL_ACCESS_TOKEN' // can be found in your My account section
})
const config = {
jsonFile: './speaking.json',
View red_panda.md

The Red Panda

The red panda is dwarfed by the black-and-white giant that shares its name. These pandas typically grow to the size of a house cat, though their big, bushy tails add an additional 18 inches. The pandas use their ringed tails as wraparound blankets in the chilly mountain heights.

About

The red panda (Ailurus fulgens) is a mammal species native to the eastern Himalayas and southwestern China. It is listed as Endangered on the IUCN Red List because the wild population is estimated at fewer than 10,000 mature individuals and continues to decline due to habitat loss and fragmentation, poaching, and inbreeding depression. Despite its name, it is not closely related to the giant panda.

The red panda has reddish-brown fur, a long, shaggy tail, and a waddling gait due to its shorter front legs; it is roughly the size of a domestic cat, though with a longer body, and is somewhat heavier. It is arboreal and feeds mainly on bamboo, but also eats eggs, birds, and insects. It is a solitary animal, m

View population.csv
Series Name,Series Code,Country Name,Country Code,2016 [YR2016]
"Population, total",SP.POP.TOTL,Afghanistan,AFG,34656032
"Population, total",SP.POP.TOTL,Albania,ALB,2876101
"Population, total",SP.POP.TOTL,Algeria,DZA,40606052
"Population, total",SP.POP.TOTL,American Samoa,ASM,55599
"Population, total",SP.POP.TOTL,Andorra,AND,77281
"Population, total",SP.POP.TOTL,Angola,AGO,28813463
"Population, total",SP.POP.TOTL,Antigua and Barbuda,ATG,100963
"Population, total",SP.POP.TOTL,Argentina,ARG,43847430
"Population, total",SP.POP.TOTL,Armenia,ARM,2924816
View stack_network_links.csv
View suicide_germany.csv
Freq sex method age age.group method2
1 4 male poison 10 10-20 poison
2 0 male cookgas 10 10-20 gas
3 0 male toxicgas 10 10-20 gas
4 247 male hang 10 10-20 hang
5 1 male drown 10 10-20 drown
6 17 male gun 10 10-20 gun
7 1 male knife 10 10-20 knife
8 6 male jump 10 10-20 jump
9 0 male other 10 10-20 other
@lisilinhart
lisilinhart / gatsby-config.js
Last active May 16, 2018 19:32
Gatsby Config
View gatsby-config.js
module.exports = {
siteMetadata: {
title: "Lisi Linhart",
description: "Lisi Linharts Portfolio & Blog",
author: "Lisi Linhart",
siteUrl: "https://lisilinhart.info"
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
View animation.json
{"version_app":"0.11.10","version_extension":"1.2.8","version_runtime":"2.0.5","groups":[{"name":"little_stars","timeScale":1,"timelines":[{"type":"dom","props":{"opacity":{"0s":"0","0.05585106382978723s":"1"},"scale":{"0s":"0.8","0.15159574468085107s":{"value":"1","ease":"Back.easeOut"}}},"label":"body/svg/g[6]/circle","path":"*[local-name()='svg'][1]/*[local-name()='g'][6]/*[local-name()='circle'][1]"},{"type":"dom","props":{"opacity":{"0s":"0","0.05585106382978723s":"0","0.1077127659574468s":"1"},"scale":{"0s":"0.8","0.05585106382978723s":"0.8","0.25s":{"value":"1","ease":"Back.easeOut"}}},"label":"body/svg/g[6]/circle[2]","path":"*[local-name()='svg'][1]/*[local-name()='g'][6]/*[local-name()='circle'][2]"},{"type":"dom","props":{"opacity":{"0s":"0","0.10638297872340426s":"0","0.17154255319148937s":"1"},"scale":{"0s":"0.8","0.10638297872340426s":"0.8","0.25s":{"value":"1","ease":"Back.easeOut"}}},"label":"body/svg/g[6]/circle[3]","path":"*[local-name()='svg'][1]/*[local-name()='g'][6]/*[local-name()='circl