Skip to content

Instantly share code, notes, and snippets.

Prashant Karmakar vyuh

Block or report user

Report or block vyuh

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
vyuh / data-walk-email-bug-report.txt
Last active May 14, 2018
Data::Walk Bug Report and Patch
View data-walk-email-bug-report.txt
Subject: Top Level Object should not have a container
Data::Walk Version 2.01 assigns `container` and `type` for top-level objects
in an inconsistent way. On one hand, A scalar at top level gets the
arrayref of `@args` as `container`, and `ARRAY` as `type`. Whereas
a hashref, or arrayref, at top-level gets *ITSELF* as the `container`,
and its own ref type (`ARRAY|HASH`) as `type`. The latter behaviour
is not consistent because it implies that the item is contained in
vyuh / trymathwords.tex
Created Jan 4, 2018
A nice plain tex macro for tryin control sequences in math mode.
View trymathwords.tex
\def\readwords#1 #2\relax{%
vyuh /
Created Dec 22, 2017
Coordinate Geometry Functions
use List::Util qw/sum0 pairmap/;
sub zip2 {
@_[ map { $_, $_ + @_ / 2 } 0 .. ( @_ / 2 - 1 ) ];
sub zip3 {
@_[ map { $_, $_ + @_ / 3, $_ + 2 * ( @_ / 3 ) } 0 .. ( @_ / 3 - 1 ) ];
vyuh / fonts.conf
Created Dec 20, 2017
Fontconfig file for better firefox fonts on *NIX on websites like Github and Twitter
View fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- Set preferred serif, sans serif, and monospace fonts. -->
<prefer><family>Droid Serif</family></prefer>
vyuh / cheatsheet_link.txt
Created Dec 17, 2017
Links to Cheatsheets
View cheatsheet_link.txt
vyuh / typesetting_devnagari.xelatex
Created Dec 16, 2017
Typesetting Devnagari in XeLaTeX
View typesetting_devnagari.xelatex
vyuh / .fonts.conf
Last active Nov 11, 2017
Reject Bland fonts in Ubuntu
View .fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<include ignore_missing="yes">/absolute/path/to/select.conf</include>
vyuh /
Last active Oct 26, 2017
Trying to document how I built Elm Platform on FreeBSD 11.1
# make sure lzlib exists on system.
# run `pkg install lzlib`
# this is the only step that required superuser privileges.
# For building at <PREFIX>/Elm-Platform/<VERSION>, run:
# Blindly downloads ghc 7.10.2, keeps it beside Elm-Platform in <PREFIX>
vyuh /
Last active Nov 2, 2016
Install heroku without sudo on linux
# set appropriate HEROKU_DIR env variable
# default is ~/.local/heroku
# download and extract the client tarball
vyuh /
Last active Nov 18, 2016
Potential Bug Fix: Sqlite CLI removes CR characters in end of line even if they are inside quoted string literals.


SQLite CLI removes '\r' even from inside quoted strings that appear in SQL input piped into sqlite (CLI). These are never replaced later. A program should not tamper literals in this undocumented way.


Files in this repository face automatic CRLF translation

You can’t perform that action at this time.