Skip to content

Instantly share code, notes, and snippets.

View nipunbatra's full-sized avatar

Nipun Batra nipunbatra

View GitHub Profile
import pandas as pd
df = pd.read_csv("server_idle.csv")
ax = df.throughput.plot('ko-')
plt.xticks(range(len(df)), df["# threads"])
In [1]: import a as a
In [2]: a.hi()
Hi there
In [3]: a.var
a.var_1 a.var_2
In [3]: a.var_1
Out[3]: 0
Last login: Tue Mar 10 18:55:22 on ttys000
nipunbatra@Nipuns-MacBook-Pro:~/Dropbox/Public/notebooks/eco$ ipython
Python 2.7.9 |Anaconda 2.1.0 (x86_64)| (default, Dec 15 2014, 10:37:34)
Type "copyright", "credits" or "license" for more information.
IPython 2.2.0 -- An enhanced Interactive Python.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
  • Install pelican

pip install pelican

  • Install markdown

pip install markdown

  • Clone main repo
Rank Preprocessing Features used Approach Presented shortcomings
1 NA NA
  • Took the time difference of means of two time windows separated by some delay
  • Compute similarity by integrating over sqaured difference
NA
2 Didn't use HF Real and apparent power
  • Edge detection for finding events
  • For each appliance defined a window of 12 time ticks (2s) for turn on and similar for turn off signature
  • For each test day run a window matching these turn on and turn off events
  • Pair on and off events for an appliance
Doesn't work for low power and similar profile appliances
3 NA First harmonic of power Edge deyection to measure eventsFor each event averaged the data f
@nipunbatra
nipunbatra / tricks.md
Last active August 29, 2015 14:06
This gist contains some common tips and tricks
  • Merging several pdf files (needs pdftk installed)
pdftk file1.pdf file2.pdf cat output mergedfile.pdf
  • Convert image file formats to pdf (needs imagemagick installed)
convert a.png a.pdf
@nipunbatra
nipunbatra / sdr_resources.md
Last active August 29, 2015 14:05
Resources on SDR and GNURadio

Some resources to get started:

  1. Video tutorial (4 hour) from the main developer of GNUradio
    • Video 1
      • Scheduler is the core of GNURadio.
      • Flowgraph
        • Source
          • Files
          • Microphone
  • Radio h/w
Sno Offering Institute Course Name Term
1 CMU Green Computing Spring 2014
2 UMASS/IIT Bombay New Trends in Information Technology Winter 2014
3 CMU Computational Methods for Smart Grid Fall 2013
4 Cornell Topics in Computational Sustainability Spring 2011
5 UBC Computational Sustainability Spring 2011
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.