Skip to content

Instantly share code, notes, and snippets.

View giacomomarchioro's full-sized avatar

Giacomo Marchioro giacomomarchioro

View GitHub Profile
@giacomomarchioro
giacomomarchioro / distrubution.sh
Last active June 28, 2018 10:08
My own Scientific Python based Ubuntu distribution
sudo su
###########################
#REMOVE UNECESSARY THINGS:#
###########################
#Amazon:
rm /usr/share/applications/ubuntu-amazon-default.desktop
rm /usr/share/unity-webapps/userscripts/unity-webapps-amazon/Amazon.user.js
rm /usr/share/unity-webapps/userscripts/unity-webapps-amazon/manifest.json
rm /usr/share/applications/ubuntu-amazon-default.desktop
rm /usr/share/unity-webapps/userscripts/unity-webapps-amazon/Amazon.user.js
@giacomomarchioro
giacomomarchioro / app.py
Last active November 13, 2022 21:10 — forked from rmed/app.py
Dynamic Flask-WTF fields more than one dynamic form JQuery function parametrized with arguments (problem for removing items!)
# -*- coding: utf-8 -*-
# app.py
from flask import Flask, render_template
from flask_sqlalchemy import SQLAlchemy
from flask_wtf import FlaskForm
from wtforms import Form, FieldList, FormField, IntegerField, SelectField, \
StringField, TextAreaField, SubmitField
from wtforms import validators
@giacomomarchioro
giacomomarchioro / simple.html
Created January 26, 2022 16:25
Simple flask-wtf FieldList usage printing the data structure of the resulting form. Can be run using python simpleapp.py.
<form method="post" action="">
{{ form.name}}
{{ form.hidden_tag() }}
<br/>
{% for entry in form.subforms %}
{{ entry.subformfield1}}
<br/>
{% endfor %}
<input type="submit"/>
</form>
@giacomomarchioro
giacomomarchioro / sandbox.adoc
Last active December 20, 2022 15:18
A sandbox for reference using ASCIIDOC

Document Title

A paragraph with bold and italic text. A link to Eclipse. A reusable link to GitLab.

An image