Skip to content

Instantly share code, notes, and snippets.

View dJani97's full-sized avatar
💭
Fluttering...

János Dobszai dJani97

💭
Fluttering...
  • Flutter Developer at UpScale
  • Pécs, Hungary
  • 14:48 (UTC +02:00)
View GitHub Profile
@dJani97
dJani97 / main.dart
Last active April 22, 2022 15:47
Flutter cat scroller
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@dJani97
dJani97 / bordered_rect_shape.dart
Created March 8, 2022 07:35
BorderedRectShape for the Flutter Graphic charting library
// 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;
@dJani97
dJani97 / display_mode_util.dart
Created March 28, 2021 13:44
flutter_displaymode helper class
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);
@dJani97
dJani97 / Access
Last active January 11, 2019 12:28 — forked from dariadobsai/Helper files
RedHat RHCSA common workflows
# Change to root user:
sudo su -
-------------------------------------------------------------------------
# Change to some user:
sudo su - username
sudo -i -u username
@dJani97
dJani97 / Bicycle.cs
Last active December 10, 2018 01:42
C# snippets for Software Engineering class
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
namespace BikeStore.Models
{
public class Bicycle
{
@dJani97
dJani97 / gist:d0f448f45272332ec9b31790389673b1
Created June 3, 2018 18:31
Configuring GZIP in Embedded Tomcat
server.compression.enabled=true
server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain,application/javascript,text/css
@dJani97
dJani97 / isDropboxRunning.py
Last active February 16, 2018 16:17
Dropbox Restarter
"""
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