This file contains hidden or 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
#linux? | |
REM PDF-Pages.cmd | |
@echo off | |
del output.txt | |
for /r %1 %%f in (*.pdf) do pdfinfo.exe -meta "%%f" >out.txt & echo "%%f", | tr.exe -d "\r\n" >>output.txt & find "Pages:" out.txt | tr.exe -d "\r\n\055\056\072[:alpha:][:space:]" >>output.txt & echo , | tr.exe -d "\r\n" >>output.txt & find "File size:" out.txt | tr.exe -d "\055\056\072[:space:][:alpha:]" >>output.txt & echo. >>output.txt | |
del out.txt |
This file contains hidden or 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
#!/bin/bash | |
lyx --export latex master.lyx | |
lyx --export latex intro.lyx | |
lyx --export latex appendix.lyx | |
bibtex main | |
pdflatex main.tex | |
# diff | |
latexdiff --exclude-textcmd="section,subsection" master_submitted.tex master.tex > master_diff.tex |
1/2 sum f(Pij)(ui * vj - log Pij)
- mangnitude of ui vj: eventually capture log count
- skip gram: capture co-ocurances one window at a time
- glove: capture the cont of the overall statistics of how often these words appear [45:00]
d/df -log softmax(f_y) = [y - t] = δ slide 25
This file contains hidden or 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
\documentclass{article} | |
\usepackage{algorithm} % algorithm | |
\usepackage[noend]{algpseudocode} % algorithm | |
\usepackage{bm} % bold in math | |
\usepackage{array} % thick column hline | |
\makeatletter | |
\def\BState{\State\hskip-\ALG@thistlm} |
- apply the
--no-blob-protection
for all files tracked under.gitattibutes
- apply
--no-blob-protection
fot.gitattributes
itself
This file contains hidden or 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
"""A simple tool to add the name of downloaded paper pdf's in front of the id. | |
(Written by [email protected]) | |
If there are multiple downloads of same paper, replaces the original with the | |
latest download. This can be useful in a downloads folder filled with copies. | |
For instance: | |
""" | |
import glob |
This file contains hidden or 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
def caesar_cipher(msg, offset) | |
msg_arr = [] | |
msg.chars.each do |m_char| | |
if m_char.match(/[A-Z]/) | |
# wraps around 26 alphabets, mod 26 | |
msg_arr.push((m_char.ord + offset - 'A'.ord) % 26 + 'A'.ord) | |
elsif m_char.match(/[a-z]/) | |
msg_arr.push((m_char.ord + offset - 'a'.ord) % 26 + 'a'.ord) | |
else |
OlderNewer