Skip to content

Instantly share code, notes, and snippets.

@jaesbit
jaesbit / gist:8ab2f3b4905b41886c7f3bb6ad25be3b
Created November 23, 2023 16:35
[tampermonkey] CLS logger using web-vitals library
// ==UserScript==
// @name (Web-Vitals lib) Cumulative Layout Shift Measure
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Try to improve your CWV score
// @author @jaesbit
// @match *://*/*
// @grant none
// ==/UserScript==
@jaesbit
jaesbit / gist:8ad14eb45e7610f2985eeaff40e6502a
Created November 23, 2023 16:33
[tampermonkey] CLS logger using PerformanceObserver
// ==UserScript==
// @name Cumulative Layout Shift Measure
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Try to improve your CWV score
// @author @jaesbit
// @match *://*/*
// @grant none
// ==/UserScript==
@jaesbit
jaesbit / Logger.java
Last active June 12, 2018 10:26
Nice Way to get Logger for multipurposes. Idea as ported from python Logging
import java.lang.StringBuilder;
import hudson.model.TaskListener;
import java.lang.reflect.Field;
class Logger {
public enum Level {
WTF(55), CRITICAL(50), ERROR(40), WARNING(30), INFO(20), DEBUG(10), NOSET(0);
private final int level;
@jaesbit
jaesbit / py36installer.py
Last active September 21, 2017 09:46
Python 3.6.x installer for ubuntu
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Just python 3.6.X deploy and install for UBUNTU 16.04 or greater
Can be run in python 2 and 3
Research, linux_py36 Started by Aaron Giovannini (agiovannini)
This file was created at 12/junio/2017