I hereby claim:
- I am vxsx on github.
- I am vxsx (https://keybase.io/vxsx) on keybase.
- I have a public key ASBVXbtmwApOPjWEKmvXCe53yDLTLnoEz9dagQNSxAVUvgo
To claim this, I am signing this object:
import path from 'path'; | |
import fs from 'fs'; | |
import initStoryshots from '@storybook/addon-storyshots'; | |
import { imageSnapshot } from './storyshots-puppeteer'; | |
import devices from 'puppeteer/DeviceDescriptors'; | |
// Store the screenshots outside the source folder to prevent jest from 'watching' them. | |
// Since they're outside the src directory we nav to them relatively | |
const ROOTDIR = path.join(__dirname, '../../../'); |
# running browsersync inside docker container | |
# browser sync has to be installed via package.json | |
# docker-compose.yml | |
# it might look slightly different in your case, important parts are &WEB label and browsersync section | |
# the downside is it's not as fast as the one outside host system | |
web: &WEB | |
build: . | |
links: | |
- "db:postgres" | |
ports: |
{% block object-tools-items %} | |
{% if original.can_import_from_archive %} {% if original.can_import_from_archive %} | |
+ <script> | |
+ function closeSideframe() { | |
+ try { | |
+ window.top.CMS.$('.cms-sideframe-close').trigger('click.cms.sideframe'); | |
+ } catch(e) {} | |
+ } | |
+ </script> | |
{% url 'admin:translation-request-adjust-import-data' original.pk as adjust_url %} {% url 'admin:translation-request-adjust-import-data' original.pk as adjust_url %} |
{ | |
"latest": { | |
"version": "3.4.1", | |
"url": "https://" | |
}, | |
"patches": [ | |
{ | |
"version": "3.3.3", | |
"url": "https://" | |
}, |
Useful shortcuts |
I hereby claim:
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<link rel="stylesheet" href="css/screen.css" type="text/css" /> | |
</head> | |
<body> | |
<div class="menu"> | |
<label class="menu__toggle" for="menu-toggle"> |
// ---- | |
// Sass (v3.4.14) | |
// Compass (v1.0.3) | |
// ---- | |
.cms-toolbar { | |
.cms-test { | |
/* blah blah */ | |
} | |
.cms-test2 { |
/* Scrolling shadows by @kizmarh */ | |
html { | |
background: #FFF; | |
} | |
.scrollbox { | |
position: relative; | |
z-index: 1; |
# Highlight STDIN based on PCRE patterns. | |
function highlight { | |
local color=33; | |
local perl_regex=''; | |
while [ $# -gt 0 ]; do | |
local brightness=1; | |
local param="$1"; | |
if [ "${param:0:2}" = "--" ]; then | |
if [[ "${param:2:5}" == "dark-" ]]; then | |
brightness=0; |