Skip to content

Commit

Permalink
Make fibonacci the default example
Browse files Browse the repository at this point in the history
  • Loading branch information
dlorch committed Dec 13, 2015
1 parent d87c3e4 commit c2bb154
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ Try it out!

<select id="snippets"></select>
<input type="submit" id="run" value="Run" />
<div id="editor">print 'Hello, world!'</div>
<div id="editor">def fib(n):
a, b = 0, 1
while a < n:
print a
a, b = b, a+b

fib(1000)</div>
<pre id="result"></pre>

<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.2/ace.js" type="text/javascript" charset="utf-8"></script>
Expand Down

0 comments on commit c2bb154

Please sign in to comment.