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:
-Ley Núm. 48 de 28 de Abril de 1930
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.
0.0019194876 -0.03590483 0.052350517 0.05967858 -0.048231103 0.05959062 -0.038148668 0.01025833 0.04935347 -0.059474528 -0.03667914 -0.0025943047 -0.05561333 -0.05240771 0.04680366 -0.05864686 -0.059791517 0.059679415 -0.05906914 -0.0598212 0.037651505 0.042323433 0.029983973 -0.021352874 0.043858446 0.02875713 -0.04256004 0.014276345 -0.020493273 0.029920159 0.041798104 0.057435546 -0.054362245 0.056512486 0.05386689 0.00067989196 -0.02420122 0.0033167554 0.045350086 0.05970611 0.04799352 0.027754825 -0.0121684065 0.03893311 -0.05245091 -0.014694137 0.05913873 -0.030891888 -0.043916505 -0.051301587 -0.059414808 0.03057748 -0.059786707 -0.028549127 -0.035571612 -0.028055018 0.020185228 -0.047427334 -0.00382029 -0.039961144 -0.058457475 0.03995815 0.057438392 0.055723887 -0.033221528 -0.05417354 0.0369272 0.033796936 0.025921306 -0.035956338 -0.039730716 0.048078835 -0.041475765 0.037729796 -0.055750735 0.059234403 -0.022737432 -0.041523937 0.024587708 -0.059292644 0.026958346 -0.039985526 0.048531245 0.029405
We can't make this file beautiful and searchable because it's too large.
-0.0018387653 -0.0018390882 -0.0018383351 -0.0018382727 -0.001839193 -0.0018382734 -0.0018391071 -0.0018386943 -0.0018383606 -0.0018392887 -0.0018390946 -0.0018388039 -0.001839256 -0.0018392287 -0.0018383824 -0.0018392818 -0.0018392917 -0.0018382727 -0.0018392854 -0.0018392919 -0.0018384603 -0.0018384205 -0.0018385259 -0.0018389637 -0.0018384075 -0.0018385364 -0.0018391449 -0.00183866 -0.0018389564 -0.0018385265 -0.0018384249 -0.0018382919 -0.0018392453 -0.0018382997 -0.0018383221 -0.0018387758 -0.0018389879 -0.0018387533 -0.0018383947 -0.0018382724 -0.0018383723 -0.0018385448 -0.0018388854 -0.0018384494 -0.0018392289 -0.0018389069 -0.0018382773 -0.0018390452 -0.0018391563 -0.0018392192 -0.0018392883 -0.0018385206 -0.0018392917 -0.0018390248 -0.0018390852 -0.0018390206 -0.0018386095 -0.0018391862 -0.0018388142 -0.0018391225 -0.0018392802 -0.0018384408 -0.0018382916 -0.0018383062 -0.001839065 -0.0018392438 -0.0018384665 -0.0018384934 -0.0018385606 -0.0018390884 -0.0018391206 -0.0018383715 -0.0018391354 -0.0018
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
8 Clothing/Personal/Household Needs Homeless Services BM-6500.6500-850 Temporary Mailing Address
@asvnpr
asvnpr / similarity-search-demo.ipynb
Created February 28, 2020 19:08
Similarity Search Demo.ipynb
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
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