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
| ls listeleme yapar | |
| ------ | |
| ls --help komut hakkında yardım | |
| ls -a (all)herşeyi gizli dosyaları | |
| ls -l (list)detaylı | |
| ls -la birden fazla parametre verilebilir | |
| ls -d dizinleri listeler | |
| [..] karakter dizisi | |
| * bütün karakterler | |
| ? tek karakter |
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
| const express = require('express') | |
| const app = express() | |
| const port = 3000 | |
| app.get('/', (req, res) => | |
| res.send('Hello World')) | |
| app.listen(port, () => console.log(`Proje ${port} portunda ayakta!`)) |
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
| const express = require('express') | |
| const app = express() | |
| const port = 3000 | |
| app.get('/', (req, res) => | |
| res.send('Hello World')) | |
| app.listen(port, () => console.log(`Proje ${port} portunda ayakta!`)) |
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
| alias ll='ls -l' | |
| alias la='ls -A' | |
| alias l='ls -CF' | |
| alias hg='history | grep ' | |
| alias c='clear' | |
| alias h='history' | |
| alias di='sudo dpkg -i ' | |
| alias install='sudo apt-get install ' | |
| alias update='sudo apt-get update ' |
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
| void main() { | |
| SharedPreferences.getInstance().then((prefs) { | |
| Color color = Color(0xFF56D4F9); //default renk | |
| if (prefs.getInt('color') != null) { //sharedPreferences'ta kayıtlı ise | |
| color = Color(prefs.getInt('color')); | |
| } | |
| runApp( | |
| ChangeNotifierProvider<ThemeNotifier>( | |
| create: (_) => ThemeNotifier(color), //kayıtlı olan rengi uygula | |
| child: MyApp(), |
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
| onColorChange: (color) async { | |
| var prefs = await SharedPreferences.getInstance(); | |
| prefs.setInt('color', color.value); | |
| themeColor.setColor(color); | |
| }, |
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
| onColorChange: (color){ | |
| themeColor.setColor(color); | |
| }, |
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
| onColorChange: (color) { | |
| setState(() { | |
| themeColor.setColor(color); | |
| }); | |
| }, |
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
| final themeColor = Provider.of<ThemeNotifier>(context); |
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
| runApp( | |
| ChangeNotifierProvider<ThemeNotifier>( | |
| create: (_) => ThemeNotifier(Color(0xFF56D4F9)), //Default renk | |
| child: MyApp(), | |
| ), | |
| ); |
NewerOlder