Skip to content

Instantly share code, notes, and snippets.

@psalaets
psalaets / rogule-regen.js
Last active September 20, 2022 16:13
Health regen script for rogule.com
/*
* Usage:
*
* 1. Paste code into dev console.
* 2. Invoke `heal1()` or `healFull()` as needed.
*
* FAQ
*
* Q: Is this cheating?
* A: No because the script uses the UI. It's just saving your time/fingers/keyboard.
// your config
{
"myConstant": 123
}
// gulp-ng-config output
angular.module('app.config', [])
.constant('myConstant', 123);
// use it in your service
@psalaets
psalaets / snippet.md
Created October 19, 2015 15:15
Scrape GitHub issue page for commits SHAs

In devtools:

'git cherry-pick ' + Array.from(document.querySelectorAll('.commit-id')).map(el => el.textContent).join(' ')
<td class="rank">
{{#if provisional}}
P
{{else}}
{{rank}}
{{/if}}
</td>
# Address
333 W Camden St
Baltimore, MD 21201
After address
@psalaets
psalaets / ruby_version.rb
Created February 22, 2013 22:06
Print ruby version and patchlevel to stdout
puts "this is ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"