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 | |
| /** | |
| * WaybackDownloader | |
| * | |
| * Single-file PHP class that: | |
| * - Accepts a main URL or a Wayback snapshot URL | |
| * - Auto-finds the latest snapshot if you supply a main URL | |
| * - Queries CDX for a deduped list of 200-OK captures (up to maxPages) | |
| * - Downloads HTML + assets, strips Wayback toolbar, rewrites links to local paths | |
| * - Writes a static folder and a site.zip |
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:flutter/material.dart'; | |
| import 'package:intl/intl.dart'; | |
| import 'package:timezone/data/latest.dart' as tz; | |
| import 'package:timezone/timezone.dart' as tz; | |
| void main() { | |
| tz.initializeTimeZones(); | |
| runApp(const MyApp()); | |
| } |
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:flutter/material.dart'; | |
| import 'package:intl/intl.dart'; | |
| import 'package:timezone/data/latest.dart' as tz; | |
| import 'package:timezone/timezone.dart' as tz; | |
| void main() { | |
| tz.initializeTimeZones(); | |
| runApp(const MyApp()); | |
| } |
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:flutter/material.dart'; | |
| import 'package:provider/provider.dart'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); |
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:flutter/material.dart'; | |
| import 'package:provider/provider.dart'; | |
| void main() { | |
| runApp( | |
| ChangeNotifierProvider<AppData>( | |
| create: (context) => AppData(), | |
| builder: (context, child) => const MyApp(), | |
| ), | |
| ); |
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:flutter/material.dart'; | |
| import 'dart:convert'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); |
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:flutter/material.dart'; | |
| import 'dart:convert'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); |
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 | |
| ini_set('display_errors', 1); | |
| ini_set('display_startup_errors', 1); | |
| error_reporting(E_ALL); | |
| class AcmeClient | |
| { | |
| private $webDir; | |
| private $domain; | |
| private $accountEmail; |
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 | |
| class Attachment | |
| { | |
| private $allowedTypes = []; | |
| private $allowedSize; // Size in MB | |
| private $uploadPath; | |
| private $fileName; | |
| private $files; | |
| private $errors = []; |
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/bash | |
| # Ensure script is run as root | |
| local INST_USER=$(id -u) | |
| if [ $INST_USER != 0 ]; then | |
| echoR "Sorry, only the root user can install." | |
| echo | |
| exit 1 | |
| fi |
NewerOlder