##Cheat Sheet
- detailyang's Cheat Sheet
- shadowbq's Cheat Sheet
- DZone
- Our Favorite Cheat Sheets
- quick reference sheets in one page
##Interview
/****************************************************************************** | |
Welcome to GDB Online. | |
GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby, | |
C#, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS | |
Code, Compile, Run and Debug online from anywhere in world. | |
https://onlinegdb.com/-sj3UGJm9 | |
*******************************************************************************/ |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, | |
title: 'Projem', |
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
// slayt linki: https://docs.google.com/presentation/d/1tuiMbSNSipgOyc-bp-_sTh3u7aCj0Wo07KV7eDAoDuM/ | |
// önceki ve çalışmayacak olan link: https://dartpad.dev/b6409e10de32b280b8938aa75364fa7b | |
// çalışan link | |
// 1. Sıralı ve hepsi zorunlu |
import 'dart:convert'; | |
import 'package:flutter/material.dart'; | |
main() => runApp(MaterialApp(home: LocalJsonKonusu())); | |
class LocalJsonKonusu extends StatefulWidget { | |
@override | |
State<StatefulWidget> createState() => LocaleState(); | |
} |
// Compiler => derleyici => mütercim | |
// main => ana | |
// işlem tanımlama | |
// 1. İşleme isim veriyoruz | |
// 2. a. işlem olduğunu belirtmek için parantez açıp kapatıyoruz | |
// 2. b. işlemde işlenmesini istediğimiz şey(ler) var ise bunları parantez içinde yazıyoruz. | |
// 3. yapılacak işleri süslü parantezler içine yazıyoruz |
void main() { | |
// String | |
print("tırnak içinde belirtilen verilerin tipi String'tir"); | |
// int | |
print(234.runtimeType); | |
// double | |
print(2.34.runtimeType); | |
// bool => boolean | |
// reserve edilmiş kelime veya kelime gruplar | |
// küçük büyük harf duyarlı |
// Dart bir yazılım dilidir. | |
// Flutter ise Dart dili kullanılarak hazırlanmış bir kod çerçevesidir (Framework). | |
// Arayüz UI -> (User interface) geliştirme aracıdır | |
// import içe al -> ithat et | |
// export dışa aktar -> ihracat yap | |
import 'package:flutter/material.dart'; | |
void main() { | |
// runApp -> uygulama çalıştır |
class Covid { | |
String? patients; | |
String? totalPatients; | |
String? deaths; | |
String? totalDeaths; | |
String? recovered; | |
String? totalRecovered; | |
String? totalIntubated; | |
String? totalIntensiveCare; |
// https://youtu.be/8ext9G7xspg?t=6715 | |
List findNextEmpty(List<List<int>> sudoku) { | |
for (int r = 0; r < 9; r++) { | |
for (int c = 0; c < 9; c++) { | |
if (sudoku[r][c] == 0) { | |
return [r, c]; | |
} | |
} | |
} |