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
-- This exercise covers the first 6 chapters of "Learn You a Haskell for Great Good!" | |
-- Chapter 1 - http://learnyouahaskell.com/introduction | |
-- Chapter 2 - http://learnyouahaskell.com/starting-out | |
-- Chapter 3 - http://learnyouahaskell.com/types-and-typeclasses | |
-- Chapter 4 - http://learnyouahaskell.com/syntax-in-functions | |
-- Chapter 5 - http://learnyouahaskell.com/recursion | |
-- Chapter 6 - http://learnyouahaskell.com/higher-order-functions | |
-- Download this file and then type ":l Chapter-1-6.hs" in GHCi to load this exercise |
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 LinearAlgebra: eigvals, eigvecs | |
N = 12 | |
A = rand(N, N) | |
A = A + A' | |
function new_eigvecs(A::AbstractMatrix, n=size(A,1)::Integer) | |
U = similar(A) | |
λ = eigvals(A) | |
for i = 1:n |
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 Plots | |
H = 10000 # H horizontal lines | |
V = 50 # V vertical lines | |
N = 10000 # sample size | |
function ghostleg(x) | |
if x == 1 | |
return x + 1 | |
elseif x == V |
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
Reason: unsupported call through a literal pointer (call to ) | |
Stacktrace: | |
[1] fill! at array.jl:366 | |
[2] #IOBuffer#318 at iobuffer.jl:121 | |
[3] multiple call sites at unknown:0 | |
Stacktrace: | |
[1] check_ir(::CUDAnative.CompilerJob, ::LLVM.Module) at /builds/JuliaGPU/GeometricFlux-jl/.julia/packages/CUDAnative/Lr0yj/src/compiler/validation.jl:114 | |
[2] macro expansion at /builds/JuliaGPU/GeometricFlux-jl/.julia/packages/CUDAnative/Lr0yj/src/compiler/driver.jl:188 [inlined] | |
[3] macro expansion at /builds/JuliaGPU/GeometricFlux-jl/.julia/packages/TimerOutputs/7zSea/src/TimerOutput.jl:216 [inlined] | |
[4] #codegen#136(::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::typeof(CUDAnative.codegen), ::Symbol, ::CUDAnative.CompilerJob) at /builds/JuliaGPU/GeometricFlux-jl/.julia/packages/CUDAnative/Lr0yj/src/compiler/driver.jl:186 |
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
Traceback (most recent call last): | |
File "/media/pika/Workbench/workspace/testcelery/venv/lib/python3.7/site-packages/kombu/serialization.py", line 50, in _reraise_errors | |
yield | |
File "/media/pika/Workbench/workspace/testcelery/venv/lib/python3.7/site-packages/kombu/serialization.py", line 221, in dumps | |
payload = encoder(data) | |
File "/media/pika/Workbench/workspace/testcelery/venv/lib/python3.7/site-packages/kombu/utils/json.py", line 70, in dumps | |
**dict(default_kwargs, **kwargs)) | |
File "/usr/lib64/python3.7/json/__init__.py", line 238, in dumps | |
**kw).encode(obj) | |
File "/usr/lib64/python3.7/json/encoder.py", line 199, in encode |
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
server { | |
listen 80; | |
listen [::]:80; | |
server_name 54.210.169.179; | |
charset utf-8; | |
root /var/www/benga; | |
index index.html; | |
location / { |
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
class Batch(models.Model): | |
id = models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, null=False, auto_created=True) | |
created = models.DateTimeField(auto_now_add=True) | |
seq_num = models.SmallIntegerField() |
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
(v1.0) pkg> test CSV | |
Testing CSV | |
Resolving package versions... | |
Installed DecFP ─ v0.4.6 | |
Building DecFP → `~/.julia/packages/DecFP/Mxubh/deps/build.log` | |
Status `/tmp/tmpMdxENO/Manifest.toml` | |
[9e28174c] BinDeps v0.8.10 | |
[b99e7846] BinaryProvider v0.4.2 | |
[336ed68f] CSV v0.3.1 | |
[324d7699] CategoricalArrays v0.3.13 |