Skip to content

Instantly share code, notes, and snippets.

@vxsx
vxsx / screenshots.spec.js
Created October 30, 2019 10:17 — forked from thehig/screenshots.spec.js
js: Storyshots with multiple device/viewport puppeteer screenshots
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, '../../../');
@vxsx
vxsx / docker-compose.yml
Created October 2, 2017 13:59
Browsersync with Divio cloud projects
# 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:
@vxsx
vxsx / whatever.diff
Created December 1, 2017 13:49
close sideframe
{% 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://"
},

Keybase proof

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:

@vxsx
vxsx / index.html
Created June 9, 2013 16:45
A CodePen by Vadim Sikora. Dropdown menu - Just a proof of concept no js dropdown menu inspired by http://www.riotindustries.com/
<!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">
@vxsx
vxsx / SassMeister-input.scss
Created October 6, 2015 07:24
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
.cms-toolbar {
.cms-test {
/* blah blah */
}
.cms-test2 {
@vxsx
vxsx / dabblet.css
Created April 21, 2012 18:10 — forked from kizu/dabblet.css
Scrolling shadows by @kizmarh
/* Scrolling shadows by @kizmarh */
html {
background: #FFF;
}
.scrollbox {
position: relative;
z-index: 1;
@vxsx
vxsx / gist:2427782
Created April 20, 2012 11:01
Pretty svn
# 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;