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
[ | |
{ | |
"code": "1", | |
"title": "Adalet Bakanlığı", | |
"link": "http://www.adalet.gov.tr/", | |
"tel": "03124177770", | |
"email": "[email protected]", | |
"adres": "Vekaletler Cad. Kızılay / ANKARA" | |
}, | |
{ |
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
[ | |
{ | |
"code": "1", | |
"title": "Adalet Bakanlığı", | |
"link": "http://www.adalet.gov.tr/", | |
"tel": "03124177770", | |
"email": "[email protected]", | |
"adres": "Vekaletler Cad. Kızılay / ANKARA" | |
}, | |
{ |
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:ui' as ui; | |
import 'package:another_brother/label_info.dart'; | |
import 'package:another_brother/printer_info.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:permission_handler_platform_interface/permission_handler_platform_interface.dart'; | |
import 'package:qr_flutter/qr_flutter.dart'; | |
void main() { | |
runApp(MyApp()); |
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
package com.berkanaslan; | |
import java.util.Scanner; | |
public class RecursivePermutation { | |
public static void main(String[] args) { | |
final String input = getInput(); | |
final String output = ""; | |
permute(input, output); |
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
class VisibilityController extends StatefulWidget { | |
final Widget child; | |
const VisibilityController({Key? key, required this.child}) : super(key: key); | |
@override | |
_VisibilityControllerState createState() { | |
return _VisibilityControllerState(); | |
} | |
} |
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
# Source: https://stackoverflow.com/a/43317244 | |
$path = ".\aws-ec2-key.pem" | |
# Reset to remove explict permissions | |
icacls.exe $path /reset | |
# Give current user explicit read-permission | |
icacls.exe $path /GRANT:R "$($env:USERNAME):(R)" | |
# Disable inheritance and remove inherited permissions | |
icacls.exe $path /inheritance:r |
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
MultiProvider setupProviders() { | |
return MultiProvider( | |
providers: [ | |
... | |
ChangeNotifierProvider<ConnectivityViewModel>( | |
create: (context) => ConnectivityViewModel(), | |
lazy: false, | |
), | |
... | |
], |
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
class ConnectivityViewModel with ChangeNotifier { | |
// ------------------------------------- | |
// Variables | |
// ------------------------------------- | |
ConnectivityResult _status; | |
ConnectivityResult get status => _status; | |
set status(ConnectivityResult status) { | |
_status = status; |
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
class ExitAlertDialog extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return AlertDialog( | |
title: Text('Çkış'), | |
content: Text("Çıkış yapmak istediğinizden emin misiniz?"), | |
actions: <Widget>[ | |
FlatButton( | |
onPressed: () { | |
Navigator.of(context).pop(false); |
NewerOlder