Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/TodePond/DreamBerd
Browse files Browse the repository at this point in the history
  • Loading branch information
TodePond committed Dec 29, 2024
2 parents 1cbb5e2 + d6aeabc commit 650148f
Show file tree
Hide file tree
Showing 18 changed files with 155 additions and 87 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"workbench.colorTheme": "Default High Contrast Light",
"editor.fontFamily": "'Wide Latin', 'Comic Sans MS', 'DejaVu Sans Serif', cursive, sans-serif",
"workbench.colorTheme": "Abyss",
//"editor.fontFamily": "'Wide Latin', 'Comic Sans MS', 'DejaVu Sans Serif', cursive, sans-serif",

"highlight.regexFlags": "gi",
"highlight.regexes": {
Expand Down
4 changes: 2 additions & 2 deletions Examples.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## New Examples
## Examples

You want to see the new examples? Did you even read all the new features of DreamBerd - e/acc? Or did you just skip straight to the examples? You should really learn the new features of DreamBerd - e/acc first.<br>
You want to see the examples? Did you even read all the features of DreamBerd? Or did you just skip straight to the examples? You should really learn the features of DreamBerd first.<br>

Please go back to the features page by following [this link](https://github.com/TodePond/DreamBerd/blob/main/README.md).<br>
When you have finished reading the features, you can find the _real_ examples [here](https://github.com/TodePond/DreamBerd/blob/main/res/Examples.md).
27 changes: 11 additions & 16 deletions LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Congratulations! You found the hidden examples page!

Here are some examples of DreamBerd - e/acc in action! Sorry - there aren't many.
Here are some examples of DreamBerd in action!

## Hello world

Expand All @@ -24,21 +24,6 @@ when (i < 20) i++!
i = 0!
```

## Keyboard

```java
const var keys = {}!
after ("keydown") e => keys[e.key] = true!
after ("keyup") e => keys[e.key] = false!

const var count = 0!

when (keys[" "] = true) {
count++!
"You've pressed the space bar {count} times"?
}
```

## Fibonacci

```java
Expand All @@ -57,6 +42,16 @@ when (i < 10) {
}
```

## Counter

```java
const var count = 0!
var const Button = <button></button>!
when count Button.textContent = Count: £{count}!
Button.addEventListener click => count++!
document.body.append Button!
```

## The Billion Dollar Mistake

```java
Expand Down
Loading

0 comments on commit 650148f

Please sign in to comment.