This example will use the text of Grimms' Fairy Tales available from Project Gutenberg.
The grep
tool is installed by default on most Linux and UNIX-like systems.
Documentation is available at:
/** | |
* 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> |
#!/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: |
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
#!/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) |
I hereby claim:
To claim this, I am signing this object:
#! /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 |
#!/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) |
/** | |
* @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 |