Skip to content

Instantly share code, notes, and snippets.

View jerome-diver's full-sized avatar
🏠
Working from home

Jérôme Lanteri jerome-diver

🏠
Working from home
  • Uruguay
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jerome-diver on github.
  • I am jeromelanteri (https://keybase.io/jeromelanteri) on keybase.
  • I have a public key ASDPxWjOCUODu-xi6_JBP-JaCpGhzRTPbdpmlKBnrEgergo

To claim this, I am signing this object:

@jerome-diver
jerome-diver / use_case_get_static_var.py
Created May 12, 2020 19:21
How super mixins can find metaclass child variable
class MixinsBuilder:
"""From child static variable, i'm going to build attributes"""
def build_attributes(self):
my_meta_var = self.???[0]
for k, v in my_meta_var:
if not hasattr(self, k):
setattr(k, v)
--[[
Test lgi Lua package with GooCanvas and Modelized items
----]]
local lgi = require 'lgi'
local Goo = lgi.GooCanvas
local Gtk = lgi.Gtk
local win = Gtk.Window { width = 640, height = 500, anchor = Gtk.GTK_WINDOW_TOPLEVEL }
local frame = Gtk.Frame { width = 400, height = 400 }
@jerome-diver
jerome-diver / actions_CRUD.js
Created August 5, 2021 00:14
Container UI design part
/* CRUD for container collection to call from server API
at /api/containers address */
import { TAG, HOST, SERVER_PORT } from '../../Views/helpers/config'
const host = TAG + HOST + ":" + SERVER_PORT
const giveMe = (url, successCBK, failedCBK, finalCBK, isMounted) => {
fetch(url)
.then( response => response.json() )
@jerome-diver
jerome-diver / xmonad.desktop
Last active March 16, 2023 21:32
xmonad desktop inside /usr/share/xsessions/ directory is never see in SDDM or GDM3 display manager session WM list
[Desktop Entry]
Encoding=UTF-8
Name=XMonad
Comment=Highly configurable Haskell dynamic tiling Window Manager
TryExec=$HOME/.cache/xmonad/xmonad-x86_64-linux
Exec=$HOME/.cache/xmonad/xmonad-x86_64-linux
Type=Application
Icon=xmonad.png
Keywords=Window manager