This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from textual.app import App, ComposeResult | |
from textual.containers import Horizontal | |
from textual.widgets import Footer, Header, Static, Button, TextArea | |
class MyApp(App): | |
def on_mount(self): | |
self.title = "Greeter" # This line set the app's title | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# File: storia/__main__.toml | |
# Descrizione dello scenario | |
# | |
# * La variabile "requirements" richiede che uno o più oggetti | |
# indicati siano nell'inventario dell'utente, per poter | |
# visualizzare il testo. | |
# * Gli oggetti elencati possono anche | |
# essere preceduti da un punto esclamativo (!) per indicare | |
# una condizione di NOT: e cioè, che l'oggetto NON DEVE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Version 1.0 | |
from pathlib import Path | |
from os.path import basename, isfile | |
import subprocess | |
import sys | |
import re | |
# The script needs the python library "requests". If the library | |
# is not found, the script will be halted |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Screen { | |
layout: grid; | |
grid-size: 4 4; | |
/* grid-rows: 5% 15% 80%; */ | |
} | |
Tile { | |
width: 9; | |
height: 3; | |
color: #fff; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from flask import Flask, request | |
app = Flask(__name__) | |
def extract_jotform_data(): | |
output = {} | |
form_data = request.form.to_dict() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body{background-color:#24292e;color:#eee}#logo,.main-nav-link,a.article-title,p,#page-nav a,.archive-article-title,#main-nav-toggle,.article-entry,.article-toc li a,.tag-cloud a,.article-footer a:hover{color:#eee}a.article-title:hover,a.article-date:hover,a.archive-article-title:hover,#footer a:hover,#page-nav>a:hover,.tag-cloud a:hover,a:hover{border-bottom-color:#eee}.article-entry a{border-bottom:none}.article-entry a:hover{border-bottom:1px dotted #00b6e5}#page-nav .current{background-color:#00b6e5}a,.article-entry a,.article-more-link a,#footer-info a{color:#00b6e5}.article-nav-link-wrap{text-shadow:0 1px #222;color:#00b6e5;text-align:center}.article-nav-link-wrap:hover{color:#eee}#header{background-color:#14191e;border-bottom:1px solid #222}div.highlight,pre,.article-entry code{background-color:#14191e !important;scrollbar-color:#00b6e5 #14191e}.article,.article-date{border-bottom:1px solid #14191e}.archives{border-left:1px solid #14191e}.archive-article-inner:hover{border-left-color:#00b6e5}.article-me |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dateutil import tz | |
# Occhio che la librerie suntime | |
# va prima installata nel proprio | |
# computer con il comando: | |
# " pip install suntime " | |
from suntime import Sun | |
# Latitudine e longitudine di Venezia | |
latitudine = 45.4398 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nav.main-nav a, | |
nav.main-nav a.cta, | |
a, | |
strong, | |
#title, | |
#post-list a:hover, | |
#post-list li:hover .dates, | |
#title:hover, | |
a, p a, #post-list.archive.readmore a { | |
color: #00b6e5; /* #5babf0; */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
procs=$(/home/fmaida/webapps/cesco_it_privato/bin/node /home/fmaida/webapps/cesco_it_privato/ghost/node_modules/forever/bin/forever list | grep -F /home/fmaida/webapps/cesco_it_privato/bin/node) | |
if [ -z "$procs" ]; then | |
cd /home/fmaida/webapps/cesco_it_privato/ghost | |
NODE_ENV=production /home/fmaida/webapps/cesco_it_privato/bin/node /home/fmaida/webapps/cesco_it_privato/ghost/node_modules/forever/bin/forever start -l ~/logs/user/cesco_it_privato-forever.log -o ~/logs/user/cesco_it_privato-stdout.log -e ~/logs/user/cesco_it_privato-stderr.log -a --sourceDir /home/fmaida/webapps/cesco_it_privato/ghost index.js | |
fi |