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( | |
title: 'Material App', | |
home: Page1(), |
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'; | |
import 'package:flutter/physics.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Material App', |
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/services.dart'; | |
import 'package:rive/rive.dart'; | |
import 'package:flutter/material.dart'; | |
class MyRiveWidget extends StatefulWidget { | |
final String riveFile; | |
final String animationName; | |
final BoxFit fit; | |
const MyRiveWidget({ |
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:expansion_card/expansion_card.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:speed_reader/widgets/rive_widget/rive_widget.dart'; | |
String text = | |
'Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes oContrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lore |
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 string | |
import random | |
# * https://docs.python.org/3/library/string.html | |
letters_lowercase = string.ascii_lowercase | |
letters_uppercase = string.ascii_uppercase | |
numbers = string.digits | |
length = 8 | |
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 random | |
def sayi_uret(s=1, f=49, c=6): | |
numbers = set() | |
while len(numbers) < c: | |
numbers.add(random.randrange(s, f)) | |
return numbers | |
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
% Aşağıdaki lineer olmayan bir denklem verilmektedir. | |
% f(x)=e^(-x)-x | |
% Denkleminin köklerini hem grafik yöntemi hem de Fixed Point yöntemi ile çözen programı yazınız. x1 =0, tol=0.01 bitirme koşulu olarak abs(x2-x1) <tol ifadesini kullanınız. | |
clc; clear; close all; | |
fprintf('Fixed Point yontemi kullanarak f(x)=e^(-x)-x denkleminin koklerini bulmak\n'); | |
%Bilir kişinin verdiği değerler verdiğiniz değerler |
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
clc; clear; close all; format('long', 'g'); | |
fprintf("Gauss Seidel\n3x-0.1y-0.2z = 7.85 AND\n 0.1x+7y-0.3z = -19.3 AND\n 0.3x-0.2y+10z = 71.4 AND\n if error_x < 0.01 break; \n\n"); | |
index = 1; | |
x(index) = 0; | |
y(index) = 0; | |
z(index) = 0; | |
error_x = 9999; | |
while error_x(index) >= 0.01 | |
x(index + 1) = (7.85 + 0.1 * y(index) + 0.2 * z(index)) / 3; |
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
clc; clear; close all; | |
fprintf("Jacobi iter. x^2 - 2 * x - y = .5 AND x^2 + 4 * y^2 = 4 \n"); | |
x_0 = 0; | |
y_0 = 0; | |
E = 1.0E-4; | |
fprintf("i x_1 y_1 error_x error_y \n"); | |
for index = 1:100 | |
x_1 = (x_0^2 - y_0 + .5) / 2; | |
y_1 = sqrt((4 - x_0^2) / 4); | |
error_x = abs(x_1 - x_0); |
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
#include <iostream> | |
#include <fstream> | |
#include <string> | |
void readFile(){ | |
std::fstream file; | |
file.open(R"(C:\Users\emrep\Documents\everyday\cpp\one_day\a.txt)", std::ios::out); | |
std::string line; | |
//std::cout << line << std::endl; | |
std::streambuf* stream_buffer_cout = std::cout.rdbuf(); |
OlderNewer