Skip to content

Commit 14f231a

Browse files
authored
Merge branch 'builtree:master' into master
2 parents b827b01 + f8ac044 commit 14f231a

34 files changed

+1746
-1341
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docs
1+
name: Build docs with Simulate for Web
22
on:
33
workflow_dispatch:
44
jobs:
@@ -11,6 +11,11 @@ jobs:
1111
with:
1212
python-version: '3.7'
1313
architecture: 'x64'
14+
- uses: subosito/flutter-action@v1
15+
with:
16+
channel: 'stable'
17+
- run: flutter pub get
18+
- run: flutter build web --release --base-href /simulate/web/
1419
- name: Install dependencies
1520
run: |
1621
python3 -m pip install --upgrade pip
@@ -26,6 +31,5 @@ jobs:
2631
run: mkdocs build
2732
- name: Add latest web build and deploy
2833
run: |
29-
git clone -b web https://github.com/cod-ed/simulate web
30-
mv web/web/ site/
34+
mv build/web/ site/
3135
mkdocs gh-deploy --dirty

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[submodule "site"]
22
path = site
3-
url = https://github.com/cod-ed/simulate.git
3+
url = https://github.com/builtree/simulate.git
44
branch = gh-pages

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center">
2-
<a href="https://github.com/cod-ed/simulate">
3-
<img src="https://raw.githubusercontent.com/cod-ed/assets/simulate/documentation/SimulateTitle.svg" width=40%>
2+
<a href="https://github.com/builtree/simulate">
3+
<img src="https://raw.githubusercontent.com/builtree/assets/simulate/documentation/SimulateTitle.svg" width=40%>
44
</img>
55
</a>
66
</p>
@@ -9,11 +9,11 @@
99

