Skip to content

Instantly share code, notes, and snippets.

View natalan's full-sized avatar

Andrei Zharov natalan

View GitHub Profile
@natalan
natalan / tiny Promise.js
Created August 7, 2012 03:20 — forked from unscriptable/tiny Promise.js
A minimalist implementation of a javascript promise
// (c) copyright unscriptable.com / John Hann
// License MIT
// For more robust promises, see https://github.com/briancavalier/when.js.
// adding support for limited promises where limited cannot resolve/reject itself
var Promise = function () {
var thens = [],
builder = function (arg){
var Constructor = function () {
this._thens = thens;
@natalan
natalan / README.md
Last active August 29, 2015 14:04 — forked from kdabir/README.md

Creating a TimerTask can not get easier than this thanks to groovy.

  • import java.util.timer.* is not required as java.util is already imported.
  • the run() is implemented as closure

To Run this:

groovy https://gist.github.com/kdabir/3176945/raw/timer_example.groovy

@natalan
natalan / primeNowPickupFinder.js
Last active April 14, 2020 14:54
Prime Now pickup slot finder (UserScript to be used with https://www.tampermonkey.net/ in Chrome)
// ==UserScript==
// @name Prime Now pickup slot finder
// @namespace AZ
// @version 1.0
// @description Find available slots for Whole Foods order pickup
// @author Andrei Zharov
// @match https://primenow.amazon.com/checkout/enter-checkout*
// @grant GM_notification
// ==/UserScript==
@natalan
natalan / gist:974d05fa6d94cef7f839604c26362ac2
Last active March 19, 2021 15:56
FIS Outlook Enhancer
// ==UserScript==
// @name FIS Outlook App Enhancer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Change default contrast in FIS theme for OWA
// @author Andrei Zharov
// @match https://outlook.office.com/mail/*
// @grant GM_addStyle
// ==/UserScript==