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 'dart:async'; | |
import 'dart:html'; | |
import 'package:firebase/firebase.dart' as firebase; | |
import 'package:flutter_web/foundation.dart'; | |
/// Questa classe permette di eseguire l'upload di un'immagine nel database di Firestore. | |
/// Il meccanismo è abbastanza semplice, ma data l'ingestibilità di riprodurlo ogni volta, è stata astratta dal resto. | |
/// Verrà inserita in un apposito gist. |
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
Building com.nextocompany.thingstore for device (ios-release)... | |
Automatically signing iOS for device deployment using specified development team | |
in Xcode project: P8WULW25UZ | |
Running pod install... 13,1s | |
Running Xcode build... | |
└─Compiling, linking and signing... 6,2s | |
Xcode build done. 373,6s | |
Failed to build iOS app | |
Error output from Xcode build: |
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 |
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
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
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
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 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
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
# 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; |
OlderNewer