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
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(new HelloWorld()); | |
} | |
class HelloWorld extends StatefulWidget { | |
@override | |
_HelloWorldState createState() => _HelloWorldState(); | |
} | |
class _HelloWorldState extends State<HelloWorld> { |
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
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(new HelloWorld()); | |
} | |
class HelloWorld extends StatelessWidget { | |
String mytext = "Hello World"; | |
void goodbyeText(){ | |
this.mytext = "GoodBye World"; | |
print("inside goodbye text") ; |
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
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(new HelloWorldText()); | |
} | |
class HelloWorldText extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: Scaffold( |
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
import 'package:flutter/material.dart'; | |
void main() { | |
runApp( | |
Center( | |
child: Text( | |
'Hello, world!', | |
textDirection: TextDirection.ltr, | |
), | |
), | |
); |
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
import 'package:flutter/material.dart'; | |
void main() { | |
runApp( | |
Text( | |
'Hello, world!', | |
textDirection: TextDirection.ltr, | |
), | |
); | |
} |
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 (){ | |
print("start - please guess number"); | |
int secretNumber = 5; | |
int userNumber = 3; | |
if (userNumber < secretNumber) | |
print("my number is high"); | |
if (userNumber > secretNumber) | |
print("my number is low"); |
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
#Read this first - https://jontysinai.github.io/jekyll/update/2017/09/24/the-mcp-neuron.html | |
#Set The inputs and the desired Outputs for and gate. | |
x1,x2,y = [0,0,1,1],[0,1,0,1], [0,0,0,1] | |
#Set Random values for weights w1,w2 and for the bias b. initialize all to 0 | |
w1,w2,b = 0,0,0 | |
#try 100 iterations to see if the perceptron can guess that we need a fucking and gate. | |
for _ in range(100): | |
#iterate for each input: | |
for i in [0,1,2,3]: | |
#just guess a y value based on our random weights and bias |
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
# new topic | |
table(autolink: false) do | |
# Add label in config/locales/en.yml , filter is route of your admin, resource | |
admin: | |
filter: | |
buttons: | |
myfilter: "View Filter Results" |
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
table(autolink: false) do |
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
public class Lesson1neeraj{ | |
public static void main(String[] args){ | |
System.out.println("Hello "+args[0]);// array index out of bounds exception | |
} | |
} |