Skip to content

Instantly share code, notes, and snippets.

View anuragm's full-sized avatar

Anurag Mishra anuragm

  • Amazon AWS
  • Los Angeles, CA
View GitHub Profile
@anuragm
anuragm / solarized-bash.theme
Created May 18, 2020 19:09
solarized.bash.theme
# Sexy Solarized Bash Prompt, inspired by "Extravagant Zsh Prompt".
# https://gist.github.com/SeanPONeil/3717199
# Updated with Conda support by @anuragm
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then TERM=gnome-256color; fi
if tput setaf 1 &> /dev/null; then
tput sgr0
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then
BASE03=$(tput setaf 234)
BASE02=$(tput setaf 235)
@anuragm
anuragm / use-sRGB-for-image-manipulation.patch
Last active June 23, 2017 23:04
Emacs 25.2 patch to fix wrong XPM color generation.
From 725848d643bb0124c08dfa16bb3b694279e6e2c5 Mon Sep 17 00:00:00 2001
From: Anurag Mishra <anuragmi@usc.edu>
Date: Fri, 23 Jun 2017 13:32:58 -0700
Subject: [PATCH 1/1] On OSX >= 10.7, use sRGB for image manipulation
---
src/nsimage.m | 25 +++++++++++++++++++++----
src/nsmenu.m | 4 ++--
2 files changed, 23 insertions(+), 6 deletions(-)
@anuragm
anuragm / marginpatch.diff
Created May 9, 2016 10:16
Patch iTerm2 to reduce horizontal margins
diff --git a/sources/iTermTextDrawingHelper.h b/sources/iTermTextDrawingHelper.h
index 1cf1032..47f6b58 100644
--- a/sources/iTermTextDrawingHelper.h
+++ b/sources/iTermTextDrawingHelper.h
@@ -13,7 +13,7 @@
#import "VT100GridTypes.h"
// Number of pixels margin on left and right edge.
-#define MARGIN 5
+#define MARGIN 2
@article{smolin_classical_2013,
title = {Classical signature of quantum annealing},
abstract = {A pair of recent articles concluded that the D-Wave One machine actually operates in the quantum regime, rather than performing some classical evolution. Here we give a classical model that leads to the same behaviors used in those works to infer quantum effects. Thus, the evidence presented does not demonstrate the presence of quantum effects.},
timestamp = {2016-04-18T23:47:42Z},
urldate = {2016-04-18},
journal = {arXiv:1305.4904 [quant-ph]},
author = {Smolin, John A. and Smith, Graeme},
month = may,
year = {2013},
@article{smolin_classical_2013,
title = {Classical signature of quantum annealing},
abstract = {A pair of recent articles concluded that the D-Wave One machine actually operates in the quantum regime, rather than performing some classical evolution. Here we give a classical model that leads to the same behaviors used in those works to infer quantum effects. Thus, the evidence presented does not demonstrate the presence of quantum effects.},
timestamp = {2016-04-18T23:47:42Z},
urldate = {2016-04-18},
journal = {arXiv:1305.4904 [quant-ph]},
author = {Smolin, John A. and Smith, Graeme},
month = may,
year = {2013},
@article{smolin_classical_2013,
title = {Classical signature of quantum annealing},
url = {http://arxiv.org/abs/1305.4904},
abstract = {A pair of recent articles concluded that the D-Wave One machine actually operates in the quantum regime, rather than performing some classical evolution. Here we give a classical model that leads to the same behaviors used in those works to infer quantum effects. Thus, the evidence presented does not demonstrate the presence of quantum effects.},
timestamp = {2016-04-18T23:47:42Z},
archivePrefix = {arXiv},
primaryClass = {quant-ph},
author = {Smolin, John A. and Smith, Graeme},
urldate = {2016-04-18},
@article{smolin_classical_2013,
title = {Classical signature of quantum annealing},
url = {http://arxiv.org/abs/1305.4904},
abstract = {A pair of recent articles concluded that the D-Wave One machine actually operates in the quantum regime, rather than performing some classical evolution. Here we give a classical model that leads to the same behaviors used in those works to infer quantum effects. Thus, the evidence presented does not demonstrate the presence of quantum effects.},
timestamp = {2016-04-18T23:47:42Z},
archivePrefix = {arXiv},
primaryClass = {quant-ph},
author = {Smolin, John A. and Smith, Graeme},
urldate = {2016-04-18},
{
"config": {
"id": "36a3b0b5-bad0-4a04-b79b-441c7cef77db",
"label": "BetterBibTeX JSON",
"release": "1.6.45",
"preferences": {
"asciiBibLaTeX": false,
"asciiBibTeX": true,
"attachmentsNoMetadata": false,
"autoAbbrevStyle": "http://www.zotero.org/styles/cell",