1010
Welcome to Simulate! Simulate aims to be a collection of simulations and visualizations from various domains like mathematics, physics, computer science etc. in a cross platform app made using [Flutter](https://flutter.dev/).
1111

12-
You can find out more about Simulate and how it works or how you can share ideas and contribute to the project [here](https://cod-ed.github.io/simulate/).
12+
You can find out more about Simulate and how it works or how you can share ideas and contribute to the project [here](https://builtree.github.io/simulate/).
1313

1414
<p align="center">
15-
<a href="https://cod-ed.github.io/simulate/web">
16-
<img src="https://raw.githubusercontent.com/cod-ed/assets/simulate/documentation/LaunchWebApp.svg" width=200px>
15+
<a href="https://builtree.github.io/simulate/web">
16+
<img src="https://raw.githubusercontent.com/builtree/assets/simulate/documentation/LaunchWebApp.svg" width=200px>
1717
</img>
1818
</a>
1919
</p>
@@ -29,4 +29,4 @@ Some pre-requisites:
2929
3. Don't hesitate in asking questions, we'll be happy to help
3030

3131

32-
All further guidelines can be found [here](https://cod-ed.github.io/simulate/contributing).
32+
All further guidelines can be found [here](https://builtree.github.io/simulate/contributing).

docs/contributing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ git checkout -b [BRANCH NAME]
3232

3333
#### Adding a new Simulation:
3434

35-
1. Got an idea? Discuss the idea on [gitter](https://gitter.im/codEd-org/simulate#) or just open an issue with this [template](https://github.com/cod-ed/simulate/issues/new?assignees=&labels=enhancement%2C+new+simulation%2C+simulations&template=simulation-request.md&title=simulation%3A+%5BSIMULATION+TITLE%5D). If the maintainers find it interesting, the issue will be labeled accepted. If you want to work on it and don't know how to implement it yet, we'll help you get it done.
36-
2. Even if you don't have an idea but are interested in working on one, checkout the [accepted simulation ideas](https://github.com/cod-ed/simulate/issues?q=is%3Aopen+is%3Aissue+label%3Aaccepted+label%3A%22new+simulation%22) and get assigned.
35+
1. Got an idea? Discuss the idea on [gitter](https://gitter.im/codEd-org/simulate#) or just open an issue with this [template](https://github.com/builtree/simulate/issues/new?assignees=&labels=enhancement%2C+new+simulation%2C+simulations&template=simulation-request.md&title=simulation%3A+%5BSIMULATION+TITLE%5D). If the maintainers find it interesting, the issue will be labeled accepted. If you want to work on it and don't know how to implement it yet, we'll help you get it done.
36+
2. Even if you don't have an idea but are interested in working on one, checkout the [accepted simulation ideas](https://github.com/builtree/simulate/issues?q=is%3Aopen+is%3Aissue+label%3Aaccepted+label%3A%22new+simulation%22) and get assigned.
3737
3. You can start working now! Make sure you ask for help when needed, it's okay to get stuck.
3838

3939
---

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Welcome to Simulate! Simulate aims to be a collection of simulations and visualizations from various domains like mathematics, physics, computer science etc. in a cross platform app made using [Flutter](https://flutter.dev/). The outcomes of these simulations mostly are really smooth (thanks to Flutter) and extremely beautiful (thanks to mathematics/sciences behind it).
55

66
<center>
7-
[![Simulate for Web](https://raw.githubusercontent.com/cod-ed/assets/simulate/documentation/LaunchWebApp.svg){: style="width:300px"}](https://cod-ed.github.io/simulate/web){: target="_blank"}
7+
[![Simulate for Web](https://raw.githubusercontent.com/builtree/assets/simulate/documentation/LaunchWebApp.svg){: style="width:300px"}](https://builtree.github.io/simulate/web){: target="_blank"}
88
</center>
99

1010
---

docs/simulations/algorithms/ToothpickPattern.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Toothpick Pattern
22
---
3-
![ToothpickPatternLight](https://raw.githubusercontent.com/cod-ed/simulate/master/assets/simulations/ToothpickPatternLight.png){: style="height:200px", align=right}
3+
![ToothpickPatternLight](https://raw.githubusercontent.com/builtree/simulate/master/assets/simulations/ToothpickPatternLight.png){: style="height:200px", align=right}
44

55
<p align="justify">
66
The toothpick sequence in geometry is a 2D pattern sequence which is based on the previous
@@ -21,10 +21,10 @@ different colour than the rest of the pattern.
2121
[^1]: https://en.wikipedia.org/wiki/Ulam%E2%80%93Warburton_automaton
2222

2323
=== "Light Mode"
24-
![ToothpickPatternLight](https://raw.githubusercontent.com/cod-ed/assets/simulate/simulations/ToothpickPatternLight.png){: style="width:300px"}
24+
![ToothpickPatternLight](https://raw.githubusercontent.com/builtree/assets/simulate/simulations/ToothpickPatternLight.png){: style="width:300px"}
2525

2626
=== "Dark Mode"
27-
![ToothpickPatternDark](https://raw.githubusercontent.com/cod-ed/assets/simulate/simulations/ToothpickPatternDark.png){: style="width:300px"}
27+
![ToothpickPatternDark](https://raw.githubusercontent.com/builtree/assets/simulate/simulations/ToothpickPatternDark.png){: style="width:300px"}
2828

2929
!!! tip "Fun Fact"
3030
The toothpick is considered such an essential that even Swiss Army knives - a popular brand of multi-function tools - have included one in their product

docs/simulations/index.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
| Simulation | Category | Description | Image |
44
| :---------------: | :---------------: | :---------------: | :---------------: |
5-
| Bubble Sort (Bars) | Algorithms | Bubble sort is a sorting algorithm that repeatedly steps through the list by comparing adjacent elements and swaps them if they are in the wrong order | ![Bubble Sort](https://raw.githubusercontent.com/cod-ed/simulate/master/assets/simulations/BubbleSortLight.png) |
6-
| Epicycloid Pattern(Pencil of Lines) | Mathematics | a.k.a hypercycloid, is a plane curve created by tracing a chosen point on the edge of a circle of radius r rolling on the outside of a circle of radius R | ![Epicycloid Pattern](https://raw.githubusercontent.com/cod-ed/assets/simulate/icons/Epicycloid1Light.png) |
7-
| Epicycloid Curve | Mathematics | a.k.a hypercycloid, is a plane curve created by tracing a chosen point on the edge of a circle of radius r rolling on the outside of a circle of radius R | ![Epicycloid Curve](https://raw.githubusercontent.com/cod-ed/assets/simulate/icons/EpicycloidLight.png) |
8-
| [Fourier Series](mathematics/FourierSeries.md) | Mathematics | A Fourier series is an expansion of a periodic function in terms of an infinite sum of sines and cosines | ![Fourier Series](https://raw.githubusercontent.com/cod-ed/assets/simulate/icons/FourierSeriesLight.png) |
9-
| Insertion Sort (Bars) | Algorithms | Insertion sort is a sorting algorithm that builds the final list one item at a time | ![Insertion Sort](https://raw.githubusercontent.com/cod-ed/simulate/master/assets/simulations/InsertionSortLight.png) |
10-
| [Lissajous Pattern](mathematics/LissajousPattern.md)| Mathematics | Lissajous pattern is generated by the junction of a pair of sinusoidal waves with axes that are perpendicular to one another |![Lissajous Pattern](https://raw.githubusercontent.com/cod-ed/assets/simulate/icons/LissajousCurveLight.png) |
11-
| [Maurer Rose Pattern](mathematics/MaurerRosePattern.md) | Mathematics | A Maurer Rose is a polygonal curve with vertices on a rose and can be described as a closed route in the polar plane | ![MaurerRose Pattern](https://raw.githubusercontent.com/cod-ed/assets/simulate/icons/MaurerRoseLight.png) |
12-
| Rose Pattern | Mathematics | A Rose pattern is generated by the junction of sinusoids plotted in polar coordinates | ![Rose Pattern](https://raw.githubusercontent.com/cod-ed/assets/simulate/icons/RosePatternLight.png) |
13-
| [Toothpick Pattern](algorithms/ToothpickPattern.md) | Algorithms | A Toothpick pattern is a sequence of 2D patterns formed by repeatedly adding line segments or _toothpicks_ to the previous pattern in the sequence. It starts with a single line segment | ![Toothpick Pattern](https://raw.githubusercontent.com/cod-ed/simulate/master/assets/simulations/ToothpickPatternLight.png) |
5+
| Bubble Sort (Bars) | Algorithms | Bubble sort is a sorting algorithm that repeatedly steps through the list by comparing adjacent elements and swaps them if they are in the wrong order | ![Bubble Sort](https://raw.githubusercontent.com/builtree/simulate/master/assets/simulations/BubbleSortLight.png) |
6+
| Epicycloid Pattern(Pencil of Lines) | Mathematics | a.k.a hypercycloid, is a plane curve created by tracing a chosen point on the edge of a circle of radius r rolling on the outside of a circle of radius R | ![Epicycloid Pattern](https://raw.githubusercontent.com/builtree/assets/simulate/icons/Epicycloid1Light.png) |
7+
| Epicycloid Curve | Mathematics | a.k.a hypercycloid, is a plane curve created by tracing a chosen point on the edge of a circle of radius r rolling on the outside of a circle of radius R | ![Epicycloid Curve](https://raw.githubusercontent.com/builtree/assets/simulate/icons/EpicycloidLight.png) |
8+
| [Fourier Series](mathematics/FourierSeries.md) | Mathematics | A Fourier series is an expansion of a periodic function in terms of an infinite sum of sines and cosines | ![Fourier Series](https://raw.githubusercontent.com/builtree/assets/simulate/icons/FourierSeriesLight.png) |
9+
| Insertion Sort (Bars) | Algorithms | Insertion sort is a sorting algorithm that builds the final list one item at a time | ![Insertion Sort](https://raw.githubusercontent.com/builtree/simulate/master/assets/simulations/InsertionSortLight.png) |
10+
| [Lissajous Pattern](mathematics/LissajousPattern.md)| Mathematics | Lissajous pattern is generated by the junction of a pair of sinusoidal waves with axes that are perpendicular to one another |![Lissajous Pattern](https://raw.githubusercontent.com/builtree/assets/simulate/icons/LissajousCurveLight.png) |
11+
| [Maurer Rose Pattern](mathematics/MaurerRosePattern.md) | Mathematics | A Maurer Rose is a polygonal curve with vertices on a rose and can be described as a closed route in the polar plane | ![MaurerRose Pattern](https://raw.githubusercontent.com/builtree/assets/simulate/icons/MaurerRoseLight.png) |
12+
| Rose Pattern | Mathematics | A Rose pattern is generated by the junction of sinusoids plotted in polar coordinates | ![Rose Pattern](https://raw.githubusercontent.com/builtree/assets/simulate/icons/RosePatternLight.png) |
13+
| [Toothpick Pattern](algorithms/ToothpickPattern.md) | Algorithms | A Toothpick pattern is a sequence of 2D patterns formed by repeatedly adding line segments or _toothpicks_ to the previous pattern in the sequence. It starts with a single line segment | ![Toothpick Pattern](https://raw.githubusercontent.com/builtree/simulate/master/assets/simulations/ToothpickPatternLight.png) |

docs/simulations/mathematics/FourierSeries.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Fourier Series
22
---
3-
![FourierSeries](https://raw.githubusercontent.com/cod-ed/simulate/master/assets/simulations/FourierSeriesLight.png){: style="height:200px", align=right}
3+
![FourierSeries](https://raw.githubusercontent.com/builtree/simulate/master/assets/simulations/FourierSeriesLight.png){: style="height:200px", align=right}
44

55
<p align="justify">
66
A Fourier transform is a way of breaking down a complex function into (infinite) sums of sine and cosine waves. In short, given a smoothie, it finds its recipe. Fourier series is the Fourier transform of a periodic function and it aims to represent the periodic function as a sum of sinusoidal waves. It is analogous to the Taylor series, which represents functions as an infinite sum of monomial terms.</p>
@@ -31,8 +31,8 @@ We have the flexibility to fiddle with the following parameters:
3131
[^2]: https://upload.wikimedia.org/wikipedia/commons/1/1e/Fourier_series_sawtooth_wave_circles_animation.svg
3232

3333
=== "Light Mode"
34-
![FourierSeriesLight](https://raw.githubusercontent.com/cod-ed/assets/simulate/simulations/FourierSeriesLight.png){: style="width:600px"}
34+
![FourierSeriesLight](https://raw.githubusercontent.com/builtree/assets/simulate/simulations/FourierSeriesLight.png){: style="width:600px"}
3535

3636
=== "Dark Mode"
37-
![FourierSeriesDark](https://raw.githubusercontent.com/cod-ed/assets/simulate/simulations/FourierSeriesDark.png){: style="width:600px"}
37+
![FourierSeriesDark](https://raw.githubusercontent.com/builtree/assets/simulate/simulations/FourierSeriesDark.png){: style="width:600px"}
3838

docs/simulations/mathematics/LissajousPattern.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Lissajous Pattern
22
---
3-
![LissajousPatternLight](https://raw.githubusercontent.com/cod-ed/simulate/master/assets/simulations/LissajousCurveLight.png){: style="height:200px", align=right}
3+
![LissajousPatternLight](https://raw.githubusercontent.com/builtree/simulate/master/assets/simulations/LissajousCurveLight.png){: style="height:200px", align=right}
44

55
<p align="justify">
66
A Lissajous curve in mathematics, also known as Lissajous Figure or Bowditch curve is the
@@ -16,10 +16,10 @@ $a:b$. For a ratio of $1$, and $δ = \frac{π}{2} radians$, the figure is a *cir
1616
Another simple Lissajous figure is the *parabola* $(\frac{b}{a} = 2, δ = \frac{π}{4})$.
1717

1818
=== "Light Mode"
19-
![LissajousPatternLight](https://raw.githubusercontent.com/cod-ed/assets/simulate/simulations/LissajousCurveLight.png){: style="width:300px"}
19+
![LissajousPatternLight](https://raw.githubusercontent.com/builtree/assets/simulate/simulations/LissajousCurveLight.png){: style="width:300px"}
2020

2121
=== "Dark Mode"
22-
![LissajousPatternDark](https://raw.githubusercontent.com/cod-ed/assets/simulate/simulations/LissajousCurveDark.png){: style="width:300px"}
22+
![LissajousPatternDark](https://raw.githubusercontent.com/builtree/assets/simulate/simulations/LissajousCurveDark.png){: style="width:300px"}
2323

2424
!!! tip "Fun Fact"
2525
The title sequence by John Whitney for Alfred Hitchcock's 1958 film Vertigo is based on Lissajous figures.

docs/simulations/mathematics/MaurerRosePattern.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Maurer Rose Pattern
22
---
3-
![MaurerRoseLight](https://raw.githubusercontent.com/cod-ed/simulate/master/assets/simulations/MaurerRoseLight.png){: style="height:200px", align=right}
3+
![MaurerRoseLight](https://raw.githubusercontent.com/builtree/simulate/master/assets/simulations/MaurerRoseLight.png){: style="height:200px", align=right}
44

55
A Maurer rose of the rose $r = sin(nθ)$ consists of the 360 lines successively connecting the mentioned below
66
361 points, where $n$ is a positive integer. The rose has $n$ petals if $n$ is odd, and $2n$ petals if $n$ is even.
@@ -18,7 +18,7 @@ A Maurer rose can be described as a closed route in the polar plane.
1818
A Maurer rose is a closed curve since the starting point, $(0, 0)$ and the ending point, $(sin(n·360d), 360d)$, coincide.
1919

2020
=== "Light Mode"
21-
![MaurerRoseLight](https://raw.githubusercontent.com/cod-ed/assets/simulate/simulations/MaurerRoseLight.png){: style="width:300px"}
21+
![MaurerRoseLight](https://raw.githubusercontent.com/builtree/assets/simulate/simulations/MaurerRoseLight.png){: style="width:300px"}
2222

2323
=== "Dark Mode"
24-
![MaurerRoseDark](https://raw.githubusercontent.com/cod-ed/assets/simulate/simulations/MaurerRoseDark.png){: style="width:300px"}
24+
![MaurerRoseDark](https://raw.githubusercontent.com/builtree/assets/simulate/simulations/MaurerRoseDark.png){: style="width:300px"}

ios/Flutter/flutter_export_environment.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

lib/generated_plugin_registrant.dart

Lines changed: 0 additions & 18 deletions
This file was deleted.

lib/main.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'package:flutter/material.dart';
2-
import 'package:flutter/cupertino.dart';
32
import 'package:simulate/src/home.dart';
43
import 'package:provider/provider.dart';
54
import 'package:simulate/src/data/simulations.dart';

0 commit comments

Comments
 (0)