Skip to content

Instantly share code, notes, and snippets.

😄

AlexanderTserkovniy AlexanderTserkovniy

😄
Block or report user

Report or block AlexanderTserkovniy

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
@AlexanderTserkovniy
AlexanderTserkovniy / index.js
Last active Nov 3, 2017
Limit promise requests.
View index.js
/**
* Created by Oleksandr Tserkovnyi on 11/3/17.
* kemperomg@gmail.com
*/
const assert = require('assert');
const requester = strToRequest => {
return new Promise((res, rej) => {
const plus = Math.random() * 2000;
View bookmarklet
javascript: (function (log) {var name = jQuery('.ghx-issue-compact.ghx-selected .js-key-link, .ghx-issue.ghx-selected .js-key-link, .ghx-swimlane-header.ghx-selected .js-detailview').text(); var description = jQuery('.ghx-issue.ghx-selected .ghx-inner, .ghx-issue-compact.ghx-selected .ghx-inner').text(); var description = description || jQuery('.ghx-swimlane-header.ghx-selected .ghx-summary').contents().filter(function() {return this.nodeType === 3; }).text(); var transformed = {name: name.trim().toLowerCase(), description: description.trim().toLowerCase().replace(/[,\.\-\&'"]/g, '') }; var result = [transformed.name + '-' + transformed.description.split(' ').join('-'), name + ' ' + description ]; log(['git checkout -b ' + result[0] ].concat(result)); })(console.log.bind(console));
@AlexanderTserkovniy
AlexanderTserkovniy / Bookmarklet
Last active Aug 29, 2015
Google inbox select all items
View Bookmarklet
javascript:+function(){var all = document.querySelectorAll('.J.itemCheckboxOff');all = Array.prototype.slice.call(all);all.forEach(function (span) {span.click();});}();
You can’t perform that action at this time.