This file contains hidden or 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
| #!/usr/bin/env ruby | |
| require "bundler/inline" | |
| require "json" | |
| gemfile do | |
| source "https://rubygems.org" | |
| gem "rails_event_store", "2.9.1" | |
| gem "railties", "~> 7.0.0" | |
| end |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| require "bundler/inline" | |
| require "json" | |
| gemfile do | |
| source "https://rubygems.org" | |
| gem "rails_event_store", "2.9.1" | |
| gem "railties", "~> 7.0.0" | |
| end |
This file contains hidden or 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
| *.gem | |
| *.rbc | |
| *.sublime-workspace | |
| .DS_Store | |
| .byebug_history | |
| .env | |
| .generators | |
| .idea | |
| .rakeTasks | |
| .rspec |
This file contains hidden or 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 Xyz | |
| def self.some_module | |
| Module.new do | |
| # ... | |
| end | |
| end | |
| def self.included(klass) | |
| # klass.include(some_module) | |
| klass.include(self) |
This file contains hidden or 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.exports = function(api) { | |
| var validEnv = ["development", "test", "production"]; | |
| var currentEnv = api.env(); | |
| var isDevelopmentEnv = api.env("development"); | |
| var isProductionEnv = api.env("production"); | |
| var isTestEnv = api.env("test"); | |
| if (!validEnv.includes(currentEnv)) { | |
| throw new Error( | |
| "Please specify a valid `NODE_ENV` or " + |
This file contains hidden or 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
| call plug#begin('~/.vim/plugged') | |
| Plug '/usr/local/opt/fzf' | |
| Plug 'bkad/CamelCaseMotion' | |
| Plug 'dracula/vim', { 'as': 'dracula' } | |
| Plug 'drn/zoomwin-vim' | |
| Plug 'itchyny/lightline.vim' | |
| Plug 'janko-m/vim-test' | |
| Plug 'junegunn/fzf.vim' | |
| Plug 'kana/vim-fakeclip' | |
| Plug 'kana/vim-textobj-user' |
This file contains hidden or 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
| gem 'rails_event_store' | |
| generate 'rails_event_store_active_record:migration' | |
| rails_command 'db:migrate' | |
| initializer 'rails_event_store.rb', <<-CODE | |
| Rails.configuration.to_prepare do | |
| Rails.configuration.event_store = RailsEventStore::Client.new | |
| end | |
| CODE | |
This file contains hidden or 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
| call plug#begin() | |
| function! DoRemote(arg) | |
| UpdateRemotePlugins | |
| endfunction | |
| Plug 'Shougo/deoplete.nvim', { 'do': function('DoRemote') } | |
| Plug 'kien/ctrlp.vim' | |
| Plug 'rking/ag.vim' | |
| Plug 'regedarek/ZoomWin' | |
| Plug 'NLKNguyen/papercolor-theme' | |
| Plug 'LnL7/vim-nix' |
This file contains hidden or 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
| call plug#begin() | |
| function! DoRemote(arg) | |
| UpdateRemotePlugins | |
| endfunction | |
| Plug 'Shougo/deoplete.nvim', { 'do': function('DoRemote') } | |
| Plug 'kien/ctrlp.vim' | |
| Plug 'rking/ag.vim' | |
| Plug 'regedarek/ZoomWin' | |
| Plug 'NLKNguyen/papercolor-theme' | |
| Plug 'LnL7/vim-nix' |
This file contains hidden or 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
| require 'socket' | |
| require 'logger' | |
| STDOUT.sync = true | |
| logger = Logger.new(STDOUT) | |
| watchdog_timeout = (ENV['WATCHDOG_USEC'].to_i / 1_000_000) | |
| sd_notify_socket = Socket.new(Socket::AF_UNIX, Socket::SOCK_DGRAM) | |
| sd_notify_socket.connect(Addrinfo.unix(ENV['NOTIFY_SOCKET'])) | |
| loop do |