Skip to content

Instantly share code, notes, and snippets.

View FezVrasta's full-sized avatar
:electron:

Federico Zivolo FezVrasta

:electron:
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
function moveHangoutLinks() {
var calendarId = 'fzivolo@quid.com';
var now = new Date();
var events = Calendar.Events.list(calendarId, {
timeMin: now.toISOString(),
singleEvents: true,
orderBy: 'startTime',
maxResults: 10
});
if (events.items && events.items.length > 0) {
window.Bugsnag = {};
@FezVrasta
FezVrasta / CLA.md
Last active June 3, 2017 10:14
Popper.js Contributor License Agreement

Popper.js Contributor License Agreement

The document below clarifies the terms under which you, the person listed below, may make "Contributions" (software, bug fixes, configuration changes, documentation, or any other materials) to the project. This licence protects you, the Popper.js Project and licensees; it does not change your rights to use your own Contributions for any other purpose.

Please complete the following information about you and the Contributions. If you have questions about these terms, please contact us at federico.zivolo@gmail.com.

You and the Popper.js Project agree:

You grant to the Popper.js Project a perpetual, non-exclusive, irrevocable, worldwide, royalty-free, transferable license (with the power to sub-license) of all of your relevant intellectual property rights (including copyright, patent, and any other rights) for any purpose, including: to use, copy, make available to the public, prepare derivative works of, distribute and publicly perform. It also includes the right to li

diff --git a/scss/_tooltip.scss b/scss/_tooltip.scss
index d67dc4460..900e55100 100644
--- a/scss/_tooltip.scss
+++ b/scss/_tooltip.scss
@@ -10,12 +10,12 @@
// Allow breaking very long words so they don't overflow the tooltip's bounds
word-wrap: break-word;
opacity: 0;
+ margin: $tooltip-margin;
const fs = require('fs');
const path = require('path');
const MODULES_FOLDER = 'mymodules/';
const OUTPUT_DIR = './dist';
function getDirectories(srcpath) {
return fs.readdirSync(srcpath)
.filter(file =>
fs.statSync(path.join(srcpath, file)).isDirectory()
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Popper = factory());
}(this, (function () { 'use strict';
var nativeHints = ['native code', '[object MutationObserverConstructor]'];
/**
* Determine if a function is implemented natively (as opposed to a polyfill).
<!doctype html>
<html><head>
<meta charset="UTF-8">
<link rel="shortcut icon" type="image/x-icon" href="https://production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico">
<link rel="mask-icon" type="" href="https://production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111">
<title>CodePen - Popper with transformed element</title>
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.0.8
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
function getTotalScroll(element, parent) {
const currentElement = element.offsetParent;
const scrollTop = currentElement.scrollTop;
const scrollLeft = currentElement.scrollLeft;
if (currentElement === parent) {
return {
scrollTop,
scrollLeft,
};