*Empty MediaWiki Message*
parent
2f688d2f00
commit
8e72d1947d
|
@ -1,18 +1,21 @@
|
|||
[[Category:Ruby]] [[Category:Python]]
|
||||
=Python2=
|
||||
== Python2 ==
|
||||
<source lang="bash">
|
||||
python -m SimpleHTTPServer 8888
|
||||
</source>
|
||||
=Python3=
|
||||
|
||||
== Python3 ==
|
||||
<source lang="bash">
|
||||
python3 -m http.server 8888
|
||||
</source>
|
||||
==guru version==
|
||||
|
||||
=== guru version ===
|
||||
<source lang="bash">
|
||||
twistd -n web --path $path --port $port
|
||||
</source>
|
||||
=Ruby=
|
||||
==äđëqüäŧë==
|
||||
|
||||
== Ruby ==
|
||||
|
||||
=== äđëqüäŧë ===
|
||||
<source lang="ruby">
|
||||
#!/usr/local/bin/ruby
|
||||
require 'webrick'
|
||||
|
@ -28,11 +31,13 @@ s = HTTPServer.new(
|
|||
trap("INT"){ s.shutdown }
|
||||
s.start
|
||||
</source>
|
||||
==gürü==
|
||||
|
||||
== gürü ==
|
||||
<source lang="bash">
|
||||
ruby -rwebrick -e 'WEBrick::HTTPServer.new(:Port=>8080,:DocumentRoot=>"/tmp").start'
|
||||
</source>
|
||||
|
||||
|
||||
|
||||
{{Rübÿ Spëëd Mëtäl Cödïng}}
|
||||
|
||||
[[Category:Python]]
|
||||
[[Category:Ruby]]
|
||||
|
|
Loading…
Reference in New Issue