Skip to content

Instantly share code, notes, and snippets.

View macarthuror's full-sized avatar
🖖
🤖

Arturo Ortega macarthuror

🖖
🤖
  • México City
View GitHub Profile
@macarthuror
macarthuror / curl.sh
Created January 27, 2020 19:50 — forked from davimacedo/curl.sh
Example of importing data with cloud functions. See a live example at https://www.back4app.com/database/davimacedo/parse-import-example
curl -X POST \
-H "X-Parse-Application-Id: LL9oIdzIkmwl5xyowQQu0fTmXyUWfet9RuAzwHfj" \
-H "X-Parse-REST-API-Key: R3S8PYQKuzeV4c8MUeO5ved46C50MEp56boDHW1O" \
-H "Content-Type: application/json" \
-d @data.json \
https://parseapi.back4app.com/functions/import
@macarthuror
macarthuror / regex-curp-rfc.txt
Created February 26, 2022 15:20
Regex CURP - RFC
RFC (con y sin homoclave)
/^[A-Z]{1}[AEIOU]{1}[A-Z]{2}[0-9]{2}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])([A-Z0-9]{3})?$/
CURP
/^[A-Z]{1}[AEIOU]{1}[A-Z]{2}[0-9]{2}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])[HM]{1}(AS|BC|BS|CC|CS|CH|CL|CM|DF|DG|GT|GR|HG|JC|MC|MN|MS|NT|NL|OC|PL|QT|QR|SP|SL|SR|TC|TS|TL|VZ|YN|ZS|NE)[B-DF-HJ-NP-TV-Z]{3}[0-9A-Z]{1}[0-9]{1}$/
Más información en:
- https://es.wikipedia.org/wiki/Registro_Federal_de_Contribuyentes
- https://es.wikipedia.org/wiki/Clave_%C3%9Anica_de_Registro_de_Poblaci%C3%B3n