Skip to content

Instantly share code, notes, and snippets.

View jeffersonlicet's full-sized avatar
😎

Jefferson Licet jeffersonlicet

😎
View GitHub Profile
@jeffersonlicet
jeffersonlicet / doPadding.java
Created September 1, 2017 23:30
Recursive left string padding
/**
* Add padding to a String
*
* @param String to process
* @param int len to achieve
* @param String to append as padding
* @return String processed string
*/
public static String addPadding(String input, int maxLen, String append) {
if (input.length() >= maxLen) {
@jeffersonlicet
jeffersonlicet / testCredentials.js
Last active August 28, 2018 15:24
Using test credentials
const adUnitPath = '/6355419/Travel/Europe/France/Paris';
const supportedSizes = [[728, 90], [300, 250]];
googletag.defineSlot(adUnitPath, supportedSizes, 'leaderboard0')
.setTargeting('test', 'infinitescroll')
.addService(googletag.pubads());
@jeffersonlicet
jeffersonlicet / script.js
Created May 31, 2024 01:18
Stop ChatGPT Web Memory Leak
window.original = window.addEventListener;
window.addEventListener = function (type, listener, options) {
if (type === "DOMContentLoaded") {
console.warn(
"Adding new DOMContentLoaded event listeners has been blocked."
);
return;
}