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
third_party
@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,
@dgmorales
dgmorales / Makefile
Last active October 9, 2024 09:53
Example Makefile for creating deb/rpm packages with jordansissel/fpm
# This is an example Makefile for quick package creation
#
# It uses FPM [1] to generate simple packages.
# - If you need more features or a greater quality package, use debian
# standard tools for packaging.
# - Do not use checkinstall. Use FPM instead.
#
# [1] (https://github.com/jordansissel/fpm/wiki)
# IMPORTANT:
@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")
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active November 14, 2024 15:40
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@seankross
seankross / Sieve of Eratosthenes.R
Last active October 20, 2022 17:09
Counting primes using the Sieve of Eratosthenes in R
# The Sieve of Eratosthenes
# Given a number greater than zero this function will return a list of primes between 2 and the number given as argument.
sieveOfEratosthenes <- function(num){
values <- rep(TRUE, num)
values[1] <- FALSE
prev.prime <- 2
for(i in prev.prime:sqrt(num)){
values[seq.int(2 * prev.prime, num, prev.prime)] <- FALSE
prev.prime <- prev.prime + min(which(values[(prev.prime + 1) : num]))
@keshavsaharia
keshavsaharia / Mathematica - ASCII
Created June 30, 2013 05:44
A Mathematica function for generating beautiful ASCII art out of any image.
(*ASCIIrange = { " ","` ",". "," .","..",".:",":.","::",":#","##","#@","x@","o@","@@","@X","XX"};*)
(*ASCIIrange = { " "," ",".","..",".:","::",":i","io","ex","pq","Xq","AG","ZY","VW"};*)
(* Produces the best results by randomizing letters using a held random choice call *)
ASCIIrange = {" ", Hold[RandomChoice[{" ", " `"}]], ". ", "..",
Hold[RandomChoice[{".:", ":."}]],
Hold[RandomChoice[{"::", ";:", ":;", ";;"}]],
Hold[RandomChoice[{":x", "x:"}]],
Hold[RandomChoice[{"io", "ae", "oc"}]],
Hold[RandomChoice[{"yj", "tp", "qw"}]],
@jknowles
jknowles / TEXandRStudioEnv
Created January 27, 2012 17:19
Set R Sysenvironment for LaTeX and BibTex in RStudio
#Set Environment Variables
TEXINPUTS="C:\\" #Path to tex file in Windows
Sys.setenv(TEXINPUTS="C:\\~", BIBINPUTS=TEXINPUTS,BSTINPUTS=TEXINPUTS)
#Path to texfiles in Windows, set BIB files and BST files the same
#Run before clicking "Compile PDF"
@kogakure
kogakure / .gitignore
Last active December 17, 2023 08:21
Git: .gitignore file for LaTeX projects
*.acn
*.acr
*.alg
*.aux
*.bak
*.bbl
*.bcf
*.blg
*.brf
*.bst