Skip to content

Instantly share code, notes, and snippets.

View myabc's full-sized avatar

Alexander Brandon Coles myabc

  • @opf OpenProject
  • London, England
View GitHub Profile
CapybaraAccessibleSelectors::DriverNodeExtensions.class_eval do
def accessible_name
result = browser.page.command("Accessibility.queryAXTree", nodeId: node.node_id)
first_node = result["nodes"]&.first { it["ignored"] == false }
first_node&.dig("name", "value") || ""
end
end
DynamicFormComponent
✓ should create (6ms)
ERROR LOG: 'NG0304: 'op-formattable-control' is not a known element (used in the 'FormattableTextareaInputComponent' component template):
1. If 'op-formattable-control' is an Angular component, then verify that it is a part of an @NgModule where this component is declared.
2. If 'op-formattable-control' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.'
ERROR LOG: 'NG0304: 'op-basic-single-date-picker' is not a known element (used in the 'DateInputComponent' component template):
1. If 'op-basic-single-date-picker' is an Angular component, then verify that it is a part of an @NgModule where this component is declared.
2. If 'op-basic-single-date-picker' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.'
ERROR LOG: 'NG0303: Can't bind to 'templateOptions' since it isn't a known property of 'op-formattable-control' (us
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://cdn.jsdelivr.net/lodash/4/lodash.min.js"></script>
</head>
<body>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://cdn.jsdelivr.net/lodash/4/lodash.min.js"></script>
</head>
<body>

Keybase proof

I hereby claim:

  • I am myabc on github.
  • I am myabc (https://keybase.io/myabc) on keybase.
  • I have a public key whose fingerprint is C158 E20D 9348 CF1D C6F8 22D6 D8B5 72A6 6D48 932A

To claim this, I am signing this object:

Taking Rails beyond the asset pipeline

a workshop

RubyDay Italia, Firenze | Novembre 2016


Bienvenuto


@myabc
myabc / gist:6874053
Last active December 24, 2015 22:39 — forked from tonyc/gist:5989308
#/usr/bin/env bash
set -e
set -x
apt-get update
apt-get upgrade
apt-get -y install build-essential curl git-core openssl libreadline6 libreadline6-dev \
zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev \
@myabc
myabc / gist:6230490
Last active December 21, 2015 01:49
JRubyConf EU Menu for 15 August

Vorspeisen & Salate

Vegetarisch

Sigara böreği & Tsatsiki (gefüllte Teigrolle mit Schafskäse & Petersilie)

Pochierter Spinat in Joghurt (mit Zwiebeln und Joghurt Knoblauch Dipp)

Käse Platte mit verschiedenen hausgemachten Käsepasten

@myabc
myabc / gist:6229824
Created August 14, 2013 10:28
JRubyConf EU Menu for 14 August

Vorspeisen & Salate

Vegetarisch

Falafel & Humus (vegan) (frittiertes Kichererbsenpuree mit Humus)

Gegrilltes Gemüse in Joghurt (Zucchini, rote und gelbe Paprika mit Joghurt Knoblauch Dipp)

Käse Platte mit verschiedenen hausgemachten Käsepasten

# config/initializers/compass_patch.rb
module Compass::SassExtensions::Functions::Sprites
# Returns boolean if sprite has the selector
def sprite_has_selector(map, sprite, selector)
sprite = convert_sprite_name(sprite)
verify_map map
verify_sprite sprite
unless VALID_SELECTORS.include?(selector.value)
raise Sass::SyntaxError, "Invalid Selctor did you mean one of: #{VALID_SELECTORS.join(', ')}"