This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
module Gerund | |
def self.included(base) | |
base.extend ClassMethods | |
end | |
module ClassMethods | |
delegate :model_name, | |
:sti_name, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Specify a directory for plugins | |
call plug#begin('~/.config/nvim/plugged') | |
" What I consider essential essentials - these make vim vim-ier (IMHO) | |
Plug 'mhinz/vim-grepper' " Makes grepping feel like other editors | |
Plug 'svermeulen/vim-yoink' " Adds a 'kill ring' to vim, i.e. yank history | |
Plug 'mbbill/undotree' " visualize Vim's built-in undo branches | |
Plug 'PeterRincker/vim-searchlight' " highlights the current search result | |
Plug 'tpope/vim-repeat' " makes repeating (.) work in more cases | |
Plug 'ludovicchabant/vim-gutentags' " Auto ctag managemnet that 'just works' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
class CategoryTree < Struct.new(:json) | |
def inspect | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
ruby '2.6.3' | |
gem 'rails', '5.0.7' | |
group :development do | |
# Mail gem used to send email from rake tasks | |
gem 'mail' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function() { | |
var touchingCarousel = false | |
, touchStartCoords | |
document.body.addEventListener('touchstart', function(e) { | |
if (e.target.closest('.carousel-cell')) { | |
touchingCarousel = true | |
} else { | |
touchingCarousel = false | |
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'activerecord' | |
gem 'globalize' | |
gem 'sqlite3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"from": 0, | |
"size": 10, | |
"sort": [ | |
{ | |
"_score": { | |
"order": "desc" | |
}, | |
"boost": { | |
"order": "desc", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"from": 0, | |
"size": 10, | |
"sort": [ | |
{ | |
"_score": { | |
"order": "desc" | |
}, | |
"boost": { | |
"order": "desc", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyApp | |
def self.settings | |
Settings.instance | |
end | |
class MyApp::Settings < BasicObject | |
# so we can reference classes w/o appending '::' | |
def self.const_missing(name) | |
::Object.const_get(name) | |
end |
NewerOlder