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: 'Physics Animation', |
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'; | |
class GradientPractice extends StatefulWidget { | |
_GradientPractice createState() => _GradientPractice(); | |
} | |
class _GradientPractice extends State<GradientPractice> { | |
List<Color> _colors = [Colors.deepOrange, Colors.yellow]; | |
List<double> _stops = [0.0, 0.7]; |
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/animation.dart'; | |
class CustomPainterPractice extends StatefulWidget { | |
@override | |
_CustomPainterPracticeState createState() => _CustomPainterPracticeState(); | |
} | |
class _CustomPainterPracticeState extends State<CustomPainterPractice> | |
with SingleTickerProviderStateMixin { |
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
#!/usr/local/bin/python | |
import sys | |
import sqlite3 | |
from random import shuffle | |
from random import randint | |
class simplePS: | |
howto = ''' | |
create: Creates a rrandom password. |
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 math | |
import turtle | |
from random import randint | |
def draw_list(turtle, coords, color): | |
for coord in coords: | |
draw_circle(turtle, color, 3, coord[0], coord[1]) | |
def draw_circle(turtle, color, size, x, y): | |
turtle.penup() |