Skip to content

Instantly share code, notes, and snippets.

View varyonic's full-sized avatar

Piers Chambers varyonic

View GitHub Profile
humphreyja / active_admin.rb
Created November 13, 2019 19:58
Include react components into active admin using React On Rails.
View active_admin.rb
# config/initializers/active_admin.rb
module ActiveAdmin
module Views
# Defines a `react_component` active admin component. It allows you
# to include react components into active admin using React On Rails.
# Example:
varyonic / docker-compose.yml
Last active May 18, 2021 13:18
Capybara standalone Selenium Chrome config
View docker-compose.yml
build: .
- .:/opt/myapp
- '3000:3000'
- db
- redis
- selenium
varyonic / gist:542c37648de91a02402a
Last active August 29, 2015 14:08
Deprecated but working version of form_buffers removed by
View gist:542c37648de91a02402a
module ActiveAdmin
module Views
class ActiveAdminForm
class DeprecatedFormBufferSubstitute
def initialize(form)
@form = form
def << (value)
@form.text_node value.html_safe
martinrusev / imap-search
Last active February 8, 2024 09:42
IMAP Search criteria
View imap-search