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
# Define the DHCP Server and the list of Scope IDs (Zones) | |
$dhcpServer = "MYSERVER" # Replace with the name or IP address of your DHCP server | |
$scopeIDs = @("10.2.0.0","10.3.0.0","192.168.0.0") # Add all subnets here | |
# Import the DHCP Server Module (in case it's not loaded) | |
Import-Module DhcpServer | |
# Function to convert lease time to Linux format, handling null values | |
function Convert-LeaseTime($leaseTime) { | |
if ($leaseTime -ne $null) { |
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
# Define the DHCP Server | |
$dhcpServer = "MYSERVER" # Replace with the name or IP address of your DHCP server | |
# Import the DHCP Server Module (in case it's not loaded) | |
Import-Module DhcpServer | |
# Output file for the Linux-compatible dhcpd.conf | |
$outputFile = "C:\dhcpd.conf" | |
# Clear the file if it exists, to avoid appending to old data |
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:get/get.dart'; | |
import 'package:dio/dio.dart'; | |
void main() { | |
runApp(GetMaterialApp( | |
initialRoute: '/home', | |
getPages: [ | |
GetPage( | |
name: '/home', |
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
class GradientAppBar extends StatelessWidget { | |
final String title; | |
final double barHeight = 66.0; | |
GradientAppBar(this.title); | |
@override | |
Widget build(BuildContext context) { | |
final double statusBarHeight = MediaQuery.of(context).padding.top; |
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
MaterialColor createMaterialColor(Color color) { | |
List strengths = <double>[.05]; | |
Map swatch = <int, Color>{}; | |
final int r = color.red, g = color.green, b = color.blue; | |
for (int i = 1; i < 10; i++) { | |
strengths.add(0.1 * i); | |
} | |
strengths.forEach((strength) { | |
final double ds = 0.5 - strength; |
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
using System; | |
using MonoTouch.MapKit; | |
using MonoTouch.CoreLocation; | |
using System.Drawing; | |
using MonoTouch.Foundation; | |
namespace BinaryQuest | |
{ | |
[Register("MKMapViewZoomLevel")] | |
public class MKMapViewZoomLevel : MKMapView |