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:
using LightGraphs | |
macro file(args...) buildfile(args...) end | |
buildfile(t, s::AbstractString) = buildfile(t, Expr(:string, s)) | |
buildfile(target, source::Expr) = quote | |
open(joinpath(dirname(@__FILE__), $(esc(target))), "w") do file | |
println(" - '$($(esc(target)))'") | |
println(file, "<!-- AUTOGENERATED. See 'docs/build.jl' for source. -->") |
all: book sample | |
book: | |
pandoc $(shell cat Book.txt) --smart --table-of-contents --chapters -o Book.pdf | |
sample: | |
pandoc $(shell cat Sample.txt) --smart --table-of-contents --chapters -o Sample.pdf | |
watch: | |
watchmedo shell-command --patterns="*.md" --command=make |
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) |
--- original/pandas/tseries/tests/test_offsets.py | |
+++ fixed/pandas/tseries/tests/test_offsets.py | |
@@ -44,7 +44,7 @@ | |
#### | |
-## Misc function tests | |
+# Misc function tests | |
#### | |
"""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(), |
@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. |
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") |
nosetests 2> nose_output.log |
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() |
I hereby claim:
To claim this, I am signing this object: