This file contains 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 holoviews as hv | |
from bokeh.models import CheckboxGroup | |
from bokeh.sampledata.stocks import AAPL, GOOG | |
from holoviews import opts | |
from holoviews.plotting.links import RangeToolLink | |
import pandas as pd | |
from holoviews.streams import Stream | |
hv.extension('bokeh') |
This file contains 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 holoviews as hv | |
from bokeh.models import CheckboxGroup | |
from bokeh.sampledata.stocks import AAPL, GOOG | |
from holoviews import opts | |
from holoviews.plotting.links import RangeToolLink | |
import pandas as pd | |
from holoviews.streams import Stream | |
hv.extension('bokeh') |
This file contains 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 Pair | |
{ | |
private: | |
int m_val1; | |
int m_val2; | |
public: | |
int operator[](int index) const; | |
}; | |
int Pair::operator[](int index) const |
This file contains 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
#include <algorithm> | |
#include <vector> | |
#include <cmath> | |
#include <iostream> | |
using namespace std; | |
template<typename T> | |
class dsort | |
{ |
This file contains 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
// Programmer: Jennifer Leopold date: September 17, 2014 | |
// File: hw4.cpp | |
// Purpose: Simulate a vending machine that dispenses | |
// medications. | |
// | |
// To compile: fg++ hw4.cpp -o hw4 | |
// | |
// To execute: ./hw4 | |
#include <iostream> |
This file contains 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
#include<iostream> | |
using namespace std; | |
template <class T> | |
class StaticThing | |
{ | |
public: | |
StaticThing() | |
{ |
This file contains 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
f = open(file) | |
contents = f.readlines() | |
while len(contents): | |
line = contents.pop(0) | |
#Then if you need to read another line: | |
#but you'd need to test to make sure the next line is there? | |
if len(contents) > 0: | |
line = contents.pop(0) | |
This file contains 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 LBAgentBase | |
{ | |
public: | |
// USER OVERLOADED FUNCTIONS | |
// USER OVERLOADABLE FUNCTIONS | |
void Init(); /// Called in run, sets any persistent user defined values like collected devices | |
void DetermineState(); /// Function which computes the state based on the current normal. | |
SignalValue ComputeNormal(vector uuid devicetype valuetype value); /// Using the collected state, compute normal. | |
SignalValue ComputeGateway(device state); /// Given the current state of local devices, compute & return agg | |
/// gateway. |
This file contains 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
Hello World |
This file contains 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
# Supervisord auto-start | |
# | |
# description: Auto-starts supervisord | |
# processname: supervisord | |
# pidfile: /var/run/supervisord.pid | |
SUPERVISORD=/usr/bin/supervisord | |
SUPERVISORCTL=/usr/bin/supervisorctl | |
case $1 in |
NewerOlder