Skip to content

Instantly share code, notes, and snippets.

View DominikAngerer's full-sized avatar
🏠
For sure working from somewhere 🤘

DominikAngerer DominikAngerer

🏠
For sure working from somewhere 🤘
View GitHub Profile
@DominikAngerer
DominikAngerer / xyz.json
Created March 6, 2018 15:14
awdawdwadawda
This file has been truncated, but you can view the full file.
[
{
"ad_first_child": "",
"categories": {
"43407": {
"colorcode": "#814180",
"id": "43407",
"image": null,
"is_option": "0",
"name": "54 - Purple",
This file has been truncated, but you can view the full file.
[{"ad_first_child":"","categories":{"43407":{"colorcode":"#814180","id":"43407","image":null,"is_option":"0","name":"54 - Purple","parent_id":"43111","product_id":"129659","property":"1","slug":""},"43427":{"colorcode":"","id":"43427","image":"829d5b091bffdacc65fb2f2e6ca7b13a.jpg","is_option":"0","name":"117 - Fresko","parent_id":"43114","product_id":"129659","property":"1","slug":"117-Fresko1"},"43463":{"colorcode":"","id":"43463","image":"7ba69dac17d6e2baa7f0f0ff79ebe0ac.jpg","is_option":"0","name":"grpl$","parent_id":"43115","product_id":"129659","property":"1","slug":"grpl"},"43468":{"colorcode":"","id":"43468","image":null,"is_option":"0","name":"Stk","parent_id":"43117","product_id":"129659","property":"1","slug":""},"43520":{"colorcode":"","id":"43520","image":null,"is_option":"0","name":"30/40cm","parent_id":"43112","product_id":"129659","property":"1","slug":""}},"child_image":"","childs":0,"created_at":null,"depth":"0.00","description":null,"discounted_price":"59.00","display_size_as":"","ean":"","e
This file has been truncated, but you can view the full file.
{"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36","lighthouseVersion":"2.8.0","generatedTime":"2018-04-19T09:49:32.099Z","initialUrl":"https://www.voyhoy.com/es-cl/e/tur-bus","url":"https://www.voyhoy.com/es-cl/e/tur-bus","runWarnings":[],"audits":{"is-on-https":{"score":true,"displayValue":"","rawValue":true,"extendedInfo":{"value":[]},"scoringMode":"binary","name":"is-on-https","description":"Uses HTTPS","helpText":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. HTTPS prevents intruders from tampering with or passively listening in on the communications between your app and your users, and is a prerequisite for HTTP/2 and many new web platform APIs. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/https).","details":{"type":"list","header":{"type":"text","text":"Insecure URLs:"},"items":[]}},"viewport":{"score":true,"displayValue":"","rawValue":true,"debugString
This file has been truncated, but you can view the full file.
{"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36","lighthouseVersion":"2.8.0","generatedTime":"2018-04-19T09:49:32.099Z","initialUrl":"https://www.voyhoy.com/es-cl/e/tur-bus","url":"https://www.voyhoy.com/es-cl/e/tur-bus","runWarnings":[],"audits":{"is-on-https":{"score":true,"displayValue":"","rawValue":true,"extendedInfo":{"value":[]},"scoringMode":"binary","name":"is-on-https","description":"Uses HTTPS","helpText":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. HTTPS prevents intruders from tampering with or passively listening in on the communications between your app and your users, and is a prerequisite for HTTP/2 and many new web platform APIs. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/https).","details":{"type":"list","header":{"type":"text","text":"Insecure URLs:"},"items":[]}},"viewport":{"score":true,"displayValue":"","rawValue":true,"debugString
@DominikAngerer
DominikAngerer / lorem-markdown.md
Created April 23, 2018 07:51
Lorem Ipsum Markdown file

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

H2

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod

@DominikAngerer
DominikAngerer / CheatSheet.js
Last active June 14, 2018 15:27
My Cheat Sheet
// 1. Callback Route + history mode
// 2. Install the Auth0 JS plugin
// 3. Explain Auth0 Hosted Pages
// 4. Create auth.js -> risks of that pattern
// 5. Auth.js V1
// 6. Auth.js V2
// 7. Explain Vue.js Computed Property Getter/Setter
// 8. Auth.js FINAL
// 9. Explain Vue Navigation Guard
// 10. ROUTER FINAL
const Promise = require('bluebird')
const path = require('path')
exports.createPages = ({ graphql, boundActionCreators }) => {
const { createPage } = boundActionCreators
return new Promise((resolve, reject) => {
const storyblokEntry = path.resolve('src/templates/storyblok-entry.js')
graphql(
@DominikAngerer
DominikAngerer / multiupload.js
Created July 5, 2018 19:03
Simple multiupload field type for Storyblok
const Fieldtype = {
mixins: [window.Storyblok.plugin],
template: `
<div class="uk-clearfix">
<input class="uk-hidden" type="file" multiple="multiple" @change="changeFiles($event)" />
<div class="uk-flex uk-margin-small-bottom" v-for="(key, item) in model.files">
<img class="image" :src="item.url.replace('a.storyblok.com', 'img2.storyblok.com/160x90/filters:fill(auto,0)')">
<input type="text" class="uk-form-small uk-flex-item-auto" v-model=item.url>
<button @click.prevent="removeFile(key)" class="uk-button uk-button-small uk-margin-small-left"><i class="uk-icon-close"></i></button>
@DominikAngerer
DominikAngerer / bootstrap-widths.js
Last active July 6, 2018 07:24
Bootstrap widths demo field type
const Fieldtype = {
mixins: [window.Storyblok.plugin],
template: `<div><div class="uk-grid">
<div class="uk-width-1-3">
<label class="uk-form-label">X-Small</label>
<select style="padding-right:15px" class="uk-width-1-1" v-model="model.xsmall"><option :value="option" v-for="option in options">{{ option }}</option></select>
</div>
<div class="uk-width-1-3">
<label class="uk-form-label">Small</label>
<select style="padding-right:15px" class="uk-width-1-1" v-model="model.small"><option :value="option" v-for="option in options">{{ option }}</option></select>
const Fieldtype = {
mixins: [window.Storyblok.plugin],
template: `<div><button class="uk-button uk-width-1-1" v-on:click="publishToProduction">Publish to Production</button></div>`,
methods: {
initWith() {
return {
plugin: 'publish-to-production'
}
},
pluginCreated() {