Skip to content

Instantly share code, notes, and snippets.

View jkgiesler's full-sized avatar

Jason Giesler jkgiesler

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jkgiesler on github.
  • I am jkgiesler (https://keybase.io/jkgiesler) on keybase.
  • I have a public key ASBll0gHeQ0O9z9wz7P2UMsqoeKGF1YATrH5asXTwjvt6wo

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from __future__ import print_function
import numpy as np
from xlwings import Workbook, Range
#Deep excel not included please find it here: http://www.deepexcel.net/
def run_test_data():
with open('test.csv','rt') as f:
with open('result.csv','wt') as r:
#include <iostream>
#include <math.h>
#include <vector>
bool is_prime(int n){
if(n<2) return false;
if(n==2) return true;
if (!(n & 1)) return false;
int stop_n = floor(sqrt(n));
@jkgiesler
jkgiesler / google_markov.py
Created April 26, 2015 17:06
Markov bot based on google search history.
import os
import json
import pickle
import random
# making a markov bot based on my search history. 21k searches total
# markov code borrowed entirely from:
# http://stackoverflow.com/questions/5306729/how-do-markov-chain-chatbots-work
def parse_searches():
corpus = open('corpus.txt', 'wt')