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
| library(ggplot2) | |
| library(jsonlite) | |
| library(rmongodb) | |
| setwd("C:/Users/User/Desktop/LiF") | |
| BASE_URL = "http://localhost:8080" | |
| key = "51fc58011" | |
| question_nr = 2626 | |
| customers <- 4000 |
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
| # -*- coding: utf-8 -*- | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import urllib,json,codecs | |
| #change to pymongo for greater compatibility | |
| import iopro | |
| def getobs( x, max = 5, err=0 ): | |
| if (err==0): |
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
| # -*- coding: utf-8 -*- | |
| #from IPython import get_ipython | |
| #get_ipython().magic('reset -sf') | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import 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
| # -*- coding: utf-8 -*- | |
| ## IPython Reset | |
| #from IPython import get_ipython | |
| #get_ipython().magic('reset -sf') | |
| ############################################################################## | |
| import numpy as np |
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
| ############################################################## | |
| # | |
| # read_totem_data.R | |
| # | |
| # Import script | |
| # | |
| # Parses raw Totem Sensor accelerometer data in R | |
| # And looks for peaks (steps, cycles, repeats) | |
| # |
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
| #### | |
| # | |
| # read_sensor_data.R | |
| # | |
| # Import script. Parses MLX sensor data | |
| # | |
| # Robin van Emden - [email protected] - 2015 | |
| # | |
| #### |
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
| <?php | |
| /** | |
| * A php implementation of the Hungarian algorithm for solving the assignment | |
| * problem. An instance of the assignment problem consists of a number of | |
| * workers along with a number of jobs and a cost matrix which gives the cost of | |
| * assigning the i'th worker to the j'th job at position (i, j). The goal is to | |
| * find an assignment of workers to jobs so that no job is assigned more than | |
| * one worker and so that no worker is assigned to more than one job in such a | |
| * manner so as to minimize the total cost of completing the jobs. |
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 io.pavlov.bleuart; | |
| import android.app.Service; | |
| import android.bluetooth.BluetoothAdapter; | |
| import android.bluetooth.BluetoothDevice; | |
| import android.bluetooth.BluetoothGatt; | |
| import android.bluetooth.BluetoothGattCallback; | |
| import android.bluetooth.BluetoothGattCharacteristic; | |
| import android.bluetooth.BluetoothGattDescriptor; | |
| import android.bluetooth.BluetoothGattService; |
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.hollandhaptics.babyapp; | |
| import java.io.DataOutputStream; | |
| import java.io.File; | |
| import java.io.FileInputStream; | |
| import java.io.IOException; | |
| import java.net.HttpURLConnection; | |
| import java.net.MalformedURLException; | |
| import java.net.URL; | |
| import java.text.SimpleDateFormat; |