Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
\ProvidesPackage{latex-macros} | |
% Require packages | |
\RequirePackage{amsmath,amssymb,amsthm} | |
\RequirePackage{bm,bbm} | |
\RequirePackage{hyperref} | |
% mathbb letters | |
\newcommand{\Abb}{\mathbb{A}} | |
%\newcommand{\Bbb}{\mathbb{B}} |
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
--- find programming languages a user has been using (only as an owner) | |
--- contains 19M rows 10M of them are not NULL | |
select user_id, group_concat(org_id order by org_id separator ',') | |
from organization_members | |
group by user_id; |
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 | |
awk '{print $2 " " $1}' $1 >$1_rev | |
cat $1 $1_rev >$1_merged |
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 | |
# Sync two git LFS remotes. This is very useful when you | |
# have two remotes (e.g. upstream and fork) and they have | |
# different files on the LFS storage. Trying git lfs fetch --all | |
# yields an error for missing objects if the two repos are not | |
# synced. The purpose of this script is to overcome this issue | |
# with Git LFS | |
# | |
# Usage: git-lfs-sync.sh source destination branch | |
# |
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
sudo: required | |
dist: trusty | |
before_install: | |
- sudo apt-get -qq update && sudo apt-get install -y --no-install-recommends texlive-fonts-recommended texlive-latex-extra texlive-fonts-extra dvipng texlive-latex-recommended | |
script: | |
- pdflatex -interaction=nonstopmode -halt-on-error -output-directory cv/ cv/cv.tex | |
- git config --global user.email "[email protected]" | |
- git config --global user.name "Marios Papachristou" | |
- git commit -am 'Auto build CV' | |
# Setup GH_TOKEN as an environment variable for Travis CI from Github to match your API Token |
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 | |
# Usage: build.sh filename (without .tex extension) | |
pdflatex -interaction=nonstopmode -halt-on-error $1.tex && | |
bibtex $1.aux && | |
pdflatex -interaction=nonstopmode -halt-on-error $1.tex && | |
pdflatex -interaction=nonstopmode -halt-on-error $1.tex |
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 | |
# Usage download_gdrive.sh file_id outfile | |
CONFIRM=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate "https://docs.google.com/uc?export=download&id=$1" -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p') | |
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$CONFIRM&id=$1" -O $2 | |
rm -rf /tmp/cookies.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
''' | |
Simple MLE Estimator to demonstrate Pytorch optimization capabilities | |
This program estimates the parameter of an exponential random variable | |
using an MLE Estimator. | |
Author: Marios Papachristou | |
''' | |
import torch | |
import numpy as np |
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 | |
# Anonymization of source code for blind review paper submission | |
# using sed to replace words with XXX. It also removes the .git | |
# directory in the anonymized project to avoid exposing any | |
# sensitive information about the author(s). | |
# | |
# Usage: anonymize.sh /path/to/project words_to_anonymize.txt | |
# words_to_anonymize.txt contains a word in each line | |
# |
NewerOlder