Skip to content

Instantly share code, notes, and snippets.

View vincenzopalazzo's full-sized avatar
:octocat:
The commit can contain poetry

Vincenzo Palazzo vincenzopalazzo

:octocat:
The commit can contain poetry
View GitHub Profile
@vincenzopalazzo
vincenzopalazzo / FONT_DOC.md
Last active April 7, 2020 21:07
The Document import inside the change inside JMars to load the personal font with the library

Load Personal Font with material-ui-swing

In the new version of the library, so material-ui-swing-1.1.1 (0.3) is possible load a personal font with the library directly in the clien application such as JMars 5.

The building the font with material library is very fast because the instance of the font is the same, the class MaterialFontsFactory

@vincenzopalazzo
vincenzopalazzo / LinkLabel_DOC.md
Last active April 16, 2020 15:23
Integration LinkLabel in JMAR

Integration LinkLabel with JMars

Introduction

Inside this document isn't explane how the library LinkLabelUI works but contains only the code to integrate with with JMars (very easy 😄 )

Copy and Past all this class with the UrlLabel class in JMars

package edu.asu.jmars.swing;
@vincenzopalazzo
vincenzopalazzo / Material-ui-Swing_debug.md
Created April 16, 2020 18:04
Contains some information about the debug of material-ui-swing library

Material-UI-Swing debugging

Introductions

TODO

What version of library should be used?

Material-ui-swing implement a debug version with SLF4J that create a file inside you home dir called material-debug.log but if your problem need time to reproduce, this version is not good, because at the moment there isn't a softwer GUI to see the debug log for big file.

Example of jatJar task using Gradle Kotlin DSL:

val mainClass = "com.github.daggerok.Main" // replace it!

tasks {
  register("fatJar", Jar::class.java) {
    archiveClassifier.set("all")
    duplicatesStrategy = DuplicatesStrategy.EXCLUDE
 manifest {
@vincenzopalazzo
vincenzopalazzo / lab_report.tex
Created October 1, 2020 11:12 — forked from balos1/lab_report.tex
A Lab Report LaTex Template
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% University/School Laboratory Report
% LaTeX Template
% Version 3.1 (25/3/14)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Linux and Unix Users Group at Virginia Tech Wiki
@vincenzopalazzo
vincenzopalazzo / pytest-fixture-modularization.md
Created October 26, 2020 08:40 — forked from peterhurford/pytest-fixture-modularization.md
How to modularize your py.test fixtures

Using py.test is great and the support for test fixtures is pretty awesome. However, in order to share your fixtures across your entire module, py.test suggests you define all your fixtures within one single conftest.py file. This is impractical if you have a large quantity of fixtures -- for better organization and readibility, you would much rather define your fixtures across multiple, well-named files. But how do you do that? ...No one on the internet seemed to know.

Turns out, however, you can define fixtures in individual files like this:

tests/fixtures/add.py

import pytest

@pytest.fixture
PATH=/bin:/usr/bin:/usr/local/bin:${PATH}
export PATH
bitcoin_version="bitcoin-0.20.0"
lightning_version="clightning-v0.9.2"
#Path Bitcoin core
export PATH=$PATH:/home/vincent/Bitcoin/$bitcoin_version/bin/
#Path C-lightninh
export PATH=$PATH:/home/vincent/Bitcoin/$lightning_version/bin/
@vincenzopalazzo
vincenzopalazzo / spacemacs-keybindings.md
Created January 15, 2021 19:37 — forked from rnwolf/spacemacs-keybindings.md
spacemacs keybindings that i need to learn
@vincenzopalazzo
vincenzopalazzo / segment_tree.mc
Created February 7, 2021 18:26
Segment tree data structure implementation with MicroC language developer to test an academics compiler of Master class the compiler is available on Docker Hub https://hub.docker.com/repository/docker/vincenzopalazzo/microclang
/**
* Segment tree data structure implementation with MicroC language
* developer to test an academics compiler of Master class
* The compiler is available on Docker Hub
* https://hub.docker.com/repository/docker/vincenzopalazzo/microclang
*
* Copyright (C) 2021 Vincenzo Palazzo vincenzopalazzodev@gmail.com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License