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,
}) => {
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 status
# if fatal: terminal prompts disabled
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[id="ads_left"][class="no-ads link link_major "]$script$script$script$script$script$script$script
You can’t perform that action at this time.