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 datetime import datetime | |
measures: list = [] | |
while True: | |
print() | |
key: str = input( | |
"Premi un tasto qualsiasi per avviare il conteggio, \"r\" per fermare le misurazioni ") | |
if key == "r": | |
break |
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
<?php | |
phpinfo(); |
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
# server { | |
# listen 80; | |
# server_name 127.0.0.1; | |
# return 301 https://127.0.0.1$request_uri; | |
# } | |
server { | |
listen 80; | |
# listen 443; | |
# ssl on; |
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 'package:cached_network_image/cached_network_image.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_cache_manager/flutter_cache_manager.dart'; | |
import 'package:resmedia_manita_flutter/references.dart'; | |
class OptimizedNetworkImage extends StatelessWidget { | |
final String imageUrl; | |
final Widget Function(BuildContext, String) placeholder; | |
final BoxFit fit; |
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 os | |
def main(): | |
export_file_names: list = [ | |
f for f in os.listdir(".") if f.endswith(".xml") and not f.endswith(".correct.xml")] | |
for export_file_name in export_file_names: | |
print(f"Going with: {export_file_name}") |
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
static Future<UserModel> signInWithApple() async { | |
final OAuthProvider appleOAuth = OAuthProvider("apple.com"); | |
final AuthorizationCredentialAppleID appleCredential = await SignInWithApple.getAppleIDCredential( | |
scopes: [ | |
AppleIDAuthorizationScopes.email, | |
AppleIDAuthorizationScopes.fullName, | |
], | |
); | |
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 'package:http/http.dart' as http; | |
class HttpUploader { | |
Future<void> uploadFile (File file, String nameOnPrinter) async { | |
String url = "http://192.168.1.125/upload?X-Filename=$nameOnPrinter.gcode"; | |
Map<String, String> headers = { | |
"Content-Type": "application/octet-stream" | |
}; |
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
for f in $(ls -d */); | |
do | |
echo "Entro in $f." | |
cd "$f" | |
flutter clean | |
cd .. | |
done |
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
return Row( | |
children: <Widget>[ | |
CircleAvatar( | |
backgroundImage: CachedNetworkImageProvider( | |
post.author.photoUrl, | |
), | |
), | |
Expanded( | |
child: Text(post.author.displayName), | |
), |
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
<?php | |
/** | |
Plugin Name: WooCommerce PDF Invoices Italian Add-on | |
Plugin URI: https://ldav.it/plugin/woocommerce-pdf-invoices-italian-add-on/ | |
Description: Aggiunge a WooCommerce tutto il necessario per un e-commerce italiano e la fatturazione elettronica | |
Version: 0.7.0.13 | |
Author: laboratorio d'Avanguardia | |
Author URI: https://ldav.it/ | |
License: GPLv2 or later | |
License URI: http://www.opensource.org/licenses/gpl-license.php |