Skip to content

Instantly share code, notes, and snippets.

Umer umer4ik

Block or report user

Report or block umer4ik

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
View strip html from string
function strip(html){
var doc = new DOMParser().parseFromString(html, 'text/html');
return doc.body.textContent || "";
}
View ajax interface
const createHeaders = ({
json = true,
...rest
}) => {
const headers = new Headers()
if (json) {
headers.append('Content-type', 'application/json')
}
Object.keys(rest).forEach(key => {
headers.append(key, rest[key])
View git
git config credential.helper store
git config --global alias.st status
# if fatal: terminal prompts disabled
export GIT_TERMINAL_PROMPT=1
View regexes.js
//find all words after ~ charachter
// 'getByPath(~Assigned) + ma~Ass)' => ['Assigned', 'Ass']
'getByPath(~Assigned) + ma~Ass)'.match(/~[a-z,A-Z]{0,}/g).map(el => el.substring(1));
View adblock
vk.com##DIV[id="ads_left"]
music.yandex.ua##SPAN[class="no-ads link link_major "]
widgets.binotel.com$script
widget.siteheart.com$script
mc.yandex.ru/metrika/watch.js$script
www.google-analytics.com/analytics.js$script
an.yandex.ru
code.jivosite.com$script
call.chatra.io$script
push.world$script
You can’t perform that action at this time.