Skip to content

Instantly share code, notes, and snippets.

View andreescocard's full-sized avatar
🏠
Working from home

André Escocard andreescocard

🏠
Working from home
View GitHub Profile
@patpohler
patpohler / Big List of Real Estate APIs.md
Last active May 6, 2025 05:07
Evolving list of Real Estate APIs by Category

Big List of Real Estate APIs

Listings / Property Data

####Rets Rabbit http://www.retsrabbit.com

Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.

@r37r0m0d3l
r37r0m0d3l / dataset from event.js
Created November 15, 2012 11:08
javascript get dataset from event
// as property
event.currentTarget.dataset.id
// as array element
event.currentTarget.dataset['id']
// jquery method
$(event.currentTarget).data('id')
@ripper234
ripper234 / MobileUADetector
Created May 31, 2012 09:46
Detect mobile user agent in Java
import java.util.regex.Pattern;
/**
* Detect mobile User Agent
*
* Adpated from http://detectmobilebrowsers.com/download/cs on 31/05/2012
*/
public class MobileUADetector {
private final static Pattern mobile_b = Pattern.compile("android.+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE);