examples: reorganize

pull/4088/head
Alexey 2020-03-21 11:47:38 +03:00 committed by GitHub
parent e57804e6c2
commit a5c0d89c71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 40 additions and 40 deletions

26
examples/.gitignore vendored
View File

@ -1,23 +1,19 @@
/cli
/hello_world
/fibonacci
/fizz_buzz
/hanoi
/hello_v_js
/hello_world
/json
/links_scraper
/log
/news_fetcher
/rune
/terminal_control
/nbody
/spectral
/database/mysql
/hello_v_js
/fibonacci
/sqlite
/news_fetcher
/path_tracing
/gg2
/quick_sort
/random_ips
/rune
/spectral
/terminal_control
*.ppm
empty_gg_freetype
game_of_life/life_gg
random_ips
vweb/vweb_example
x64/hello_world

2
examples/database/.gitignore vendored 100644
View File

@ -0,0 +1,2 @@
mysql
sqlite

View File

@ -1,21 +1,18 @@
fn main() {
mut s := ''
for n in 1 .. 101 {
if n % 3 == 0 {
s += 'Fizz'
}
if n % 5 == 0 {
s += 'Buzz'
}
if s == '' {
println(n)
} else {
}
else {
println(s)
}
s = ''
}
}

View File

@ -1 +1,2 @@
life
life_gg

2
examples/gg/.gitignore vendored 100644
View File

@ -0,0 +1,2 @@
/gg_freetype
/gg2

View File

@ -1,2 +1 @@
println('Hello, World!')

View File

@ -0,0 +1 @@
main

View File

@ -0,0 +1 @@
tvintris

View File

@ -1 +1 @@
test_app
vweb_example

1
examples/x64/.gitignore vendored 100644
View File

@ -0,0 +1 @@
hello_world