Name:
- TODO: Question 1
/** | |
* @file easy_rand.h | |
* | |
* Makes it easy to generate good pseudo-random values in a | |
* given numerical range using the new C++11 <random> features, | |
* without the setup overhead. | |
*/ | |
#ifndef EASY_RAND_H | |
#define EASY_RAND_H |
#!/usr/bin/env python2.7 | |
# | |
# Send email without requiring account credentials to be stored on the | |
# Docker instance. | |
# | |
# Adapted from: | |
# https://moythreads.com/wordpress/2015/07/09/sending-email-with-python-without-an-mta/ | |
# | |
# Dependencies: | |
# `smtplib` (pip install smtplib to install) |
#! /usr/bin/env python | |
################################################################################################### | |
# Given a CSV or tab-delimited input file (ASCII-encoding), replace all | |
# missing values or all occurances of a specified value with a new marker. | |
# Useful for large scientific data where some values are missing (i.e. gene | |
# microarrays, etc) | |
# | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2016 Jason L Causey, Arkansas State University |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
#################################################################### | |
# Removes any files that are not currently in the working tree from | |
# the git repository history. | |
#################################################################### | |
KEEPFILES=$(mktemp) | |
FULLLIST=$(mktemp) | |
REMOVEFILES=$(mktemp) |
Much of this was adapted from Justin Abrahms. I've just collected the bits related to setting up the environment in bash
here.
This page assumes that you have access to pip
, but that you are not the administrator (no root or sudo
access).
If you don't have virtualenv
installed, you can do:
pip install --user virtualenv
#!/bin/bash | |
script="$(basename ${0})" | |
read -r -d '' USAGE <<-EOF | |
Watches a specified process (by pid or name) and runs | |
a specified command after it exits. | |
If watching by name, the command executes when no process | |
by that name is running. | |
Usage: |
/** | |
* EXAMPLE FROM: https://iamtrask.github.io/2015/07/12/basic-python-network/ | |
* I'm replicating the "3 Layer Neural Network" code using C++ and Eigen below. | |
* This network is trying to learn to recognize an XOR in the first two elements | |
* of a 3-value vector, the third value doesn't matter. | |
*/ | |
#include <iostream> | |
#include <fstream> | |
#include <ctime> |