Skip to content

Instantly share code, notes, and snippets.

View gromin's full-sized avatar

Nikolay Gromin gromin

View GitHub Profile
@gromin
gromin / .block
Last active September 12, 2018 06:54 — forked from mbostock/.block
Line Chart
license: gpl-3.0
@gromin
gromin / README.md
Last active October 1, 2016 08:55 — forked from tomgp/LICENSE.txt
Simple D3 clock

A simple clock made with D3.

After I'd made it I got a bit caught up in trying to make it look like Dieter Ram's Braun clock face adding a whole bunch fo extra stuff...

It's still not quite there.

Допустим есть какой-то Piece, пусть например это будет Piece('@payment-step').

Если у нас есть вложенные элементы с ролями типа @payment-step-region, то к ним можно будет обращаться из методов таким образом:

Piece '@payment-step',
  someMethod: ->
    @region = @find('-region')

Trello CSS Guide

“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”

You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?

This is where any fun you might have been having ends. Now it’s time to get serious and talk about rules.

Writing CSS is hard. Even if you know all the intricacies of position and float and overflow and z-index, it’s easy to end up with spaghetti code where you need inline styles, !important rules, unused cruft, and general confusion. This guide provides some architecture for writing CSS so it stays clean and ma

Mac OSX 10.10 Yosemite Development Install

THIS IS A WORK IN PROGRESS USING THE YOSEMITE BETA - DO NOT RELY ON IT!

Fresh Install

Install OSX on a fresh drive. I recommend using Disk Utility to repartition the entire drive as 1 partition, as this clears any hidden volumes.

Once the initial install is complete, the OSX Setup Assistant will create your first adminstrator account.

@gromin
gromin / gist:3082623
Created July 10, 2012 10:46
How to use various remote selenium drivers with Cucumber
# This should be placed inside features/support/env.rb
# So we could specify at command prompt desired remote address and browser, e.g.:
# be cucumber REMOTE=true REMOTE_BROWSER=ie REMOTE_ADDR=192.168.1.1
# But there are some peculiarities which should be further investigated:
# * chrome needs chromedriver executable
# * opera loses focus and no further execution possible
# * it's impossible to attach a file to remote browser in file-handling scenarios