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!
\
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Locates the tensorflow library and include dirs. | |
include(FindPackageHandleStandardArgs) | |
unset(TENSORFLOW_FOUND) | |
find_path(Tensorflow_INCLUDE_DIR | |
NAMES | |
tensorflow/core | |
tensorflow/cc | |
third_party |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.insertSpaces": false, | |
"files.associations": { | |
"*.pl": "prolog", | |
"*.m": "matlab", | |
"*.ins": "latex", | |
"*.dtx": "latex" | |
}, | |
"files.exclude": { | |
"**/.git": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x = seq(-3.5,3.5,0.1) | |
pnorm(x) | |
plot(x,dnorm(x),type="l") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(*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"}]], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.acn | |
*.acr | |
*.alg | |
*.aux | |
*.bak | |
*.bbl | |
*.bcf | |
*.blg | |
*.brf | |
*.bst |