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 /cli
/hello_world /fibonacci
/fizz_buzz
/hanoi /hanoi
/hello_v_js
/hello_world
/json /json
/links_scraper /links_scraper
/log /log
/news_fetcher
/rune
/terminal_control
/nbody /nbody
/spectral /news_fetcher
/database/mysql
/hello_v_js
/fibonacci
/sqlite
/path_tracing /path_tracing
/gg2 /quick_sort
/random_ips
/rune
/spectral
/terminal_control
*.ppm *.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() { fn main() {
mut s := '' mut s := ''
for n in 1 .. 101 { for n in 1 .. 101 {
if n % 3 == 0 { if n % 3 == 0 {
s += 'Fizz' s += 'Fizz'
} }
if n % 5 == 0 { if n % 5 == 0 {
s += 'Buzz' s += 'Buzz'
} }
if s == '' { if s == '' {
println(n) println(n)
} else { }
else {
println(s) println(s)
} }
s = '' s = ''
} }
} }

View File

@ -1 +1,2 @@
life 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!') 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