This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#say `x` is list of noisy values | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
x = np.random.uniform(size=100) | |
mean_x = pd.Series(x).rolling(window=2).mean() | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.vivek.foogle; | |
import android.app.PendingIntent; | |
import android.content.Intent; | |
import android.content.SharedPreferences; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.location.Location; | |
import android.net.ParseException; | |
import android.app.Notification; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class KNN(Classifier): | |
def __init__(self, dataObj=None, headers=[], categories=None, K=None): | |
'''Take in a Data object with N points, a set of F headers, and a | |
matrix of categories, with one category label for each data point.''' | |
# call the parent init with the type | |
Classifier.__init__(self, 'KNN Classifier') | |
# store the headers used for classification | |
self.headers = headers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RPi.GPIO as GPIO | |
import time | |
import json | |
import gspread | |
from oauth2client.client import SignedJwtAssertionCredentials | |
import datetime | |
#Access to Google spreadsheet for storing data | |
json_key = json.load(open('clientid.json')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package edu.colby.ontrack.ontrack; | |
import android.content.Intent; | |
import android.support.v7.app.ActionBarActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.Menu; | |
import android.view.MenuItem; | |
import android.view.View; | |
import android.widget.Button; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""author: VIvek Sah | |
filename: freeFlix.py v3.0 | |
description: takes the search input from command line. searches putlocker.is database for that movie, | |
gets te source file, and opens the file in a browser | |
""" | |
from selenium import webdriver | |
from Tkinter import * | |
import re | |
import subprocess |
NewerOlder