Skip to content

Instantly share code, notes, and snippets.

@diegozr1
diegozr1 / fintech_api_list.md
Last active December 20, 2023 17:51
Curated list of Mexican Fintech APIs
from lxml import objectify
xml = objectify.fromstring("""<?xml version="1.0" encoding="utf-8"?>
<cfdi:Comprobante
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cfdi="http://www.sat.gob.mx/cfd/3"
xsi:schemaLocation="http://www.sat.gob.mx/cfd/3 http://www.sat.gob.mx/sitio_internet/cfd/3/cfdv32.xsd"
xmlns:tfd="http://www.sat.gob.mx/TimbreFiscalDigital"
>
<cfdi:Emisor rfc="XYZU8801017YA" nombre="MOYLOP260">
<cfdi:DomicilioFiscal calle="Calle value"/>
@zhengkai
zhengkai / ssh-tutorial.md
Last active October 31, 2023 10:10
把 SSH 用起来

把 SSH 用起来

by 郑凯 zhengkai@gmail.com
2014.10.23

0. Chrome 插件

Secure Shell
by Google

@yongsun
yongsun / mmseg.py
Created June 21, 2013 02:23
implement mmseg Chinese word segmentation algorithm (http://technology.chtsai.org/mmseg/) with Python, dictionary file and character frequencies from mmseg4j project.
#!/usr/bin/python
# -*- encoding: UTF-8 -*-
import codecs
import sys
from math import log
from collections import defaultdict
class Trie (object):
class TrieNode: