Skip to content

Instantly share code, notes, and snippets.


Valentin Churavy vchuravy

  • Cambridge, MA, USA
Block or report user

Report or block vchuravy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Manifest.toml
# This file is machine-generated - editing it directly is not advised
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
git-tree-sha1 = "09aed2c4093e9ed29b08f6660ad959fcb6847cd1"
uuid = "7057c7e9-c182-5462-911a-8362d720325c"
version = "0.2.5"
vchuravy / threads.S
Last active Sep 19, 2016
PPC llvm 3.9 threads
View threads.S
Filename: threads.jl
ld 2, -8(12)
add 2, 2, 12
mflr 0
std 31, -8(1)
std 0, 16(1)
stdu 1, -1264(1)
mr 31, 1
std 14, 1120(31)
vchuravy /
Last active May 18, 2018
Script to download the AMD APP SDK
# Original script from
# Location from which get nonce and file name from
View Lennard-Jones_MD
function ljconfig(N, per=0.2)
# mesh-grid-like construction
X = (0:N) * ones(1,N)
Y = X'
# write all particles into a single array
x = [X[:]', Y[:]']
x = x + per * rand(size(x))
vchuravy / ls.jl
Last active Oct 14, 2016
Pipe ls -l into DataFrame
View ls.jl
using DataFrames
using Dates # I am on 0.3
# Note the quoting style and the custom time-style
# sed is used to remove softlinks "dir" -> "../dir"
cmd = `ls -1 -l --quoting-style=c --time-style='+%Y-%m-%d_%H:%M'` |> `sed 's/ -> ".*"$//g'`
df = open(cmd, "r", STDOUT) do io
readtable(io, header=false,
separator=' ',
vchuravy / test-pair-vs-dict.jl
Created Oct 14, 2014
Performance pair vs dict
View test-pair-vs-dict.jl
# Pair
immutable Pair{A,B}
start(p::Pair) = 1
done(p::Pair, i) = i>2
next(p::Pair, i) = (getfield(p,i), i+1)
View speed.jl
x = {[1:100]...}
function f1(X)
T = None
for x in X
T = promote_type(T,typeof(x))
return T
vchuravy / CMakeLists.txt
Last active Mar 9, 2018 — forked from SimonDanisch/gltest.c
OpenCL OpenGL interop test
View CMakeLists.txt
cmake_minimum_required (VERSION 2.6)
project (ogltest)
find_package(PkgConfig REQUIRED)
pkg_search_module(GLFW REQUIRED glfw3)
find_package(OpenGL REQUIRED)
vchuravy / debug_qjulia.log
Created Jun 17, 2014
Log of INTEL_DEBUG=aub,batch julia qjulia.jl
View debug_qjulia.log
INTEL_DEBUG=aub,batch julia qjulia.jl
INFO: loaded GLFW 3.0.4 X11 GLX glXGetProcAddress clock_gettime /dev/js shared from /home/wallnuss/.julia/v0.3/GLFW/deps/usr/lib/libglfw
intel_extensions.c:144: Batchbuffer flush with 132b (pkt) + 0b (state) = 132b (0.4%)
0x15208000: 0x7a000003: PIPE_CONTROL
0x15208004: 0x00100002: no write, cs stall, stall at scoreboard,
0x15208008: 0x00000000: destination address
0x1520800c: 0x00000000: immediate dword low
0x15208010: 0x00000000: immediate dword high
0x15208014: 0x7a000003: PIPE_CONTROL
0x15208018: 0x00004000: qword write,

Keybase proof

I hereby claim:

  • I am vchuravy on github.
  • I am vchuravy ( on keybase.
  • I have a public key whose fingerprint is 85F8 E5A2 466D 8BA8 5699 0E95 F1AE DCA6 54FC 59A3 To claim this, I am signing this object:
    "body": {
        "client": {
You can’t perform that action at this time.