Skip to content

Instantly share code, notes, and snippets.

@jhoon
jhoon / constants.py
Last active August 23, 2019 14:00
Non-canonical URL building for BHHS
import urllib
import re
PROPERTY_DATA_PATH = "/{}-{}/{}/{}-{}-{}/pid-{}"
NON_ALPHANUMERIC_REGEX = r"[^A-Za-z0-9 ]"
BHHS_NAME = "Berkshire Hathaway HomeServices "
def build_url(franchiseeId, franchiseeName, propId, streetName, city, state, postalCode, leadParam):
""" Build a non-canonical URL for the listing with the info provided
"""

Testing… is not that hard

From time to time we need to talk about this topic. Most of us are familiar with it and we feel comfortable with writing tests, but the truth is that doing so is not a particularly popular topic.

In the past years, the tendency has been using some variant of cool techniques like TDD and BDD, and they are well applied; but most developers don't follow the rules or feel like the deadlines don't allow them to just write unit or integration tests. Geez… I even have heard some people say: "[sic] writing test is for QA teams right?"

Well… this is my attempt to show that testing is not that hard and can be an easy part of your daily workflow.

@jhoon
jhoon / privacy_policy.md
Created February 19, 2019 15:43
Metronome Privacy Policy

Privacy Policy

AppTribe built the Metronome app as a Commercial app. This SERVICE is provided by AppTribe and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Metronome unless otherwise defined in this Privacy Policy.

@jhoon
jhoon / Notes.md
Last active May 17, 2016 21:51
Unconference: Open Community Session

Open Community Session

Attendees

  • Moderator: Van Riper
  • Casey Borders
  • Chris Pick
  • Kristopher Ray
  • Yucheng Wang
  • Albert Padin
@jhoon
jhoon / SampleAsyncTask.java
Last active August 25, 2015 22:08
Sample AsyncTask
private class SampleAsyncTask extends AsyncTask<Void, Void, ArrayList> {
protected ArrayList doInBackground(Void... params) {
ArrayList products = new ArrayList();
for(int j=0;j<hrefElements.size();j++) {
System.out.println("title: "+titlee[j]);
System.out.println("description: " + description[j]);
System.out.println("distance: " + distance[j]);
System.out.println("posted: "+posted[j]);
Guía para contribuir con los repositorios de github de GDGLima
1.- Animarse con las ganas para contribuir... y terminar de leer esta guía.
2.- Tener una cuenta en github.
3.- Instalar algun cliente git (TortoiseGit en windows, git cli en MAC y linux distros)
4.- Configurar nuestra cuenta en github (Estos pasos los podemos completar siguiendo esta otra guía https://help.github.com/articles/set-up-git en ingles)