Skip to content

Instantly share code, notes, and snippets.

@abhishekmunie
abhishekmunie / main.cpp
Created November 9, 2012 04:54
Finding minimum cost to visit all vertices in a graph and returning back.
//
// main.cpp
// FloydGreedyTravel
//
// The program tries to find a path to visit all vertices of Graph.
// The rules are:
// * Nodes can be visited more than once.
// * Try to find shortest path
//
// First it find All-Pairs Shortest Paths using The Floyd-Warshall algorithm.
@paulirish
paulirish / rAF.js
Last active March 22, 2024 00:00
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];