I hereby claim:
- I am papachristoumarios on github.
- I am papachristoum (https://keybase.io/papachristoum) on keybase.
- I have a public key ASCwPSDUnLdOuoNGV6OGnHSKBhQywhyLq8OFKh2cDFAZhgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| \ProvidesPackage{latex-macros} | |
| % Require packages | |
| \RequirePackage{amsmath,amssymb,amsthm} | |
| \RequirePackage{bm,bbm} | |
| \RequirePackage{hyperref} | |
| % mathbb letters | |
| \newcommand{\Abb}{\mathbb{A}} | |
| %\newcommand{\Bbb}{\mathbb{B}} |
| --- 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; |
| #!/bin/bash | |
| awk '{print $2 " " $1}' $1 >$1_rev | |
| cat $1 $1_rev >$1_merged |
| #!/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 | |
| # |
| 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 |
| #!/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 |
| #!/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 |
| ''' | |
| 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 |