Skip to content

Instantly share code, notes, and snippets.

@saketkc
saketkc / .gitignore
Created October 25, 2014 22:05
.gitignore for latex/beamer projects
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr
*.alg
*.bbl
diff --git a/samblaster.cpp b/samblaster.cpp
index 14a2a40..2c33508 100644
--- a/samblaster.cpp
+++ b/samblaster.cpp
@@ -26,6 +26,14 @@
#include <map>
#include "sbhash.h"
+// Define mempcpy for Mac OS
+#ifdef __APPLE__
@saketkc
saketkc / CharScanner.patch
Created January 7, 2015 08:20
Patch for compiling antlr2 on linux
--- lib/cpp/antlr/CharScanner.hpp 2015-01-07 00:09:51.747913036 -0800
+++ lib/cpp/antlr/CharScanner.hpp 2015-01-07 00:10:31.883913806 -0800
@@ -11,6 +11,8 @@
#include <antlr/config.hpp>
#include <map>
+#include <cstring>
+#include <stdio.h>
#ifdef HAS_NOT_CCTYPE_H
diff --git libs/kxml/Makefile libs/kxml/Makefile
index 3635fa3..ff19f5b 100644
--- libs/kxml/Makefile
+++ libs/kxml/Makefile
@@ -42,9 +42,7 @@ include $(TOP)/build/Makefile.env
#
ifeq (1,$(HAVE_XML2))
-ifneq (,$(XML2_INCDIR))
INCDIRS += $(addprefix -I,$(XML2_INCDIR))
@saketkc
saketkc / MixedLM_compare_lr_test-Converging.ipynb
Created June 13, 2015 08:19
MixedLM LR Test[Converging Examples]
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@saketkc
saketkc / Vonmises Multidimensional Demo.ipynb
Created June 14, 2015 04:51
Demoing scipy.stats.vonmises
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@saketkc
saketkc / MixedLMProfile
Created June 22, 2015 18:33
n_obs=200000
Line # Hits Time Per Hit % Time Line Contents
==============================================================
356 @profile
357 def _smw_solver(s, A, AtA, B, BI):
358 """
359 Solves the system (s*I + A*B*A') * x = rhs for an arbitrary rhs.
360
361 Parameters
362 ----------
363 s : scalar
Total time: 3.02405 s
File: statsmodels/regression/mixed_linear_model.mod.py
Function: _smw_solver at line 356
Line # Hits Time Per Hit % Time Line Contents
==============================================================
356 @profile
357 def _smw_solver(s, A, AtA, B, BI):
358 """
359 Solves the system (s*I + A*B*A') * x = rhs for an arbitrary rhs.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.