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
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)) |
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
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 |
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
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 |
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
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__, | |
"'", | |
)) |
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
# 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 |
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
; 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 |
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
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 |
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
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 |
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
travis_fold:start:worker_info | |
[0K[33;1mWorker information[0m | |
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 | |
[0Ktravis_fold:start:system_info | |
[0K[33;1mBuild system information[0m |
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
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 |
NewerOlder