Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am kryjex on github.
  • I am kryjex (https://keybase.io/kryjex) on keybase.
  • I have a public key ASAAxspknLkHziI__lQcMGCAkrJDkgN0jTeW5j77WgXQrgo

To claim this, I am signing this object:

#!/usr/local/bin/python
import urllib, json, time, urllib2
# find files older than X days and delete them
# https://api.slack.com/docs/oauth-test-tokens
token = "xoxp-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
# https://api.slack.com/methods/users.identity looks like "U2XXXXXXX"
user = "U2XXXXXXX"
channel = "CBXXXXXXX"
public void GoToGMaps(View view){
Intent intent = null;
String ubicacionlng = "37.7749";
String ubicacionlat = "-122.4194";
try {
// Revisa si GMaps app está instalada, luego muestra la coordenada "37.7749,-122.4194"
this.getPackageManager().getPackageInfo("com.google.android.apps.maps", 0);
intent = new Intent(Intent.ACTION_VIEW, Uri.parse("google.navigation:q=" + ubicacionlat + "," + ubicacionlng));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
} catch (Exception e) {
@kryjex
kryjex / colorbrowser.html
Last active November 8, 2016 14:38
Color Browser
<!-- https://developers.google.com/web/fundamentals/design-and-ui/browser-customization/ -->
<!-- Android -->
<meta name="theme-color" content="#E8B300">
<!-- MS -->
<meta name="msapplication-navbutton-color" content="#E8B300">
<!-- iOS -->