This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin transitions($applyTo, $duration) { | |
-webkit-transition: $applyTo $duration; | |
-moz-transition: $applyTo $duration; | |
-o-transition: $applyTo $duration; | |
transition: $applyTo $duration; | |
} | |
@mixin transition-duration($duration) { | |
-webkit-transition-duration: $duration; | |
-moz-transition-duration: $duration; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Paste this on the console in a bitbucket PR | |
const linesRemovedElements = document.getElementsByClassName('lines-removed') | |
let totalRemoved = 0; | |
for(ele of linesRemovedElements){ | |
totalRemoved += Number(ele.innerText) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Open the highlights HTML page on your browser and copy this code in the console of the developer tools | |
// Don't execute part of the script if you want to avoid some of the changes. | |
// Remove the highlights elements | |
const highlights = document.querySelectorAll('.m_noteHeading') | |
for(let highlight of highlights){ | |
highlight.parentNode.removeChild(highlight) | |
} | |
// Transform the sectionHeading into h2 elements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// *** Usage *** | |
// This will show timeAgo up to 1 week (2 hours ago, 4 days ago, etc) up to a week. | |
// Leave oneWeek out and the default is 3 days. | |
const refDate = new Date('Wed Nov 20 2019'); | |
humanReadableDate(new Date(), refDate, oneWeek); | |
// Same as above but without abreviated months | |
longHumanReadableDate(refDate) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[filter "lfs"] | |
process = git-lfs filter-process | |
required = true | |
clean = git-lfs clean -- %f | |
smudge = git-lfs smudge -- %f | |
[status] | |
showUntrackedFiles = all | |
# Sometimes a newly-added folder, since it's only one line in git status, can slip under the radar. | |
# https://git-scm.com/docs/git-config#git-config-statusshowUntrackedFiles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This function returns the date in a specific format per language | |
// You can pass the language (or navigator.language for the browser's language) | |
// Feel free to use the formats alone as well. | |
function getLocaleDate(lang){ | |
let formats = { | |
"ar-SA" : "dd/MM/yy", | |
"bg-BG" : "dd.M.yyyy", | |
"ca-ES" : "dd/MM/yyyy", | |
"zh-TW" : "yyyy/M/d", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Save this as a bookmark's URL and you're done | |
javascript:(function() { | |
document.getElementsByTagName("video")[0].playbackRate = prompt("Speed", "2.5"); | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"rules": [ | |
{ | |
"description": "button5 left space", | |
"manipulators": [ | |
{ | |
"from": { | |
"pointing_button": "button5" | |
}, | |
"to": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"rules": [ | |
{ | |
"description": "button5 left space", | |
"manipulators": [ | |
{ | |
"from": { | |
"pointing_button": "button5" | |
}, | |
"to": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"rules": [ | |
{ | |
"description": "button5 left space", | |
"manipulators": [ | |
{ | |
"from": { | |
"pointing_button": "button5" | |
}, | |
"to": [ | |
{ |
OlderNewer