Skip to content

Instantly share code, notes, and snippets.

View JeffBezanson's full-sized avatar

Jeff Bezanson JeffBezanson

View GitHub Profile
using CSV, DataFrames, Plots, CurveFit, Dates, Statistics
btc = CSV.read("/home/jeff/Downloads/bitcoinity_data.csv", DataFrame)
mmiddle(x,y) = ismissing(x) ? y : ismissing(y) ? x : middle(x,y)
merged = mmiddle.(btc[!,:coinbase], btc[!,:others]) # use both coinbase and "other" (early) data
deleteat!(btc, findall(ismissing, merged))
using Images
import Base.Threads: @threads, @spawn
function escapetime(z; maxiter=80)
c = z
for n = 1:maxiter
if abs(z) > 2
return n-1
end
z = z^2 + c
const CC = Core.Compiler
using Base: IdSet
# count total number of nodes reachable from a given point
function edgecount(G, from, counts = IdDict{Any,Int}())
if haskey(counts, from)
return 0
end
if !CC.haskey(G, from)
return 0
function do_artifact_str(name, sfile, __module__)
local artifacts_toml = find_artifacts_toml(sfile)
if artifacts_toml === nothing
error(string(
"Cannot locate '(Julia)Artifacts.toml' file when attempting to use artifact '",
name,
"' in '",
__module__,
"'",
))
# run in commit c35d1d7f7c9d90e0a00ded1980d6fcd5d06f5433
# fixed by commit f81d4d21862c99e1c0452bdf2613ab9e20da9935
macro par(expr)
thunk = esc(:(()->($expr)))
quote
local task = Task($thunk)
task.sticky = false
schedule(task)
task
; ModuleID = 'convert'
source_filename = "convert"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128-ni:10:11:12"
target triple = "x86_64-unknown-linux-gnu"
%jl_value_t = type opaque
@llvm.compiler.used = appending global [2 x i8*] [i8* bitcast (%jl_value_t addrspace(10)* (i8*, i32, i32)* @jl_gc_pool_alloc to i8*), i8* bitcast (%jl_value_t addrspace(10)* (i8*, i64)* @jl_gc_big_alloc to i8*)], section "llvm.metadata"
; Function Attrs: sspstrong
diff --git a/base/iterators.jl b/base/iterators.jl
index 1c2ab13..4e5d1b5 100644
--- a/base/iterators.jl
+++ b/base/iterators.jl
@@ -694,28 +694,30 @@ function start(f::Flatten)
d = done(f.it, s)
# this is a simple way to make this function type stable
d && throw(ArgumentError("argument to Flatten must contain at least one iterator"))
+ done_inner = false
while !d
immutable Myo{C}
c::C
function (::Type{Myo{C}}){C}(c)
if 2 == 2 # expansion of @assert 2==2
nothing
else
throw(Base.AssertionError("2 == 2"))
end
return new{C}(c)
end
travis_fold:start:worker_info
Worker information
hostname: wjb-1.macstadium-us-se-1.travisci.net:fbee6be9-3545-4d4b-98ad-d0fb4f031325
version: v2.6.2 https://github.com/travis-ci/worker/tree/fdccca4efd347ebc889baae641ccbf55bb871d19
instance: a349cd59-a02e-46c9-8c28-ece0f707dfc7:travis-ci-osx10.11-xcode8-1479248015
startup: 1m54.291250744s
travis_fold:end:worker_info
travis_fold:start:system_info
Build system information
INFO: Installing Example v0.4.0
INFO: Package database updated
INFO: METADATA is out-of-date — you may not have the latest version of Example
INFO: Use `Pkg.update()` to get the latest versions of your packages
INFO: Initializing package repository /tmp/o8xgwvMS/v0.6
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
INFO: No packages to install, update or remove
INFO: Cloning cache of Example from https://github.com/JuliaLang/Example.jl.git
INFO: Installing Example v0.4.1
INFO: Package database updated