Permalink
Browse files

Making Samples executable. #!/usr/bin/env io and chmod a+x *.io

  • Loading branch information...
quag committed May 27, 2007
1 parent 2bcea09 commit 4b665d90b1839e46aa41e32deb1702fe73002042
Showing with 293 additions and 30 deletions.
  1. +2 −0 addons/AVCodec/samples/mp3filestream.io
  2. +2 −0 addons/AVCodec/samples/mp3netstream.io
  3. +2 −0 addons/AVCodec/samples/server.io
  4. +2 −0 addons/AVCodec/samples/video.io
  5. +3 −1 addons/AVCodec/samples/video2.io
  6. +2 −0 addons/AppleExtras/samples/pong.io
  7. +2 −0 addons/AppleExtras/samples/roller.io
  8. +3 −1 addons/AppleExtras/samples/test.io
  9. +0 −1 addons/AsyncRequest/samples/test.io
  10. +2 −0 addons/CFFI/samples/LibC.io
  11. +2 −0 addons/ContinuedFraction/samples/Sample.io
  12. +1 −0 addons/Contracts/build.io
  13. +3 −0 addons/Contracts/samples/Sample.io
  14. +1 −1 addons/Curses/samples/browser.io
  15. +1 −1 addons/Curses/samples/cli.io
  16. +1 −1 addons/Curses/samples/docsbrowser.io
  17. +2 −0 addons/DBI/samples/benchmark.io
  18. +2 −0 addons/DBI/samples/driver_info.io
  19. +2 −0 addons/DBI/samples/dummydata.io
  20. +2 −0 addons/DBI/samples/fetchobj.io
  21. +2 −0 addons/DBI/samples/queryOne.io
  22. +2 −0 addons/DBI/samples/simple.io
  23. +2 −0 addons/Flux/samples/Calculator/Calc.io
  24. +2 −0 addons/Flux/samples/China/china.io
  25. +1 −0 addons/Flux/samples/Debugger/debug.io
  26. +1 −1 addons/Flux/samples/Debugger/menu.io
  27. +1 −0 addons/Flux/samples/Diagram/main.io
  28. +1 −0 addons/Flux/samples/FileBrowser/main.io
  29. +2 −0 addons/Flux/samples/IRC/main.io
  30. +2 −0 addons/Flux/samples/Mix/Mix.io
  31. +1 −0 addons/Flux/samples/Self/main.io
  32. +1 −0 addons/Flux/samples/SheetTest/main.io
  33. +1 −0 addons/Flux/samples/Slideshow/main.io
  34. +2 −0 addons/Flux/samples/SongJam/main.io
  35. +2 −0 addons/Flux/samples/Test/main.io
  36. +2 −0 addons/Flux/samples/Test/main2.io
  37. +1 −1 addons/Font/samples/Terminal.io
  38. +2 −0 addons/Font/samples/fontTest.io
  39. +2 −0 addons/Font/samples/slides.io
  40. +2 −0 addons/Font/samples/test.io
  41. +1 −0 addons/Font/samples/test2.io
  42. +2 −0 addons/GLFW/samples/lesson01.io
  43. +2 −0 addons/GLFW/samples/lesson02.io
  44. +2 −0 addons/GLFW/samples/lesson03.io
  45. +2 −0 addons/GLFW/samples/lesson04.io
  46. +2 −0 addons/GLFW/samples/lesson05.io
  47. +2 −0 addons/GLFW/samples/lesson06.io
  48. +2 −0 addons/GLFW/samples/lesson07.io
  49. +2 −0 addons/GLFW/samples/lesson08.io
  50. +2 −0 addons/Image/samples/scale.io
  51. +2 −0 addons/Image/samples/test.io
  52. +2 −0 addons/LibSndFile/samples/loopback.io
  53. +2 −0 addons/LibSndFile/samples/mp3filestream.io
  54. +2 −0 addons/LibSndFile/samples/mp3netstream.io
  55. +2 −0 addons/LibSndFile/samples/server.io
  56. +2 −0 addons/LibSndFile/samples/sndplay.io
  57. +1 −0 addons/MD5/samples/md5.io
  58. +2 −0 addons/ODE/samples/extras/tutorial2.1.io
  59. +2 −0 addons/ODE/samples/extras/tutorial2.2.io
  60. +2 −0 addons/ODE/samples/extras/tutorial2.3.io
  61. +2 −0 addons/ODE/samples/tutorial1.io
  62. +2 −0 addons/ODE/samples/tutorial2.io
  63. +2 −0 addons/ODE/samples/tutorial3.io
  64. +2 −0 addons/ObjcBridge/samples/BridgeTest/main.io
  65. +2 −0 addons/OpenGL/samples/Mandlebrot.io
  66. +2 −0 addons/OpenGL/samples/balls.io
  67. +2 −0 addons/OpenGL/samples/cube.io
  68. +2 −0 addons/OpenGL/samples/events.io
  69. +2 −0 addons/OpenGL/samples/game.io
  70. +2 −0 addons/OpenGL/samples/game/client.io
  71. +1 −0 addons/OpenGL/samples/game/server.io
  72. +2 −0 addons/OpenGL/samples/grabTextureTest.io
  73. +2 −0 addons/OpenGL/samples/lines.io
  74. +2 −0 addons/OpenGL/samples/polygonSmoothing.io
  75. +1 −1 addons/OpenGL/samples/test2.io
  76. +2 −0 addons/PortAudio/samples/loopback.io
  77. +2 −0 addons/PortAudio/samples/sndplay.io
  78. +2 −0 addons/PostgreSQL/samples/pgsql-sample.io
  79. +2 −0 addons/Python/samples/UsingPython.io
  80. +2 −0 addons/Rational/samples/Sample.io
  81. +2 −0 addons/SampleRateConverter/samples/loopback.io
  82. +2 −0 addons/SampleRateConverter/samples/mp3filestream.io
  83. +2 −0 addons/SampleRateConverter/samples/mp3netstream.io
  84. +2 −0 addons/SampleRateConverter/samples/server.io
  85. +2 −0 addons/SampleRateConverter/samples/sndplay.io
  86. +2 −0 addons/Socket/samples/ChatServer.io
  87. +2 −0 addons/Socket/samples/ClientServer.io
  88. +2 −0 addons/Socket/samples/DOTest.io
  89. +2 −0 addons/Socket/samples/EchoServer.io
  90. +2 −0 addons/Socket/samples/EmailMessageTest.io
  91. +2 −0 addons/Socket/samples/Google.io
  92. +2 −0 addons/Socket/samples/GoogleTranslate.io
  93. +2 −0 addons/Socket/samples/IRC/CursesScreen.io
  94. +2 −0 addons/Socket/samples/IRC/EchoBot.io
  95. +2 −0 addons/Socket/samples/IRC/IoBot.io
  96. +3 −1 addons/Socket/samples/MinimalWebServer.io
  97. +2 −0 addons/Socket/samples/Radio.io
  98. +2 −0 addons/Socket/samples/TerminalServer.io
  99. +2 −0 addons/Socket/samples/URLTest.io
  100. +2 −0 addons/Socket/samples/WebDownload.io
  101. +3 −1 addons/Socket/samples/WebRequest.io
  102. +2 −0 addons/Socket/samples/WebServer/WebServer.io
  103. +2 −0 addons/Socket/samples/WebServer/test.io
  104. +2 −1 addons/Socket/samples/ptest.io
  105. +2 −0 addons/SoundTouch/samples/loopback.io
  106. +2 −0 addons/SoundTouch/samples/mp3filestream.io
  107. +2 −0 addons/SoundTouch/samples/mp3netstream.io
  108. +2 −0 addons/SoundTouch/samples/server.io
  109. +2 −0 addons/SoundTouch/samples/sndplay.io
  110. +2 −1 addons/Syslog/samples/sample.io
  111. +2 −0 addons/SystemCall/samples/pingtest.io
  112. +3 −1 addons/SystemCall/samples/test.io
  113. +3 −1 addons/SystemCall/samples/test2.io
  114. +2 −0 addons/TagLib/samples/tag.io
  115. +2 −0 libs/iovm/tests/run.io
  116. +2 −1 samples/misc/Account.io
  117. +2 −0 samples/misc/Ackerman.io
  118. +1 −0 samples/misc/BottlesOfBeer.io
  119. +2 −1 samples/misc/Brackets.io
  120. +1 −0 samples/misc/Cards.io
  121. +1 −0 samples/misc/CommandLineArgs.io
  122. +1 −0 samples/misc/Conditions.io
  123. +1 −0 samples/misc/Control.io
  124. +1 −0 samples/misc/ControlFlow.io
  125. +1 −0 samples/misc/Decompile.io
  126. +1 −0 samples/misc/Dir.io
  127. +1 −0 samples/misc/ErlangChallenge.io
  128. +1 −0 samples/misc/Foreach.io
  129. +1 −0 samples/misc/Hanoi.io
  130. +1 −0 samples/misc/HelloWorld.io
  131. +1 −0 samples/misc/Inheritance.io
  132. +1 −0 samples/misc/SimpleCoro.io
  133. +1 −0 samples/misc/Sort.io
  134. +1 −0 samples/misc/Super.io
  135. +1 −0 samples/misc/WeakLink.io
  136. +1 −0 samples/misc/except.io
  137. +1 −0 samples/misc/qsort.io
  138. +1 −0 samples/misc/tailtest.io
  139. +2 −1 samples/misc/vtest.io
  140. +3 −1 samples/shootout/binarytrees.io
  141. +3 −1 samples/shootout/chameneos.io
  142. +2 −0 samples/shootout/cheapconcurrency.io
  143. +3 −1 samples/shootout/fannkuch.io
  144. +3 −1 samples/shootout/fasta.io
  145. +3 −1 samples/shootout/mandelbrot.io
  146. +2 −0 samples/shootout/nbody.io
  147. +3 −1 samples/shootout/nsieve.io
  148. +3 −1 samples/shootout/nsievebits.io
  149. +3 −1 samples/shootout/partialsums.io
  150. +3 −1 samples/shootout/recursive.io
  151. +3 −1 samples/shootout/reverse-complement.io
  152. +3 −1 samples/shootout/spectral-norm.io
  153. +3 −1 samples/shootout/sumcol.io
  154. +2 −0 samples/speed/speed.io
  155. +2 −0 samples/speed/speedResults.io
  156. +2 −0 samples/speed/speedResults2.io
