Skip to content

Instantly share code, notes, and snippets.

@eduardobc88
eduardobc88 / share_social_button.html
Created Feb 15, 2016
Share HTML Button Telegram and WhatsApp
View share_social_button.html
<a href="whatsapp://send?text=https://www.google.com.mx/" data-action="share/whatsapp/share" >Compartir en WhatsApp</a>
<br>
<a class="tgme_action_button" href="tg://msg_url?url=https://www.google.com.mx/">Compartir en Telegram</a>
@Bouke
Bouke / gist:11261620
Last active Apr 30, 2022
Multiple Python installations on OS X
View gist:11261620

Previous versions used homebrew to install the various versions. As suggested in the comments, it's better to use pyenv instead. If you are looking for the previous version of this document, see the revision history.

$ brew update
$ brew install pyenv
$ pyenv install 3.5.0
$ pyenv install 3.4.3
$ pyenv install 3.3.6
$ pyenv install 3.2.6
$ pyenv install 2.7.10

$ pyenv install 2.6.9

@srs81
srs81 / hbase_export_csv.py
Last active Jul 14, 2020
Export all data from HBase database to CSV in this format: row-key, column-key, value
View hbase_export_csv.py
import happybase, sys, os, string
# VARIABLES
# Output directory for CSV files
outputDir = "/mnt"
# HBase Thrift server to connect to. Leave blank for localhost
server = ""
# Connect to server
c = happybase.Connection(server)