Skip to content

Instantly share code, notes, and snippets.

View thejevans's full-sized avatar

John Evans thejevans

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thejevans
thejevans / output.txt
Created September 30, 2020 21:41
MPMP15: Prime Pairs Naive Solution
(1, 2, 3, 4, 7, 6, 5, 8, 9): [3, 5, 7, 11, 13, 11, 13, 17]
(1, 2, 3, 4, 9, 8, 5, 6, 7): [3, 5, 7, 13, 17, 13, 11, 13]
(1, 2, 3, 8, 5, 6, 7, 4, 9): [3, 5, 11, 13, 11, 13, 11, 13]
(1, 2, 3, 8, 9, 4, 7, 6, 5): [3, 5, 11, 17, 13, 11, 13, 11]
(1, 2, 5, 6, 7, 4, 3, 8, 9): [3, 7, 11, 13, 11, 7, 11, 17]
(1, 2, 5, 6, 7, 4, 9, 8, 3): [3, 7, 11, 13, 11, 13, 17, 11]
(1, 2, 9, 4, 3, 8, 5, 6, 7): [3, 11, 13, 7, 11, 13, 11, 13]
(1, 2, 9, 4, 7, 6, 5, 8, 3): [3, 11, 13, 11, 13, 11, 13, 11]
(1, 2, 9, 8, 3, 4, 7, 6, 5): [3, 11, 17, 11, 7, 11, 13, 11]
(1, 2, 9, 8, 5, 6, 7, 4, 3): [3, 11, 17, 13, 11, 13, 11, 7]
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Material Short Long Bandpass
ZnS 83.39 97.33
Ge 48.25 48.6
ZnS 756.31 761.47
Ge 403.51 412.85
ZnS 710.33 720.06
Ge 377.93 382.28
ZnS 696.05 705.03
Ge 370.17 370.42
ZnS 696.91 709.26
from sklearn.base import BaseEstimator, ClassifierMixin
class DiscreteNB(BaseEstimator, ClassifierMixin):
def __init__(self):
self.MLE_array = np.empty()
BaseEstimator.__init__(self)
ClassifierMixin.__init__(self)
def get_params(self, deep=True):
return BaseEstimator.get_params(self, deep=True)
//// init
//int pin1A = 11;
//int pin2A = 10;
//int duty = 25;
//
//void setup() {
// // put your setup code here, to run once:
// Serial.begin(9600);
// pinMode(pin1A, OUTPUT);
// pinMode(pin2A, OUTPUT);
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: Emily Blick
@collaborators:
@hours_spent:
"""
import random
import numpy as np
@thejevans
thejevans / myidea.py
Last active September 17, 2018 02:15
letters_guessed = 'blah'
secret_word = 'hello'
output = ''
for a in secret_word:
if a in letters_guessed:
output += a
else:
output += '_'