Skip to content

Instantly share code, notes, and snippets.

Open to possibilities. Enquire within.

Jeff Dickey jdickey

Open to possibilities. Enquire within.
View GitHub Profile
View capybara cheat sheet
=Clicking links and buttons=
click_link('Link Text')
click('Link Text') # Click either a link or a button
click('Button Value')
phansch /
Last active Oct 22, 2021 — forked from chetan/
Improved YARD cheatsheet
View redis_pubsub_demo.rb
# Author: Pieter Noordhuis
# Description: Simple demo to showcase Redis PubSub with EventMachine
# Update 7 Oct 2010:
# - This example does *not* appear to work with Chrome >=6.0. Apparently,
# the WebSocket protocol implementation in the cramp gem does not work
# well with Chrome's (newer) WebSocket implementation.
# Requirements:
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby
grugq / gist:03167bed45e774551155
Last active Oct 16, 2021
operational pgp - draft
View gist:03167bed45e774551155

Operational PGP

This is a guide on how to email securely.

There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.

josevalim /
Created Sep 13, 2012
Sinatra like routes in Rails controllers

Sinatra like routes in Rails controllers

A proof of concept of having Sinatra like routes inside your controllers.

How to use

Since the router is gone, feel free to remove config/routes.rb. Then add the file below to lib/action_controller/inline_routes.rb inside your app.

jacrook / font_variables.scss
Last active Sep 23, 2021
Sass Css Font Stack Variables
View font_variables.scss
// Font Variables (
// Serif font-stacks
$baskerville-font-stack: "Big Caslon", "Book Antiqua", "Palatino Linotype", Georgia, serif !default;

Ruby Association Certified Ruby Examination Gold Sample Questions

Q1. Assume that the following code must have the stated execution result.

x.each_line { |line| puts line }

[Execution Result]
kjellm / app.rb
Last active Jul 26, 2021
Event Source proof of concept. Copyright 2017 Kjell-Magne Øierud. License: MIT
View app.rb
require_relative 'base'
require_relative 'event'
require_relative 'cmd'
require_relative 'crud'
require_relative 'model'
require_relative 'read'
require 'pp'
class Application < BaseObject
kennym / blogspot_to_jekyll.rb
Created Jul 30, 2011
Migrate your blogger blog posts to jekyll.
View blogspot_to_jekyll.rb
#!/usr/bin/env ruby
# Convert blogger (blogspot) posts to jekyll posts
# Basic Usage
# -----------
# ./blogger_to_jekyll.rb feed_url
# where `feed_url` can have the following format:
wagnerjgoncalves /
Last active Feb 12, 2021
Notes from Growing Rails Applications in Practice

Growing Rails Applications in Practice

  • How to use discipline, consistency and code organization to make your code grow more gently.

  • As you cycle through patterns, your application is becoming a patchwork of different coding techniques.

    All those new techniques actually help, or if you are just adding layers of inderection.

  • Large applications are large so what we can do is organize a codebase in a way that "scales logarithmically".