diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b9e0cee --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,63 @@ +name: Deploy site + +on: + pull_request: + push: + branches: + - main + + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v5 + name: "Setup Python" + with: + python-version: '3.12' + + - run: pip install requests + - run: python createbib.py + + + - run: ls -alhtr + + - name: install pandoc + uses: docker://pandoc/core:3.1 + with: + args: -C bibfile.bib -t markdown_strict --csl american-physics-society.csl -o _includes/myPubs.md + + - name: Setup Pages + uses: actions/configure-pages@v4 + + - name: Build with Jekyll + uses: actions/jekyll-build-pages@v1 + with: + source: ./ + destination: ./_site + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 57f2eb3..2831926 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ _site .jekyll-metadata vendor Gemfile.lock -.DS_Store \ No newline at end of file +.DS_Store +.ruby-version \ No newline at end of file diff --git a/CV.md b/CV.md index cef9a78..45e1cae 100644 --- a/CV.md +++ b/CV.md @@ -1,4 +1,4 @@ --- -title : My CV +title : CV permalink : "assets/pdfs/GF-CV.pdf" --- diff --git a/_data/Publications.bib b/_data/Publications.bib index a40ebed..c64ab55 100644 --- a/_data/Publications.bib +++ b/_data/Publications.bib @@ -1,3 +1,14 @@ +@article{CMS:2024gxp, + author = "Hayrapetyan, Aram and others", + collaboration = "CMS", + title = "{Search for new physics with emerging jets in proton-proton collisions at $\sqrt{s}$ = 13 TeV}", + eprint = "2403.01556", + archivePrefix = "arXiv", + primaryClass = "hep-ex", + reportNumber = "CMS-EXO-22-015, CERN-EP-2024-049", + month = "3", + year = "2024" +} @inproceedings{Malik:2022bdz, author = "Malik, Sudhir and Karadzhinova-Ferrer, Aneliya and Hogan, Julie and Bray, Rachel and Kamalieddin, Rami and Flood, Kevin and El-Zant, Amr and Fidalgo, Guillermo and Bruhwiler, David and Bellis, Matt", title = "{Facilitating Non-HEP Career Transition}", @@ -35,13 +46,10 @@ @misc{alexander_moreno_briceno_2022_7115834 author = {Alexander Moreno Briceño and Aman Goel and Guillermo Antonio Fidalgo Rodriguez}, - title = {{Teaching Python the Sustainable Way: Lessons - Learned at HSF Training}}, + title = {Teaching Python the Sustainable Way: Lessons Learned at HSF Training}, month = sep, year = 2022, publisher = {Zenodo}, doi = {10.5281/zenodo.7115834}, url = {https://doi.org/10.5281/zenodo.7115834} } - -s \ No newline at end of file diff --git a/bibfile.bib b/bibfile.bib new file mode 100644 index 0000000..236bb0a --- /dev/null +++ b/bibfile.bib @@ -0,0 +1,56 @@ +@article{CMS:2024gxp, + author = "Hayrapetyan, Aram and others", + collaboration = "CMS", + title = "{Search for new physics with emerging jets in proton-proton collisions at $\sqrt{s}$ = 13 TeV}", + eprint = "2403.01556", + archivePrefix = "arXiv", + primaryClass = "hep-ex", + reportNumber = "CMS-EXO-22-015, CERN-EP-2024-049", + month = "3", + year = "2024" +} + +@inproceedings{Malik:2022bdz, + author = "Malik, Sudhir and Karadzhinova-Ferrer, Aneliya and Hogan, Julie and Bray, Rachel and Kamalieddin, Rami and Flood, Kevin and El-Zant, Amr and Fidalgo, Guillermo and Bruhwiler, David and Bellis, Matt", + title = "{Facilitating Non-HEP Career Transition}", + booktitle = "{Snowmass 2021}", + eprint = "2203.11665", + archivePrefix = "arXiv", + primaryClass = "physics.ed-ph", + month = "3", + year = "2022" +} + +@article{Bardeen:2022zwf, + author = "Bardeen, Marge G. and others", + title = "{Particle Physics Outreach to K-12 Schools and Opportunities in Undergraduate Education}", + eprint = "2203.10953", + archivePrefix = "arXiv", + primaryClass = "physics.ed-ph", + reportNumber = "FERMILAB-PUB-22-293-DI", + month = "3", + year = "2022" +} + +@inproceedings{Malik:2022rgw, + author = "Malik, Sudhir and others", + title = "{Broadening the scope of Education, Career and Open Science in HEP}", + booktitle = "{Snowmass 2021}", + eprint = "2203.08809", + archivePrefix = "arXiv", + primaryClass = "physics.ed-ph", + reportNumber = "FERMILAB-CONF-22-198-ND", + month = "3", + year = "2022" +} +@misc{alexander_moreno_briceno_2022_7115834, + author = {Alexander Moreno Briceño and + Aman Goel and + Guillermo Antonio Fidalgo Rodriguez}, + title = {Teaching Python the Sustainable Way: Lessons Learned at HSF Training}, + month = sep, + year = 2022, + publisher = {Zenodo}, + doi = {10.5281/zenodo.7115834}, + url = {https://doi.org/10.5281/zenodo.7115834} +} diff --git a/createbib.py b/createbib.py new file mode 100644 index 0000000..b41d54b --- /dev/null +++ b/createbib.py @@ -0,0 +1,20 @@ +import requests +response = requests.get('https://inspirehep.net/api/literature?sort=mostrecent&size=25&page=1&q=Guillermo%20Fidalgo') +url = response.json()['links']['bibtex'] +inspire = requests.get(url).text + +zenodo = r"""@misc{alexander_moreno_briceno_2022_7115834, + author = {Alexander Moreno Briceño and + Aman Goel and + Guillermo Antonio Fidalgo Rodriguez}, + title = {Teaching Python the Sustainable Way: Lessons Learned at HSF Training}, + month = sep, + year = 2022, + publisher = {Zenodo}, + doi = {10.5281/zenodo.7115834}, + url = {https://doi.org/10.5281/zenodo.7115834} +} +""" +with open("bibfile.bib",'w') as f: + f.write(inspire) + f.write(zenodo) diff --git a/index.md b/index.md index b0defc7..c95fa14 100644 --- a/index.md +++ b/index.md @@ -13,6 +13,7 @@ layout: home
+ # About me My name is Guillermo Fidalgo and I'm currently pursuing a Masters in Experimental High Energy Physics (CMS Experiment) at University of Puerto Rico Mayagüez [(UPRM)](https://www.uprm.edu/portada/) under the mentorship of professor [Sudhir Malik](http://charma.uprm.edu/~malik/). I speak fluent english and spanish. I have a major in Physics and a Minor in applied mathematics. I like watching Netflix, playing Basketball, video games and billiards. diff --git a/dates.ipynb b/prepareJsons_and_Bib.ipynb similarity index 80% rename from dates.ipynb rename to prepareJsons_and_Bib.ipynb index 5ca5dc6..20f1e4a 100644 --- a/dates.ipynb +++ b/prepareJsons_and_Bib.ipynb @@ -10,7 +10,7 @@ }, { "cell_type": "code", - "execution_count": 41, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -359,6 +359,185 @@ "confs.to_json?" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Creating the bibfile from inspire" + ] + }, + { + "cell_type": "code", + "execution_count": 156, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "@article{CMS:2024gxp,\n", + " author = \"Hayrapetyan, Aram and others\",\n", + " collaboration = \"CMS\",\n", + " title = \"{Search for new physics with emerging jets in proton-proton collisions at $\\sqrt{s}$ = 13 TeV}\",\n", + " eprint = \"2403.01556\",\n", + " archivePrefix = \"arXiv\",\n", + " primaryClass = \"hep-ex\",\n", + " reportNumber = \"CMS-EXO-22-015, CERN-EP-2024-049\",\n", + " month = \"3\",\n", + " year = \"2024\"\n", + "}\n", + "\n", + "@inproceedings{Malik:2022bdz,\n", + " author = \"Malik, Sudhir and Karadzhinova-Ferrer, Aneliya and Hogan, Julie and Bray, Rachel and Kamalieddin, Rami and Flood, Kevin and El-Zant, Amr and Fidalgo, Guillermo and Bruhwiler, David and Bellis, Matt\",\n", + " title = \"{Facilitating Non-HEP Career Transition}\",\n", + " booktitle = \"{Snowmass 2021}\",\n", + " eprint = \"2203.11665\",\n", + " archivePrefix = \"arXiv\",\n", + " primaryClass = \"physics.ed-ph\",\n", + " month = \"3\",\n", + " year = \"2022\"\n", + "}\n", + "\n", + "@article{Bardeen:2022zwf,\n", + " author = \"Bardeen, Marge G. and others\",\n", + " title = \"{Particle Physics Outreach to K-12 Schools and Opportunities in Undergraduate Education}\",\n", + " eprint = \"2203.10953\",\n", + " archivePrefix = \"arXiv\",\n", + " primaryClass = \"physics.ed-ph\",\n", + " reportNumber = \"FERMILAB-PUB-22-293-DI\",\n", + " month = \"3\",\n", + " year = \"2022\"\n", + "}\n", + "\n", + "@inproceedings{Malik:2022rgw,\n", + " author = \"Malik, Sudhir and others\",\n", + " title = \"{Broadening the scope of Education, Career and Open Science in HEP}\",\n", + " booktitle = \"{Snowmass 2021}\",\n", + " eprint = \"2203.08809\",\n", + " archivePrefix = \"arXiv\",\n", + " primaryClass = \"physics.ed-ph\",\n", + " reportNumber = \"FERMILAB-CONF-22-198-ND\",\n", + " month = \"3\",\n", + " year = \"2022\"\n", + "}\n", + "\n" + ] + } + ], + "source": [ + "import requests\n", + "response = requests.get('https://inspirehep.net/api/literature?sort=mostrecent&size=25&page=1&q=Guillermo%20Fidalgo')\n", + "url = response.json()['links']['bibtex']\n", + "# print(url)\n", + "# pprint.pprint(json_out['links'])\n", + "inspire = requests.get(url).text\n", + "print(inspire)" + ] + }, + { + "cell_type": "code", + "execution_count": 158, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "@misc{alexander_moreno_briceno_2022_7115834,\n", + " author = {Alexander Moreno Briceño and\n", + " Aman Goel and\n", + " Guillermo Antonio Fidalgo Rodriguez},\n", + " title = {Teaching Python the Sustainable Way: Lessons Learned at HSF Training},\n", + " month = sep,\n", + " year = 2022,\n", + " publisher = {Zenodo},\n", + " doi = {10.5281/zenodo.7115834},\n", + " url = {https://doi.org/10.5281/zenodo.7115834}\n", + "}\n", + "\n" + ] + } + ], + "source": [ + "zenodo = r\"\"\"@misc{alexander_moreno_briceno_2022_7115834,\n", + " author = {Alexander Moreno Briceño and\n", + " Aman Goel and\n", + " Guillermo Antonio Fidalgo Rodriguez},\n", + " title = {Teaching Python the Sustainable Way: Lessons Learned at HSF Training},\n", + " month = sep,\n", + " year = 2022,\n", + " publisher = {Zenodo},\n", + " doi = {10.5281/zenodo.7115834},\n", + " url = {https://doi.org/10.5281/zenodo.7115834}\n", + "}\n", + "\"\"\"\n", + "print(zenodo)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Making it into a script" + ] + }, + { + "cell_type": "code", + "execution_count": 109, + "metadata": {}, + "outputs": [], + "source": [ + "with open(\"bibfile.bib\",'w') as f:\n", + " f.write(inspire)\n", + " f.write(zenodo)" + ] + }, + { + "cell_type": "code", + "execution_count": 160, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Writing createbib.py\n" + ] + } + ], + "source": [ + "%%writefile createbib.py \n", + "import requests\n", + "response = requests.get('https://inspirehep.net/api/literature?sort=mostrecent&size=25&page=1&q=Guillermo%20Fidalgo')\n", + "url = response.json()['links']['bibtex']\n", + "inspire = requests.get(url).text\n", + "\n", + "zenodo = r\"\"\"@misc{alexander_moreno_briceno_2022_7115834,\n", + " author = {Alexander Moreno Briceño and\n", + " Aman Goel and\n", + " Guillermo Antonio Fidalgo Rodriguez},\n", + " title = {Teaching Python the Sustainable Way: Lessons Learned at HSF Training},\n", + " month = sep,\n", + " year = 2022,\n", + " publisher = {Zenodo},\n", + " doi = {10.5281/zenodo.7115834},\n", + " url = {https://doi.org/10.5281/zenodo.7115834}\n", + "}\n", + "\"\"\"\n", + "with open(\"bibfile.bib\",'w') as f:\n", + " f.write(inspire)\n", + " f.write(zenodo)" + ] + }, + { + "cell_type": "code", + "execution_count": 162, + "metadata": {}, + "outputs": [], + "source": [ + "! python createbib.py" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -380,7 +559,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -391,7 +570,27 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 107, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[WARNING] Could not convert TeX math \\sqrt{s}, rendering as TeX\n", + "[WARNING] Could not convert TeX math \\sqrt{s}, rendering as TeX\n" + ] + } + ], + "source": [ + "! pandoc -C bibfile.bib -t markdown_strict \\\n", + "--csl american-physics-society.csl \\\n", + "-o deleteME.md" + ] + }, + { + "cell_type": "code", + "execution_count": null, "metadata": {}, "outputs": [ { @@ -520,7 +719,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.13" + "version": "3.12.2" }, "orig_nbformat": 4 },