Skip to content

Instantly share code, notes, and snippets.

View blaadje's full-sized avatar
🎯
Focusing

Alexandre blaadje

🎯
Focusing
View GitHub Profile
// ==UserScript==
// @name Prismic formatting
// @namespace http://tampermonkey.net/
// @version 0.2
// @description try to take over the world!
// @author blaadje
// @match https://japhy.prismic.io/*
// @icon https://www.google.com/s2/favicons?domain=github.com
// @grant none
// ==/UserScript==
@blaadje
blaadje / machine.js
Last active April 8, 2021 13:15
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@blaadje
blaadje / machine.js
Last active April 2, 2021 10:59
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
const time_step=100,wait=(e=1)=>new Promise(c=>setTimeout(c,e)),click=async e=>(document.querySelector(e).click(),wait(100)),explore=async()=>click(".recCard__info").then(()=>document.querySelector(".bullet")&&Array.from(document.querySelector(".bullet")).reduce((e,c)=>e.then(()=>(c&&c.click(),wait(100))),Promise.resolve())).then(()=>click('[aria-label="Like"]')).then(()=>explore());explore();
<template>
<span>{{ formattedDate }}</span>
</template>
<script>
import { formatDate } from '@core/helpers'
import { mapGetters } from 'vuex'
export default {
props: {
<template>
<div :class="$style.Wrapper">
<strong>
<bm-link
:class="$style.MenuItem"
to="/dashboard/orders"
>
<i18n path="dashboard_menu_orders" />
</bm-link>
</strong>
$blue: #1D93FD
$primary: #2AB27B
$grey1: #F5F5F5
$grey2: #979797
$grey3: #9B9B9B
$grey4: #D8D8D8
$grey6: #b2b2b2
$grey7: #eaeaea
$dark: #4A4A4A
$green: #28BC83
# Redirection http vers https
server {
listen 80;
listen [::]:80;
server_name mondomaine.fr;
location ~ /\.well-known/acme-challenge {
allow all;
}
location / {
return 301 https://mondomaine.fr$request_uri;
import { join, resolve } from 'path'
import webpack from 'webpack'
import HtmlWebpackPlugin from 'html-webpack-plugin'
import WebpackMd5Hash from 'webpack-md5-hash'
import CleanWebpackPlugin from 'clean-webpack-plugin'
import FaviconsWebpackPlugin from 'favicons-webpack-plugin'
import UglifyJSPlugin from 'uglifyjs-webpack-plugin'
const prod = process.env.NODE_ENV === 'production'