Skip to content

Instantly share code, notes, and snippets.

View TexAgg's full-sized avatar

Matt G TexAgg

View GitHub Profile
# Locates the tensorflow library and include dirs.
include(FindPackageHandleStandardArgs)
unset(TENSORFLOW_FOUND)
find_path(Tensorflow_INCLUDE_DIR
NAMES
tensorflow/core
tensorflow/cc
tensorflow/c
@TexAgg
TexAgg / FindPistache.cmake
Created January 10, 2017 23:23
Find the C++ libary pistache
# CMake module I wrote for finding the library Pistache.
set(Pistache_ROOT_DIR
"${Pistache_ROOT_DIR}"
CACHE
PATH
"Where to start looking for this component.")
if(WIN32)
find_path(Pistache_INCLUDE_DIR
@TexAgg
TexAgg / settings.json
Last active June 8, 2017 23:33
My settings for visual studio code
{
"editor.insertSpaces": false,
"files.associations": {
"*.pl": "prolog",
"*.m": "matlab",
"*.ins": "latex",
"*.dtx": "latex"
},
"files.exclude": {
"**/.git": true,
@TexAgg
TexAgg / MatrixGame.wl
Created December 10, 2016 02:26
A package for doing handy calculations with game-theory-style matrix games.
(* ::Package:: *)
(* A package for doing handy calculations with game-theory-style matrix games. *)
BeginPackage["MatrixGame`"]
getSaddlePoints::usage = "Get the saddle points of a matrix game m"
@TexAgg
TexAgg / mazes.wl
Last active July 23, 2017 21:13
Maze generation in Mathematica
(* ::Package:: *)
(* ::Title:: *)
(*Mazes*)
(* Mazes in Mathematica: http://bit.ly/2tBFMnT *)
(* Clear variables. *)
@echo off
REM This is a startup script which opens Explorer at the project root,
REM as well as Visual Studio Code.
REM Opening VSCode should be the last line, because commands after that don't work.
%SystemRoot%\explorer.exe "%cd%"
code "%cd%"
@TexAgg
TexAgg / normal.R
Last active March 30, 2016 00:09
Plot a standard normal curve in R
x = seq(-3.5,3.5,0.1)
pnorm(x)
plot(x,dnorm(x),type="l")
@TexAgg
TexAgg / meta-tags.md
Created February 5, 2016 19:33 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@TexAgg
TexAgg / fourier_series.R
Last active December 26, 2016 22:36
Edit the function in fun, bound, and the value of n, and plot the fourier series for fun on the interval [-bound,bound] with n terms. Used with assignment 1 in A First Course in Wavelets with Fourier Analysis, http://www.math.tamu.edu/~francis.narcowich/m414/s16/m414s16_hwc.html.
#Given a function, calculates the
#Fourier series up to n terms
#Clear previous variables
rm(list=ls())
#For complex integration
library(elliptic)
#The function to approximate