Skip to content

Commit

Permalink
Making Samples executable. #!/usr/bin/env io and chmod a+x *.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Wright committed May 27, 2007
1 parent 2bcea09 commit 4b665d9
Show file tree
Hide file tree
Showing 156 changed files with 293 additions and 30 deletions.
2 changes: 2 additions & 0 deletions addons/AVCodec/samples/mp3filestream.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io


AudioMixer := Object clone do(
init := method(
Expand Down
2 changes: 2 additions & 0 deletions addons/AVCodec/samples/mp3netstream.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io


AudioDevice open

Expand Down
2 changes: 2 additions & 0 deletions addons/AVCodec/samples/server.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io


Server clone do(
setPort(8000)
Expand Down
2 changes: 2 additions & 0 deletions addons/AVCodec/samples/video.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

VideoDecoder := AVCodec clone do(
newSlot("internalCoro")
newSlot("externalCoro")
Expand Down
4 changes: 3 additions & 1 deletion addons/AVCodec/samples/video2.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

Flux

VideoApp := Application clone do(
Expand All @@ -11,4 +13,4 @@ VideoApp := Application clone do(
)
)

VideoApp run
VideoApp run
2 changes: 2 additions & 0 deletions addons/AppleExtras/samples/pong.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io


AppleSensors do(
lastLeft := 0
Expand Down
2 changes: 2 additions & 0 deletions addons/AppleExtras/samples/roller.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

Ball := Object clone do(
appendProto(OpenGL)
position := vector(25,0)
Expand Down
4 changes: 3 additions & 1 deletion addons/AppleExtras/samples/test.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io


loop(
l := AppleSensors getLeftLightSensor
Expand All @@ -13,4 +15,4 @@ loop(
writeln("-------------------------")
//TimerEvent waitOn(1)
//if (b != -1, AppleSensors setDisplayBrightness(1 - (b/1300)))
)
)
1 change: 0 additions & 1 deletion addons/AsyncRequest/samples/test.io

This file was deleted.

2 changes: 2 additions & 0 deletions addons/CFFI/samples/LibC.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

/* CFFI - A C function interface for Io
Copyright (c) 2006 Trevor Fancher. All rights reserved.
All code licensed under the New BSD license.
Expand Down
2 changes: 2 additions & 0 deletions addons/ContinuedFraction/samples/Sample.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

/* Example usages of ContinuedFraction */

cf := ContinuedFraction with(2) + SQRT with(2) + SQRT with(3) + E
Expand Down
1 change: 1 addition & 0 deletions addons/Contracts/build.io
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
AddonBuilder clone do(
disable # uses Message attached which doesn't exist any more
)
3 changes: 3 additions & 0 deletions addons/Contracts/samples/Sample.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env io

/* Example usages of Contracts */
Contracts

/* This method only accepts numbers */
onlyNumbers := contract(a, b,
Expand Down
2 changes: 1 addition & 1 deletion addons/Curses/samples/browser.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/local/bin/ioServer
#!/usr/bin/env io

Curses do(
begin
Expand Down
2 changes: 1 addition & 1 deletion addons/Curses/samples/cli.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/local/bin/ioServer
#!/usr/bin/env io

Curses do(
begin
Expand Down
2 changes: 1 addition & 1 deletion addons/Curses/samples/docsbrowser.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/local/bin/ioServer
#!/usr/bin/env io

Curses do(
begin
Expand Down
2 changes: 2 additions & 0 deletions addons/DBI/samples/benchmark.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

recCount := if(args at(1), args at(1) asNumber, 50000)

c := DBI with("sqlite3")
Expand Down
2 changes: 2 additions & 0 deletions addons/DBI/samples/driver_info.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

showInfo := method(d,
(" Name: " .. d at(0)) println
(" Description: " .. d at(1)) println
Expand Down
2 changes: 2 additions & 0 deletions addons/DBI/samples/dummydata.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

createDummyData := method(c,
c execute("BEGIN TRANSACTION")
c execute("""CREATE TABLE people (id integer, first varchar(15),
Expand Down
2 changes: 2 additions & 0 deletions addons/DBI/samples/fetchobj.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

doFile("dummydata.io")

c := DBI with("sqlite3")
Expand Down
2 changes: 2 additions & 0 deletions addons/DBI/samples/queryOne.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

doFile("dummydata.io")

c := DBI with("sqlite3")
Expand Down
2 changes: 2 additions & 0 deletions addons/DBI/samples/simple.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

doFile("dummydata.io")

c := DBI with("sqlite3") // pgsql, mysql, sqlite, sqlite3, etc
Expand Down
2 changes: 2 additions & 0 deletions addons/Flux/samples/Calculator/Calc.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

/* Io Calculator - 2004 Mike Austin */

Flux
Expand Down
2 changes: 2 additions & 0 deletions addons/Flux/samples/China/china.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

// china.io
// A program for playing Chinese Checkers
// The program requires IoDesktop.
Expand Down
1 change: 1 addition & 0 deletions addons/Flux/samples/Debugger/debug.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env io

autoImportResources

Expand Down
2 changes: 1 addition & 1 deletion addons/Flux/samples/Debugger/menu.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!./ioServer
#!/usr/bin/env io

writebr := method(
thisMessage arguments foreach(arg, write(sender doMessage(arg)))
Expand Down
1 change: 1 addition & 0 deletions addons/Flux/samples/Diagram/main.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env io

Flux

Expand Down
1 change: 1 addition & 0 deletions addons/Flux/samples/FileBrowser/main.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env io

Flux

Expand Down
2 changes: 2 additions & 0 deletions addons/Flux/samples/IRC/main.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

//debugCollector := 1

//write("launchPath = '", launchPath, "'\n")
Expand Down
2 changes: 2 additions & 0 deletions addons/Flux/samples/Mix/Mix.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

// an AudioPad inspired demo
// Steve Dekorte, 2003

Expand Down
1 change: 1 addition & 0 deletions addons/Flux/samples/Self/main.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env io

Flux

Expand Down
1 change: 1 addition & 0 deletions addons/Flux/samples/SheetTest/main.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env io

Flux

Expand Down
1 change: 1 addition & 0 deletions addons/Flux/samples/Slideshow/main.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env io

Flux

Expand Down
2 changes: 2 additions & 0 deletions addons/Flux/samples/SongJam/main.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

//debugCollector := 1

autoImportResources
Expand Down
2 changes: 2 additions & 0 deletions addons/Flux/samples/Test/main.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

Flux

/*
Expand Down
2 changes: 2 additions & 0 deletions addons/Flux/samples/Test/main2.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

Flux

Controller := Object clone do(
Expand Down
2 changes: 1 addition & 1 deletion addons/Font/samples/Terminal.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

#!/usr/bin/env io

Terminal := GLApp clone
Terminal do(
Expand Down
2 changes: 2 additions & 0 deletions addons/Font/samples/fontTest.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

// fontTest.io
// Written by Jon Kleiser, 12-Dec-2006
// Based on IoDesktop/FreeType/_tests/test.io
Expand Down
2 changes: 2 additions & 0 deletions addons/Font/samples/slides.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

// [reg:~/IoProject/Io/binaries] steve% ./ioDesktop ../bindings/Font/_tests/slides.io

//doFile(Path with(launchPath, "GLApp.io"))
Expand Down
2 changes: 2 additions & 0 deletions addons/Font/samples/test.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io


monoFont := Font clone open("resources/library/fonts/Vera/Mono/Bold.ttf") setPixelSize(12)
writeln("top1")
Expand Down
1 change: 1 addition & 0 deletions addons/Font/samples/test2.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env io

sansFontBig := Font clone open("resources/library/fonts/Free/Sans/Bold.ttf") setPixelSize(200)
sansFontMedium := Font clone open("resources/library/fonts/Free/Sans/Bold.ttf") setPixelSize(25)
Expand Down
2 changes: 2 additions & 0 deletions addons/GLFW/samples/lesson01.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

# Port of http://glfw.sourceforge.net/tutorials/lesson01/lesson01.html

appendProto(GLFW)
Expand Down
2 changes: 2 additions & 0 deletions addons/GLFW/samples/lesson02.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

# Port of http://glfw.sourceforge.net/tutorials/lesson02/lesson02.html

appendProto(GLFW)
Expand Down
2 changes: 2 additions & 0 deletions addons/GLFW/samples/lesson03.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

# Port of http://glfw.sourceforge.net/tutorials/lesson03/lesson03.html

appendProto(GLFW)
Expand Down
2 changes: 2 additions & 0 deletions addons/GLFW/samples/lesson04.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

# Port of http://glfw.sourceforge.net/tutorials/lesson04/lesson04.html

appendProto(GLFW)
Expand Down
2 changes: 2 additions & 0 deletions addons/GLFW/samples/lesson05.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

# Port of http://glfw.sourceforge.net/tutorials/lesson05/lesson05.html

appendProto(GLFW)
Expand Down
2 changes: 2 additions & 0 deletions addons/GLFW/samples/lesson06.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

# Port of http://glfw.sourceforge.net/tutorials/lesson06/lesson06.html

appendProto(GLFW)
Expand Down
2 changes: 2 additions & 0 deletions addons/GLFW/samples/lesson07.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

# Port of http://glfw.sourceforge.net/tutorials/lesson07/lesson07.html

appendProto(GLFW)
Expand Down
2 changes: 2 additions & 0 deletions addons/GLFW/samples/lesson08.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

# Port of http://glfw.sourceforge.net/tutorials/lesson08/lesson08.html

appendProto(GLFW)
Expand Down
2 changes: 2 additions & 0 deletions addons/Image/samples/scale.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io


App := Object clone do(
display := method(
Expand Down
2 changes: 2 additions & 0 deletions addons/Image/samples/test.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io



Viewer := Object clone do(
Expand Down
2 changes: 2 additions & 0 deletions addons/LibSndFile/samples/loopback.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io


AudioDevice openForReadingAndWriting

Expand Down
2 changes: 2 additions & 0 deletions addons/LibSndFile/samples/mp3filestream.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io


AudioMixer := Object clone do(
init := method(
Expand Down
2 changes: 2 additions & 0 deletions addons/LibSndFile/samples/mp3netstream.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io


AudioDevice open

Expand Down
2 changes: 2 additions & 0 deletions addons/LibSndFile/samples/server.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io


Server clone do(
setPort(8000)
Expand Down
2 changes: 2 additions & 0 deletions addons/LibSndFile/samples/sndplay.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

/*
if (?args == nil,
write("requires name of sound file as argument")
Expand Down
1 change: 1 addition & 0 deletions addons/MD5/samples/md5.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env io

File md5String := method(
digest := MD5 clone
Expand Down
2 changes: 2 additions & 0 deletions addons/ODE/samples/extras/tutorial2.1.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

# Port of http://pyode.sourceforge.net/tutorials/tutorial2.html
// (C) 2006 Jonathan Wright
// Based on glballs.io - A simple program (C) 2002 Mike Austin
Expand Down
2 changes: 2 additions & 0 deletions addons/ODE/samples/extras/tutorial2.2.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

# Port of http://pyode.sourceforge.net/tutorials/tutorial2.html
// (C) 2006 Jonathan Wright
// Based on glballs.io - A simple program (C) 2002 Mike Austin
Expand Down
2 changes: 2 additions & 0 deletions addons/ODE/samples/extras/tutorial2.3.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

# Port of http://pyode.sourceforge.net/tutorials/tutorial2.html
// (C) 2006 Jonathan Wright
// Based on glballs.io - A simple program (C) 2002 Mike Austin
Expand Down
2 changes: 2 additions & 0 deletions addons/ODE/samples/tutorial1.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

# Port of http://pyode.sourceforge.net/tutorials/tutorial1.html

r := DynLib clone setPath("/opt/local/lib/libode.dylib") open
Expand Down
2 changes: 2 additions & 0 deletions addons/ODE/samples/tutorial2.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

# Port of http://pyode.sourceforge.net/tutorials/tutorial2.html
// (C) 2006 Jonathan Wright
// Based on glballs.io - A simple program (C) 2002 Mike Austin
Expand Down
2 changes: 2 additions & 0 deletions addons/ODE/samples/tutorial3.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

# Port of http://pyode.sourceforge.net/tutorials/tutorial3.html

appendProto(OpenGL)
Expand Down
2 changes: 2 additions & 0 deletions addons/ObjcBridge/samples/BridgeTest/main.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

ObjcBridge autoLookupClassNamesOn
ObjcBridge debugOn

Expand Down
2 changes: 2 additions & 0 deletions addons/OpenGL/samples/Mandlebrot.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io


/*
MandlebrotApp := GLApp clone do(
Expand Down
2 changes: 2 additions & 0 deletions addons/OpenGL/samples/balls.io
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env io

// glballs.io - A simple program
// (C) 2002 Mike Austin

Expand Down
Loading

0 comments on commit 4b665d9

Please sign in to comment.