Skip to content

Instantly share code, notes, and snippets.

View minemap.jl
using PiCraft
using SenseHat
using Colors
LED=led_matrix()
colors = Dict(
Block(12, 0)=>colorant"yellow",
Block(2, 0)=>colorant"green",
@aviks
aviks / nlp.ipynb
Last active Aug 11, 2019
NLP-with-Julia
View nlp.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Webscraping.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<meta name="apple-mobile-web-app-capable" content="yes" />
View minecraft-color.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View note.xml
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
View fastmath_example.jl
function sum_diff_fast(x)
n=length(x); d = 1/(n-1)
s = zero(eltype(x))
@fastmath s = s + (x[2] - x[1]) / d
@fastmath for i = 2:n-1
s = s + (x[i+1] - x[i+1]) / (2*d)
end
@fastmath s = s + (x[n] - x[n-1])/d
end
View keybase.md

Keybase proof

I hereby claim:

  • I am aviks on github.
  • I am aviks (https://keybase.io/aviks) on keybase.
  • I have a public key whose fingerprint is 53A5 673C E6B0 CC52 ED28 C34C 2989 6748 6C23 7FC7

To claim this, I am signing this object:

View test_18361.jl
t=now()
println("Started loading. All times relative to now")
using Base.Test
function test_18361()
println("Compiled, started execution $(now()-t)")
@test sinpi(1) == 0
@test sinpi(1) == 0
@test sinpi(1) == 0
@test sinpi(1) == 0
View 18361_profile
2 ./abstractarray.jl:20; vect(::Int64, ::Vararg{Int64,N})
1 ./client.jl:360; _start()
1 ./REPL.jl:188; run_repl(::Base.REPL.LineEditREPL,...
1 ./REPL.jl:903; run_frontend(::Base.REPL.LineEdit...
1 ./LineEdit.jl:1579; run_interface(::Base.Terminals.T...
1 ./REPL.jl:651; (::Base.REPL.##22#23{Bool,Base.R...
1 ./REPL.jl:935; ends_with_semicolon(::String)
1 ./strings/search.jl:155; rsearch(::String, ::Char)
1 ./strings/search.jl:11; search(::RevString{String}, ::C...
1 ./strings/basic.jl:69; done
View make.user
override USE_SYSTEM_BLAS=1
override USE_SYSTEM_LAPACK=1
override USE_SYSTEM_LIBM=1
override USE_SYSTEM_FFTW=1
override USE_SYSTEM_GMP=1
override USE_SYSTEM_MPFR=1
override USE_SYSTEM_ARPACK=1
JULIA_CPU_TARGET=cortex-a7