Skip to content

Instantly share code, notes, and snippets.

View asvnpr's full-sized avatar

Alejandro Vega asvnpr

  • Wovenware
  • Puerto Rico
View GitHub Profile
This file has been truncated, but you can view the full file.
diff --git a/codigo-civil-vigente.txt b/codigo-civil-senado-scan-ocr.txt
index b3d171f..85f9183 100755
--- a/codigo-civil-vigente.txt
+++ b/codigo-civil-senado-scan-ocr.txt
@@ -1,6709 +1,17435 @@
-Rev. 05 de marzo de 2020 www.ogp.pr.gov Página 1 de 350
-“Código Civil de Puerto Rico”, Edición de 1930
-[Ir a Tabla de Contenido]
-(Contiene enmiendas incorporadas por las siguientes leyes:
Index Category Service_Name Code Code_Name
0 Education School District HL-8120.8200 Student Transportation Services
1 Food/Meals Food Pantry BD-1800.2000 Food Pantries
2 Food/Meals God's Kitchen BD-5000.8300 Soup Kitchens
3 Arts, Culture and Recreation Computer Classes PL-7400.1500 Computer and Related Technology Classes
4 Employment Job Search Assistance ND-3500.3600 Job Search/Placement
5 Legal, Consumer and Public Safety Services Ex-Offender Services FF-1900 Ex-Offender Reentry Programs
6 Legal, Consumer and Public Safety Services Special Education Advocacy FT-1000.6600 Protection and Advocacy for Individuals With Disabilities
7 Volunteers/Donations Clothing Pantry TI-1800.1500 Clothing Donation Programs
8 Clothing/Personal/Household Needs Homeless Services BM-6500.6500-850 Temporary Mailing Address
{
"embeddings": [
{
"tensorName": "Indiana 211 Social Services USE Embeddings",
"tensorShape": [
5627,
512
],
"tensorPath": "https://gist.githubusercontent.com/asvnpr/6e68bfcabcb89ad39e55dc51ae6ba65d/raw/3aa6e6cbdd46683b1c30ce0d5dcf30a0d487c67f/services_universal-sentence-encoder_v4_vectors.tsv",
"metadataPath": "https://gist.githubusercontent.com/asvnpr/8a459126b147458b60b42a316ea967cd/raw/7c80958bfbffd4a8b49bb9d46dcb41481562ce90/services_universal-sentence-encoder_v4_labels.tsv"
We can't make this file beautiful and searchable because it's too large.
We can't make this file beautiful and searchable because it's too large.
We can't make this file beautiful and searchable because it's too large.
Index Category Service_Name Code Code_Name
0 Education School District HL-8120.8200 Student Transportation Services
1 Food/Meals Food Pantry BD-1800.2000 Food Pantries
2 Food/Meals God's Kitchen BD-5000.8300 Soup Kitchens
3 Arts, Culture and Recreation Computer Classes PL-7400.1500 Computer and Related Technology Classes
4 Employment Job Search Assistance ND-3500.3600 Job Search/Placement
5 Legal, Consumer and Public Safety Services Ex-Offender Services FF-1900 Ex-Offender Reentry Programs
6 Legal, Consumer and Public Safety Services Special Education Advocacy FT-1000.6600 Protection and Advocacy for Individuals With Disabilities
7 Volunteers/Donations Clothing Pantry TI-1800.1500 Clothing Donation Programs
@asvnpr
asvnpr / similarity-search-demo.ipynb
Created February 28, 2020 19:08
Similarity Search Demo.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@asvnpr
asvnpr / topic_modeling-demo.ipynb
Last active February 27, 2020 18:20
topic_modeling demo.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@asvnpr
asvnpr / pyLDAvis.html
Last active February 27, 2020 16:08
Care-Net Topic Model LDA vis
<link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/bmabey/pyLDAvis/files/ldavis.v1.0.0.css">
<div id="ldavis_el32381401067949332486923383094"></div>
<script type="text/javascript">
var ldavis_el32381401067949332486923383094_data = {"mdsDat": {"x": [-157.0683135986328, -29.18461799621582, 75.21026611328125, -136.37696838378906, 13.511815071105957, -76.70690155029297, -99.0778579711914, 137.46820068359375, -43.97426986694336, -43.669185638427734, 0.620433509349823, 70.11038208007812, -100.59305572509766, 75.86831665039062, 87.5549545288086, -69.06086730957031, 115.11629486083984, 30.58905029296875, -160.81356811523438, 138.0100555419922, 15.351123809814453, 10.904839515686035, 39.229736328125, -88.58614349365234, -28.109970092773438], "y": [-10.944620132446289, 119.14608001708984, 55.861595153808594, -86.61174774169922, 44.31654739379883, 168.01365661621094, 100.30857849121094, 7.732316493988037, 2.4529268741607666, 61.07630920410156, -126.78361511230469, -5.224271297454834, 29.7056293487548
#! /usr/bin/env bash
# ask user for what to back up
read -p "Please enter the directory or file you wish to backup: " src
# compress and package
tar -czvf "$src-backup.tar.gz" "$src"
bak="$src-backup.tar.gz"
# ask where we're storing our backup
read -p "Enter directory or server where you want to store your backup: " dst
# check for remote destination
if echo "$dst" | grep -qe "(.*@.*\..*)" | grep -qe "^:$"; then dst+=':'; fi