Skip to content

Instantly share code, notes, and snippets.

Alvaro alvarouribe

Block or report user

Report or block alvarouribe

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
learncodeacademy / pubsub.js
Created Jul 29, 2015
Basic Javascript PubSub Pattern
View pubsub.js
//events - a super-basic Javascript (publish subscribe) pattern
var events = {
events: {},
on: function (eventName, fn) {[eventName] =[eventName] || [];[eventName].push(fn);
off: function(eventName, fn) {
if ([eventName]) {
View bling.js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
NodeList.prototype.__proto__ = Array.prototype;
EdwardIrby / twitterTypeahead.html
Created Jun 6, 2014
RactiveJS Twitter Typeahead Component
View twitterTypeahead.html
<input class="flex-input-field" decorator="typeahead">
dypsilon /
Last active Feb 19, 2020
A badass list of frontend development resources I collected over time.
dmozzy / CalcDistance.js
Created Apr 16, 2012
Calculate Distance using google.maps.geometry.spherical.computeDistanceBetween
View CalcDistance.js
<script src="" type="text/javascript"></script>
<script type="text/javascript">
function calcDistance (fromLat, fromLng, toLat, toLng) {
return google.maps.geometry.spherical.computeDistanceBetween(
new google.maps.LatLng(fromLat, fromLng), new google.maps.LatLng(toLat, toLng));
You can’t perform that action at this time.