View
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
AudioMixer := Object clone do(
init := method(
View
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
AudioDevice open
View
2 addons/AVCodec/samples/server.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
Server clone do(
setPort(8000)
View
2 addons/AVCodec/samples/video.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
VideoDecoder := AVCodec clone do(
newSlot("internalCoro")
newSlot("externalCoro")
View
4 addons/AVCodec/samples/video2.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
Flux
VideoApp := Application clone do(
@@ -11,4 +13,4 @@ VideoApp := Application clone do(
)
)
-VideoApp run
+VideoApp run
View
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
AppleSensors do(
lastLeft := 0
View
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
Ball := Object clone do(
appendProto(OpenGL)
position := vector(25,0)
View
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
loop(
l := AppleSensors getLeftLightSensor
@@ -13,4 +15,4 @@ loop(
writeln("-------------------------")
//TimerEvent waitOn(1)
//if (b != -1, AppleSensors setDisplayBrightness(1 - (b/1300)))
-)
+)
@@ -1 +0,0 @@
-
View
2 addons/CFFI/samples/LibC.io 100644 → 100755
@@ -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.
View
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
/* Example usages of ContinuedFraction */
cf := ContinuedFraction with(2) + SQRT with(2) + SQRT with(3) + E
@@ -1,2 +1,3 @@
AddonBuilder clone do(
+ disable # uses Message attached which doesn't exist any more
)
View
@@ -1,4 +1,7 @@
+#!/usr/bin/env io
+
/* Example usages of Contracts */
+Contracts
/* This method only accepts numbers */
onlyNumbers := contract(a, b,
View
2 addons/Curses/samples/browser.io 100644 → 100755
@@ -1,4 +1,4 @@
-#!/usr/local/bin/ioServer
+#!/usr/bin/env io
Curses do(
begin
View
2 addons/Curses/samples/cli.io 100644 → 100755
@@ -1,4 +1,4 @@
-#!/usr/local/bin/ioServer
+#!/usr/bin/env io
Curses do(
begin
View
@@ -1,4 +1,4 @@
-#!/usr/local/bin/ioServer
+#!/usr/bin/env io
Curses do(
begin
View
2 addons/DBI/samples/benchmark.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
recCount := if(args at(1), args at(1) asNumber, 50000)
c := DBI with("sqlite3")
View
2 addons/DBI/samples/driver_info.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
showInfo := method(d,
(" Name: " .. d at(0)) println
(" Description: " .. d at(1)) println
View
2 addons/DBI/samples/dummydata.io 100644 → 100755
@@ -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),
View
2 addons/DBI/samples/fetchobj.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
doFile("dummydata.io")
c := DBI with("sqlite3")
View
2 addons/DBI/samples/queryOne.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
doFile("dummydata.io")
c := DBI with("sqlite3")
View
2 addons/DBI/samples/simple.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
doFile("dummydata.io")
c := DBI with("sqlite3") // pgsql, mysql, sqlite, sqlite3, etc
View
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
/* Io Calculator - 2004 Mike Austin */
Flux
View
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
// china.io
// A program for playing Chinese Checkers
// The program requires IoDesktop.
View
@@ -1,3 +1,4 @@
+#!/usr/bin/env io
autoImportResources
View
@@ -1,4 +1,4 @@
-#!./ioServer
+#!/usr/bin/env io
writebr := method(
thisMessage arguments foreach(arg, write(sender doMessage(arg)))
View
@@ -1,3 +1,4 @@
+#!/usr/bin/env io
Flux
View
@@ -1,3 +1,4 @@
+#!/usr/bin/env io
Flux
View
2 addons/Flux/samples/IRC/main.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
//debugCollector := 1
//write("launchPath = '", launchPath, "'\n")
View
2 addons/Flux/samples/Mix/Mix.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
// an AudioPad inspired demo
// Steve Dekorte, 2003
View
1 addons/Flux/samples/Self/main.io 100644 → 100755
@@ -1,3 +1,4 @@
+#!/usr/bin/env io
Flux
View
@@ -1,3 +1,4 @@
+#!/usr/bin/env io
Flux
View
@@ -1,3 +1,4 @@
+#!/usr/bin/env io
Flux
View
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
//debugCollector := 1
autoImportResources
View
2 addons/Flux/samples/Test/main.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
Flux
/*
View
2 addons/Flux/samples/Test/main2.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
Flux
Controller := Object clone do(
View
2 addons/Font/samples/Terminal.io 100644 → 100755
@@ -1,4 +1,4 @@
-
+#!/usr/bin/env io
Terminal := GLApp clone
Terminal do(
View
2 addons/Font/samples/fontTest.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
// fontTest.io
// Written by Jon Kleiser, 12-Dec-2006
// Based on IoDesktop/FreeType/_tests/test.io
View
2 addons/Font/samples/slides.io 100644 → 100755
@@ -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"))
View
2 addons/Font/samples/test.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
monoFont := Font clone open("resources/library/fonts/Vera/Mono/Bold.ttf") setPixelSize(12)
writeln("top1")
View
1 addons/Font/samples/test2.io 100644 → 100755
@@ -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)
View
2 addons/GLFW/samples/lesson01.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
# Port of http://glfw.sourceforge.net/tutorials/lesson01/lesson01.html
appendProto(GLFW)
View
2 addons/GLFW/samples/lesson02.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
# Port of http://glfw.sourceforge.net/tutorials/lesson02/lesson02.html
appendProto(GLFW)
View
2 addons/GLFW/samples/lesson03.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
# Port of http://glfw.sourceforge.net/tutorials/lesson03/lesson03.html
appendProto(GLFW)
View
2 addons/GLFW/samples/lesson04.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
# Port of http://glfw.sourceforge.net/tutorials/lesson04/lesson04.html
appendProto(GLFW)
View
2 addons/GLFW/samples/lesson05.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
# Port of http://glfw.sourceforge.net/tutorials/lesson05/lesson05.html
appendProto(GLFW)
View
2 addons/GLFW/samples/lesson06.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
# Port of http://glfw.sourceforge.net/tutorials/lesson06/lesson06.html
appendProto(GLFW)
View
2 addons/GLFW/samples/lesson07.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
# Port of http://glfw.sourceforge.net/tutorials/lesson07/lesson07.html
appendProto(GLFW)
View
2 addons/GLFW/samples/lesson08.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
# Port of http://glfw.sourceforge.net/tutorials/lesson08/lesson08.html
appendProto(GLFW)
View
2 addons/Image/samples/scale.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
App := Object clone do(
display := method(
View
2 addons/Image/samples/test.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
Viewer := Object clone do(
View
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
AudioDevice openForReadingAndWriting
View
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
AudioMixer := Object clone do(
init := method(
View
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
AudioDevice open
View
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
Server clone do(
setPort(8000)
View
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
/*
if (?args == nil,
write("requires name of sound file as argument")
View
1 addons/MD5/samples/md5.io 100644 → 100755
@@ -1,3 +1,4 @@
+#!/usr/bin/env io
File md5String := method(
digest := MD5 clone
View
@@ -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
View
@@ -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
View
@@ -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
View
2 addons/ODE/samples/tutorial1.io 100644 → 100755
@@ -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
View
2 addons/ODE/samples/tutorial2.io 100644 → 100755
@@ -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
View
2 addons/ODE/samples/tutorial3.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
# Port of http://pyode.sourceforge.net/tutorials/tutorial3.html
appendProto(OpenGL)
View
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
ObjcBridge autoLookupClassNamesOn
ObjcBridge debugOn
View
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
/*
MandlebrotApp := GLApp clone do(
View
2 addons/OpenGL/samples/balls.io 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env io
+
// glballs.io - A simple program
// (C) 2002 Mike Austin
Oops, something went wrong.

0 comments on commit 4b665d9

Please sign in to comment.