Skip to content

Instantly share code, notes, and snippets.

Avatar

Michał Ochman michalochman

View GitHub Profile
@michalochman
michalochman / pip list
Last active October 26, 2016 17:34
graphene-django test log
View pip list
$ pip list
apipkg (1.4)
Django (1.10.2)
django-filter (0.15.3)
execnet (1.4.1)
graphene (1.0.2)
graphene-django (1.0)
graphql-core (1.0)
graphql-relay (0.4.4)
iso8601 (0.1.11)
@michalochman
michalochman / gulpfile.js
Last active May 19, 2021 22:11
gulp.js: babelify + browserify + sourcemaps
View gulpfile.js
/* jshint strict: false */
/* globals require, console */
var gulp = require('gulp');
var exit = require('gulp-exit');
var browserify = require('browserify');
var watchify = require('watchify');
var babelify = require('babelify');
var source = require('vinyl-source-stream');
@michalochman
michalochman / dabblet.css
Created September 13, 2012 07:06
Classic Digg-Style Radio Buttons with just CSS
View dabblet.css
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
outline: none;
}
@michalochman
michalochman / gist:3175175
Created July 25, 2012 08:53
Take screenshot with Behat/Mink after failed step
View gist:3175175
/**
* Take screenshot when step fails.
* Works only with Selenium2Driver.
*
* @AfterStep
*/
public function takeScreenshotAfterFailedStep($event)
{
if (4 === $event->getResult()) {
$driver = $this->getSession()->getDriver();