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
@EdwardIrby
EdwardIrby / twitterTypeahead.html
Created Jun 6, 2014
RactiveJS Twitter Typeahead Component
View twitterTypeahead.html
<input class="flex-input-field" decorator="typeahead">
@dmozzy
dmozzy / CalcDistance.js
Created Apr 16, 2012
Calculate Distance using google.maps.geometry.spherical.computeDistanceBetween
View CalcDistance.js
<script src="http://maps.google.com/maps/api/js?sensor=false&libraries=geometry" 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));
}
</script>
@learncodeacademy
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) {
this.events[eventName] = this.events[eventName] || [];
this.events[eventName].push(fn);
},
off: function(eventName, fn) {
if (this.events[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;
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active Oct 14, 2019
A badass list of frontend development resources I collected over time.
View frontendDevlopmentBookmarks.md
You can’t perform that action at this time.