This file contains 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'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
This file contains 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
// ignore_for_file: implementation_imports | |
import 'package:flutter/material.dart'; | |
import 'package:graphic/graphic.dart'; | |
import 'package:graphic/src/guide/axis/radial.dart'; | |
import 'package:graphic/src/util/math.dart'; | |
/// A rectangle or sector shape with border. | |
class BorderedRectShape extends RectShape { | |
final double borderWidth; |
This file contains 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:developer'; | |
import 'package:flutter_displaymode/flutter_displaymode.dart'; | |
class DisplayModeUtil { | |
static Future<void> setOptimalDisplayMode() async { | |
final DisplayMode optimalDisplayMode = await _getOptimalDisplayMode(); | |
if (optimalDisplayMode != null) { | |
FlutterDisplayMode.setMode(optimalDisplayMode); |
This file contains 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
# Change to root user: | |
sudo su - | |
------------------------------------------------------------------------- | |
# Change to some user: | |
sudo su - username | |
sudo -i -u username |
This file contains 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 System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.ComponentModel.DataAnnotations; | |
namespace BikeStore.Models | |
{ | |
public class Bicycle | |
{ |
This file contains 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.compression.enabled=true | |
server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain,application/javascript,text/css |
This file contains 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
""" | |
Simple Python3 script that checks if your Dropbox Linux desktop client is running, and restarts it if it's stopped. | |
You may start the script from a systemd unit file, or execute it with another tool on system startup (eg. KDE autostart) | |
""" | |
import tkinter | |
from tkinter import messagebox | |
import subprocess | |
import time |