Skip to content

Instantly share code, notes, and snippets.

Nikolay Petkov npetkov

Block or report user

Report or block npetkov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
npetkov / main.rb
Created Nov 24, 2017
CanCan::Ability#merge transferring only rules
View main.rb
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
gemfile(true) do
source ''
gem 'rails', '5.1.0' # use correct rails version

Keybase proof

I hereby claim:

  • I am npetkov on github.
  • I am npetkov ( on keybase.
  • I have a public key ASBFjxOz9JxKu81DBGpJupyssAdgWVnsB2AYpwluSqn7KQo

To claim this, I am signing this object:

View task.js
function Task(fork) {
return {
map: (mapRejector, mapResolver) => Task((reject, resolve) => {
fork(function() {
if (mapRejector) {
reject(mapRejector.apply(null, arguments))
} else {
reject.apply(null, arguments)
View script_inject
<meta http-equiv=content-type content="text/html; charset=UTF-8" />
<title>Login - Икономедиа</title>
<link href=",latin" rel="stylesheet" type="text/css" />
<link href=";v=2" type="text/css" rel="stylesheet" />
<script type="text/javascript" src=",thickbox__3.1__thickbox.js"></script>
<script type="text/javascript" src=""></script>
<body style="overflow: hidden;">
You can’t perform that action at this time.