A basic HTML bar chart. Part of the Let’s Make a Bar Chart tutorial.
test
I hereby claim:
- I am hayd on github.
- I am hayd (https://keybase.io/hayd) on keybase.
- I have a public key whose fingerprint is D034 7EA2 0535 504B B3AC 27EF 2125 41F4 444C 4308
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import VoronoiDelaunay: Point2D, DelaunayTessellation, push! | |
# Create DelaunayTessellation with n points from an image | |
function from_image(img, n) | |
# placing points in places that represent the image | |
pts = Point2D[] | |
for i in 1:n | |
x = rand() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nosetests 2> nose_output.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type MetaDoc | |
docstring::Base.Markdown.MD | |
sections::Vector{Pair} | |
MetaDoc(docstring, sections) = new(docstring, [sections]) | |
MetaDoc(docstring, sections...) = new(docstring, [sections...]) | |
end | |
m = MetaDoc(doc"....docs.... for `m`", :author=>"Me", :section=>"Foo functions") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@doc """ | |
""" Base | |
# Essentials | |
# ========== | |
# | |
# Introduction | |
# ------------ | |
# | |
# The Julia standard library contains a range of functions and macros appropriate for performing scientific and numerical computing, but is also as broad as those of many general purpose programming languages. Additional functionality is available from a growing collection of available packages. Functions are grouped by topic below. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Get useful information from live Python objects. | |
This module encapsulates the interface provided by the internal special | |
attributes (co_*, im_*, tb_*, etc.) in a friendlier fashion. | |
It also provides some help for examining source code and class layout. | |
Here are some of the useful functions provided by this module: | |
ismodule(), isclass(), ismethod(), isfunction(), isgeneratorfunction(), | |
isgenerator(), istraceback(), isframe(), iscode(), isbuiltin(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- original/pandas/tseries/tests/test_offsets.py | |
+++ fixed/pandas/tseries/tests/test_offsets.py | |
@@ -44,7 +44,7 @@ | |
#### | |
-## Misc function tests | |
+# Misc function tests | |
#### | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def append_frame(f='foo.csv', df=df, keep_open=False, n=1000): | |
if keep_open: | |
with open(f, mode='a') as f_: | |
for i in xrange(n): | |
df.to_csv(f_, mode='a') | |
else: | |
for i in xrange(n): | |
df.to_csv(f, mode='a') | |
os.remove(f) |