Skip to content

Instantly share code, notes, and snippets.

View cderekw4224's full-sized avatar
💾

Derek Christensen cderekw4224

💾
View GitHub Profile
# https://towardsdatascience.com/linear-programming-using-python-priyansh-22b5ee888fe0
# Toy Example:
# If we had Decision Varibales that will use i and j for example
# with 2 warehouses & 4 customers
# Data Definition
# Let’s define the data and assign it to variables which can be then used to feed into the model, objective function and constraints.
n_warehouses = 2
@cderekw4224
cderekw4224 / 2019-avgPrec_CleanPrint_ALL.py
Created April 16, 2019 03:17
pyinstaller --onefile 2019-avgPrec_CleanPrint_ALL.py --> RecursionError: maximum recursion depth exceeded
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 13 09:50:32 2017
@author: Derek Christensen
The Vector Space Model: Implementation
HW 2
CIS 833 Information Retrieval and Text Mining
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<title>christensen_finalprj</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<style type="text/css">
@cderekw4224
cderekw4224 / slicing for rows
Created February 7, 2019 17:49
slicing for rows
'''
Python 2.7
How can I and/or why can't I slice for a specific row or range of rows?
See code lines & corresponding output below.
'''
print(type(freq_word_Corpus))
runfile('C:/Users/Derek Christensen/Dropbox/KSU/imse865advsim/17-G-Projects/prj4_5/20180527-imse865advsim-prj4-stat-dchristensen-2A_RNG_test.py', wdir='C:/Users/Derek Christensen/Dropbox/KSU/imse865advsim/17-G-Projects/prj4_5')
hello, this is line numner 191
(---------------rep = 0 --------------)
curarrseed = 50001
curdepseed = 94907
curdepseed = 94907
u1 = 0.0105404310107
curdepseed = 2847365
u2 = 0.31623014472
// Lab 2 – Week 2
/* Lab2LoopsArrays2.java
* Author: Derek Christensen
* Date: 20180425
*/
/** Lab2LoopsArrays2.java
PART 1:
Store and analyze Exam Scores, including:
- input
Output Payroll.java:
What is your name? Derek
How many hours did you work this week? 20
What is your hourly pay rate? 5
Hello, Derek
Your gross pay is $100.0
Output TextNextLineFlow.java with Line 33 commented out:
( //keyboard.nextLine(); //without this line program will not work)