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
npetkov / main.rb
Created Nov 24, 2017
CanCan::Ability#merge transferring only rules
View main.rb
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
gem 'rails', '5.1.0' # use correct rails version
View keybase.md

Keybase proof

I hereby claim:

  • I am npetkov on github.
  • I am npetkov (https://keybase.io/npetkov) on keybase.
  • I have a public key ASBFjxOz9JxKu81DBGpJupyssAdgWVnsB2AYpwluSqn7KQo

To claim this, I am signing this object:

View task.js
function Task(fork) {
return {
fork,
map: (mapRejector, mapResolver) => Task((reject, resolve) => {
fork(function() {
if (mapRejector) {
reject(mapRejector.apply(null, arguments))
} else {
reject.apply(null, arguments)
}
View script_inject
<html><head>
<meta http-equiv=content-type content="text/html; charset=UTF-8" />
<title>Login - Икономедиа</title>
<link href="http://fonts.googleapis.com/css?family=Ubuntu&subset=cyrillic,latin" rel="stylesheet" type="text/css" />
<link href="http://id.capital.bg/minc/f=lib__login.css&amp;v=2" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="http://cdn.economedia.bg/minj/b=s&f=jquery__1.4__jquery-1.4.4.js,thickbox__3.1__thickbox.js"></script>
<script type="text/javascript" src="http://id.capital.bg/minj/f=lib__login.js"></script>
</head>
<body style="overflow: hidden;">
You can’t perform that action at this time.