Skip to content

Instantly share code, notes, and snippets.

View vincaslt's full-sized avatar
🍵
Get your tea @ vistontea.com

Vincas Stonys vincaslt

🍵
Get your tea @ vistontea.com
View GitHub Profile
@vincaslt
vincaslt / Futurable.spec.ts
Created July 15, 2022 07:02
Test for the custom Promise implementation for codefrontend.com article
import Futurable from "./Futurable";
describe("Futurable <constructor>", () => {
it("returns a promise-like object, that resolves it's chain after invoking <resolve>", (done) => {
new Futurable<string>((resolve) => {
setTimeout(() => {
resolve("testing");
}, 20);
}).then((val) => {
expect(val).toBe("testing");
@vincaslt
vincaslt / CHANGELOG.md
Last active October 28, 2020 19:44
Mediabits.io Changelog

Mediabits.io Changelog

2020-10-28: Alpha update #7

  • Better screen dimensions selection using aspect ratios.

2020-10-25: Alpha update #6

  • Changed plan prices, plan offerings and added priority processing for paid plans
  • Removed total video length limits and added rendered video instances limits (for free plans)
@vincaslt
vincaslt / server.js
Last active September 4, 2016 15:27
var restify = require('restify');
var Promise = require('bluebird');
var xray = require('x-ray');
var entities = require("entities");
require('es6-shim');
var p = Promise.promisify;
var x = xray({
filters: {