Skip to content

Instantly share code, notes, and snippets.

View shriphani's full-sized avatar

Shriphani Palakodety shriphani

View GitHub Profile
export PATH=/opt/openwebrtc-0.3/bin:$PATH
export LD_LIBRARY_PATH=/opt/openwebrtc-0.3/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=/opt/openwebrtc-0.3/lib/pkgconfig:$PKG_CONFIG_PATH
export GST_PLUGIN_PATH_1_0=/opt/openwebrtc-0.3/lib/gstreamer-1.0/:$GST_PLUGIN_PATH_1_0
export PYTHONPATH=/opt/openwebrtc-0.3/lib/python2.7/site-packages/:$PYTHONPATH
c = get_config()
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8000
# Whether to trust or not X-Scheme/X-Forwarded-Proto and X-Real-Ip/X-Forwarded-
# For headerssent by the upstream reverse proxy. Necessary if the proxy handles
# SSL
c.NotebookApp.trust_xheaders = True
# Include our extra templates
myfig = plot([x -> savings(x, 0.01), x -> savings(x, 0.02), x -> savings(x, 0.05), x -> savings(x, 0.1), x -> savings(x, 0.15)], 1, 30)
draw(SVG("v.svg", 4inch, 3inch), myfig)
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration."
(setq-default
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (ie. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '()
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.nd4j</groupId>
<artifactId>nd4j-jcublas-7</artifactId>
<version>${nd4j.version}</version>
</dependency>
<dependency>
<groupId>org.nd4j</groupId>
@shriphani
shriphani / convert_lfw_siamese_data.cpp
Last active December 4, 2016 15:12
Caffe LFW Training
//
// This script converts the lfw dataset to the leveldb format used
// by caffe to train siamese network.
// Usage:
// convert_lfw_data input_image_file input_label_file output_db_file
#include <fstream> // NOLINT(readability/streams)
#include <string>
#include "glog/logging.h"
12:35:54,682 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
12:35:54,683 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
12:35:54,683 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/media/home/shriphani/Documents/dl4j-0.0.3.3-examples/target/classes/logback.xml]
12:35:54,684 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
12:35:54,684 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/media/home/shriphani/.m2/repository/org/deeplearning4j/deeplearning4j-core/0.0.3.3.3.alpha1-SNAPSHOT/deeplearning4j-core-0.0.3.3.3.alpha1-SNAPSHOT.jar!/logback.xml]
12:35:54,684 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/media/home/shriphani/.m2/repository/org/nd4j/nd4j-instrumentation/0.0.3.5.5.3-
➜ bandwidthTest ./bandwidthTest -h
[CUDA Bandwidth Test] - Starting...
Running on...
Device 0: GRID K520
Quick Mode
Host to Device Bandwidth, 1 Device(s)
PINNED Memory Transfers
Transfer Size (Bytes) Bandwidth(MB/s)
➜ gpu_init git:(master) ✗ ssh -i gpu-instances-2.pem -Y -v [email protected]
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: Connecting to 54.149.16.22 [54.149.16.22] port 22.
debug1: Connection established.
debug1: identity file gpu-instances-2.pem type -1
debug1: identity file gpu-instances-2.pem-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
@shriphani
shriphani / gist:c84eee099a9b1bda9a2e
Created October 22, 2014 22:42
MRR for best tokenization
cosine=0.1346 rank=4 qid=1 rel=1 In A.D. 79, long-dormant Mount Vesuvius erupted, burying in volcanic ash the Roman city of Pompeii; an estimated 20,000 people died.
cosine=0.3144 rank=1 qid=2 rel=1 When Michael Jordan--one of the greatest basketball player of all time--made what was expected to be his last trip to play in Atlanta last March, an NBA record 62,046 fans turned out to see him and the Bulls.
cosine=0.5040 rank=1 qid=3 rel=1 Alaska was purchased from Russia in year 1867.
cosine=0.6659 rank=1 qid=4 rel=1 On March 2, 1962, Wilt Chamberlain scored a record 100 points in a game against the New York Knicks.
cosine=0.3941 rank=2 qid=5 rel=1 People of China have mixed feelings about River, which they often call "sorrow of China"
cosine=0.6682 rank=2 qid=6 rel=1 Roger Bannister was the first to break the four-minute mile barrier.
cosine=0.1690 rank=3 qid=7 rel=1 And that's not even to mention the breathtaking beauty of Alaska that became, in 195