Skip to content

Instantly share code, notes, and snippets.

View davydovanton's full-sized avatar
:shipit:
Working from home

Anton Davydov davydovanton

:shipit:
Working from home
View GitHub Profile
@jodosha
jodosha / README.md
Created September 7, 2017 14:34
Mount Hanami inside Rails

1. Setup

rails new blog
cd blog
hanami new bookshelf
vim Gemfile # add `hanami`
bundle
vim bookshelf/config/environment.rb # See Note 1
@ericclemmons
ericclemmons / example.md
Last active September 20, 2024 12:46
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot noisey logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

<details>
 Summary Goes Here
@cheeaun
cheeaun / rdrc2016.md
Last active June 13, 2018 08:39
RedDotRubyConf 2016 links & resources 😘
@lysenkooo
lysenkooo / name_checker.rb
Created November 19, 2015 09:41
Domain Name Checker
#!/usr/bin/env ruby
require 'socket'
require 'whois'
zones = %w(com ru)
words = %w(
word1
word2
@j-wilkins
j-wilkins / papajohns.rb
Last active January 28, 2017 05:45
Order a Favorite Pizza from Papa Johns
require 'mechanize'
class PapaOrder
SN_URL = 'https://order.papajohns.com/secure/signin/frame.html?destination='
attr_reader :agent, :password, :email
def initialize(email, password)
@email, @password = email, password
@agent = Mechanize.new
@imjasonh
imjasonh / markdown.css
Last active November 6, 2024 14:26
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@jamesbee
jamesbee / conn.ex
Last active October 6, 2016 22:23
Elixir connect to cassandra example
defmodule Conn do
def test do
{ok, client} = :cqerl.new_client({})
{ok, result} = :cqerl.run_query(client, "SELECT * FROM demodb.users;")
rows = :cqerl.all_rows(result)
end
end
@zillou
zillou / navigating-ruby-files.md
Created July 20, 2014 02:52
Navigating Ruby Files with Vim

Navigating Ruby Files with Vim - The Cheat Sheet

Precision motions for Ruby

Look up Ruby motions by running :help ruby-motion.

command effect