Skip to content

Instantly share code, notes, and snippets.

View joseboretto's full-sized avatar
💭
Coding

Jose Boretto joseboretto

💭
Coding
View GitHub Profile
@emanuelmutschlechner
emanuelmutschlechner / bootstrap-vue.js
Created April 16, 2018 05:52
pre v2.0.0-rc.7 tabs no-key-nav
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.bootstrapVue = factory());
}(this, (function () { 'use strict';
var __assign = Object.assign || function (e) {
for (var a, s = 1, t = arguments.length; s < t; s++) {
for (var r in a = arguments[s]) {
Object.prototype.hasOwnProperty.call(a, r) && (e[r] = a[r]);
@pirate
pirate / parseURLParameters.js
Last active December 15, 2023 07:17
Parse URL query parameters in ES6
function getUrlParams(search) {
const hashes = search.slice(search.indexOf('?') + 1).split('&')
const params = {}
hashes.map(hash => {
const [key, val] = hash.split('=')
params[key] = decodeURIComponent(val)
})
return params
}
@miguelmota
miguelmota / index.js
Created May 22, 2014 06:21
Node.js Winston logger wrapper to display filename
var log = require('./lib/logger')(module);
log.info('foo');