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
*.gem | |
*.rbc | |
*.sublime-workspace | |
.DS_Store | |
.byebug_history | |
.env | |
.generators | |
.idea | |
.rakeTasks | |
.rspec |
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 Xyz | |
def self.some_module | |
Module.new do | |
# ... | |
end | |
end | |
def self.included(klass) | |
# klass.include(some_module) | |
klass.include(self) |
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.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 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 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 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 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 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 |
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
# Expectations: | |
# | |
# * application code in /srv/myapp/current | |
# * ruby runtime in /srv/myapp/.rubies/ruby-2.3.0 | |
# * unicorn.rb config specifies pid file location to /srv/myapp/current/unicorn.pid and working directory to /srv/myapp/current | |
[Unit] | |
Description=Sample unicorn app | |
[Service] |
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
TypeError: this.initialize.apply is not a function. (In 'this.initialize.apply(this,arguments)', 'this.initialize.apply' is an instance of Object) | |
Modelowl-web-c9a2df36e07e71c26e3a436290cef395.js:28639 | |
towl-web-c9a2df36e07e71c26e3a436290cef395.js:10605 | |
_prepareModelowl-web-c9a2df36e07e71c26e3a436290cef395.js:28986 | |
setowl-web-c9a2df36e07e71c26e3a436290cef395.js:28868 | |
addowl-web-c9a2df36e07e71c26e3a436290cef395.js:28828 | |
resetowl-web-c9a2df36e07e71c26e3a436290cef395.js:28907 | |
resetowl-web-c9a2df36e07e71c26e3a436290cef395.js:2188 | |
setowl-web-c9a2df36e07e71c26e3a436290cef395.js:9400 | |
(anonimowa funkcja)owl-web-c9a2df36e07e71c26e3a436290cef395.js:9376 |