Skip to content

Instantly share code, notes, and snippets.

View iamkenos's full-sized avatar
💭
booya!

iamkenos iamkenos

💭
booya!
  • Australia, NSW
View GitHub Profile
@hansmaad
hansmaad / chartist-logaxis-patch.js
Created July 14, 2016 08:49
Adds a log scale option to Chartist AutoScaleAxis
(function (window, document, Chartist) {
'use strict';
function AutoScaleAxis(axisUnit, data, chartRect, options) {
// Usually we calculate highLow based on the data but this can be overriden by a highLow object in the options
var highLow = options.highLow || Chartist.getHighLow(data.normalized, options, axisUnit.pos);
this.bounds = Chartist.getBounds(chartRect[axisUnit.rectEnd] - chartRect[axisUnit.rectStart], highLow, options.scaleMinSpace || 20, options.onlyInteger);
var scale = options.scale || 'linear';
@jbpros
jbpros / my.feature
Last active May 25, 2021 10:17
Cucumber.js step definition transforms
# features/my.feature
Feature:
Scenario: cukes
Given I have 10 cucumbers in my BaG
Given I don't have 20 cucumbers in my bAg
Given I have 98775655 cucumbers in my bag
@hansmaad
hansmaad / gist:9187633
Last active April 6, 2025 10:52
WPF Flat Combo Box Style
<!-- Flat ComboBox -->
<SolidColorBrush x:Key="ComboBoxNormalBorderBrush" Color="#e3e9ef" />
<SolidColorBrush x:Key="ComboBoxNormalBackgroundBrush" Color="#fff" />
<SolidColorBrush x:Key="ComboBoxDisabledForegroundBrush" Color="#888" />
<SolidColorBrush x:Key="ComboBoxDisabledBackgroundBrush" Color="#eee" />
<SolidColorBrush x:Key="ComboBoxDisabledBorderBrush" Color="#888" />
<ControlTemplate TargetType="ToggleButton" x:Key="ComboBoxToggleButtonTemplate">
<Grid>
<Grid.ColumnDefinitions>