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
/* Animating with globe emoji */ | |
@keyframes rotateEmoji { | |
0% { content: "\01F30D"; } | |
33% { content: "\01F30E"; } | |
66% { content: "\01F30F"; } | |
} | |
.my-own-tile .nepTileTitle .nepTileClickable::before { | |
content: "\01F30D"; | |
} | |
.my-own-tile:hover .nepTileTitle .nepTileClickable::before { |
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
//--------------------------------------------------------------------------------- | |
// Set custom links for your Elementor Carousel Image | |
// Usage: | |
// o set the list of links (comma-separated) in the Custom URL | |
// o add a new HTML widget in the page and copy the JS below | |
// o (optional) you might copy the CSS as well | |
// | |
// Author: Guillaume GARCIA | |
// Date : 1-feb-2021 | |
// |
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
/*==================================================================================================================== | |
* Author: Guillaume GARCIA (https://www.linkedin.com/in/guillaumegarcia/) | |
* Date : 30-november-2020 | |
* | |
* Usage | |
* ----- | |
* | |
* Go to a LinkedIn post URL | |
* such as: https://www.linkedin.com/feed/update/urn:li:activity:6738104526265446400/ | |
* Open Chrome DevTools |
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
// You will also need to create a gmail filter to add the 'send-to-slack' label | |
// to any emails you want sent to slack | |
function sendEmailsToSlack() { | |
var label = GmailApp.getUserLabelByName('send-to-slack'); | |
var messages = []; | |
var threads = label.getThreads(); | |
for (var i = 0; i < threads.length; i++) { | |
messages = messages.concat(threads[i].getMessages()) |
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
var inspect = function(ctrl, prototypeLevel = 1) { | |
let output = []; | |
let level = prototypeLevel; | |
// local auxiliary helper | |
const _fillDictionary = (subObj, depth, originalObj = subObj) => { | |
Object.keys(subObj).forEach(key => { | |
// only consider 'getter' and catch any error (such as mandatory parameters) | |
if (key.startsWith('get') && typeof originalObj[key] === 'function') { | |
try { |
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
import { Component, HostListener } from '@angular/core'; | |
@Component({ | |
selector: 'app-root', | |
template: '<button (click)="addToHomeScreen()" *ngIf="showButton">Add to Home Scree</button>', | |
styleUrls: ['./app.component.scss'] | |
}) | |
export class AppComponent { | |
deferredPrompt: any; |
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
/* From: https://medium.com/@hkairi/reduce-le-couteau-suisse-du-d%C3%A9veloppeur-javascript-8cf4b6f98304 | |
1. min() | |
2. max() | |
3. length() | |
4. map() | |
5. filter() | |
6. reverse() | |
7. unique() | |
8. take() | |
9. any() |
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
var sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); | |
// Usage | |
// within an 'async' function | |
await sleep(2000); | |
// And without async? | |
// scenarios like the following do not work unfortunately | |
console.log('Wait for 5s...'); | |
(async function() { |
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
<!DOCTYPE html> | |
<html><head> | |
<meta name="description" content="SAPUI5 Simpleform with multiple controls " /> | |
<meta http-equiv='X-UA-Compatible' content='IE=edge' /> | |
<meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/> | |
<title>SAPUI5 List Example with dynamic css gbvaibhav</title> | |
<script src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js" |
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
const CHUNK_SIZE = 80; // put whatever size is relevant here | |
const CONCAT_OPERATOR = '+'; // put string concatenation operator here | |
const text = `Very long text would like to be splitted to fit any clumsy editor at there that does only support fixed number of characters per line`; | |
const regexp = new RegExp('.{1,'+ CHUNK_SIZE+'}', 'g'); | |
const result = '`' + text.match(regexp).join('` ' + CONCAT_OPERATOR + ' \n`') + '`'; | |
// Result with (CHUNK_SIZE=40 and CONCAT_OPERATOR='&&') is: | |
// | |
// `Very long text would like to be splitted` && |
NewerOlder