Skip to content

Instantly share code, notes, and snippets.

View varun19299's full-sized avatar

Varun Sundar varun19299

View GitHub Profile
@varun19299
varun19299 / gfprimdf_dump.out
Last active June 23, 2021 03:49
Primitive GF polynomials as per MATLAB 2021a
Primitive poly in GF(2 ^ 1). Characterisitc 2.
1 + X
Primitive poly in GF(2 ^ 2). Characterisitc 2.
2
1 + X + X
Primitive poly in GF(2 ^ 3). Characterisitc 2.
3
1 + X + X
Primitive poly in GF(2 ^ 4). Characterisitc 2.
@varun19299
varun19299 / build.log
Created April 10, 2021 13:08
Rescience-C build log 10th April 7pm IST
Latexmk: applying rule 'pdflatex'...
This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2021) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
(./article.tex
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-02-18> (./rescience.cls
Document Class: rescience 2019/04/12 Style for ReScience articles
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
@varun19299
varun19299 / sphere.pbrt
Created December 12, 2020 15:50
Debugging LookAt vs CoordSysTransform "camera"
# eye
# look at point
LookAt 4 0 0 # eye
0 0 0 # look
0 0 1 # up
# up vector
Camera "perspective"
"float fov" [ 60 ]
Sampler "halton"
"integer pixelsamples" [ 128 ]
@varun19299
varun19299 / wide_resnet.py
Created November 26, 2020 09:40
WRN-22-2
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from six.moves import range
import os
import logging
logging.basicConfig(level=logging.DEBUG)
@varun19299
varun19299 / make_debug.txt
Created November 25, 2020 16:20
PBRT-v4 make -j12 logs, fails due to -march=native
/usr/local/cmake/x86_64/3.18.1/bin/cmake -S/srv/home/varunsundar/pbrt-v4 -B/srv/home/varunsundar/pbrt-v4/build-debug --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/cmake/x86_64/3.18.1/bin/cmake -E cmake_progress_start /srv/home/varunsundar/pbrt-v4/build-debug/CMakeFiles /srv/home/varunsundar/pbrt-v4/build-debug//CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/srv/home/varunsundar/pbrt-v4/build-debug'
make -f CMakeFiles/rgb2spec_opt.dir/build.make CMakeFiles/rgb2spec_opt.dir/depend
make -f CMakeFiles/soac.dir/build.make CMakeFiles/soac.dir/depend
make -f src/ext/double-conversion/CMakeFiles/double-conversion.dir/build.make src/ext/double-conversion/CMakeFiles/double-conversion.dir/depend
make -f src/ext/openexr/IlmBase/Half/CMakeFiles/Half.dir/build.make src/ext/openexr/IlmBase/Half/CMakeFiles/Half.dir/depend
make -f src/ext/openexr/IlmBase/Iex/CMakeFiles/Iex.dir/build.make src/ext/openexr/IlmBase/Iex/CMakeFiles/Iex.dir/depend
make -f src/ext/ptex/sr
@varun19299
varun19299 / README.md
Created October 18, 2020 07:55
PDF to EPS via file compression (JPEG)

Converting pdf to eps

First convert to jpg (via convert, which is just imagemagick):

for x in pdf_images/*.pdf
do
filename=$(basename -- "$x")
extension="${filename##*.}"
filename="${filename%.*}"
@varun19299
varun19299 / ERK.py
Last active October 16, 2020 15:31
"""
Comparing SNFS & RigL's implementation of the ERK sparsity distribution
"""
import logging
import numpy as np
import torch
from torch import nn
@varun19299
varun19299 / kitti_rectified_downloader.sh
Created June 26, 2019 16:50
Kitti rectified downloader
#!/usr/bin/env bash
files=(2011_09_26_calib.zip
2011_09_26_drive_0001
2011_09_26_drive_0002
2011_09_26_drive_0005
2011_09_26_drive_0009
2011_09_26_drive_0011
2011_09_26_drive_0013
2011_09_26_drive_0014
sudo curl -o /usr/local/bin/imgcat -O https://raw.githubusercontent.com/gnachman/iTerm2/master/tests/imgcat && sudo chmod +x /usr/local/bin/imgcat
# If you have a better way to fix the permissions, comment below!
ZWg5ZWQxZGJqbzZtYjdnZWZ0MjhldWVmZ2M6ZDU4MDE2MmYtZmI4MS00N2QxLThhNzMtMDYyOWNiNzA4OWIz