Skip to content

Instantly share code, notes, and snippets.

View jsus85's full-sized avatar

Jesús Guevara Pinedo jsus85

View GitHub Profile
//CÓDIGO KOTLIN
package com.example.app // esto es el nombre del paquete de su app
import android.Manifest
import android.R
import android.annotation.SuppressLint
import android.app.Activity
import android.app.AlertDialog
import android.bluetooth.BluetoothAdapter
@bradtraversy
bradtraversy / webdev_online_resources.md
Last active November 19, 2025 14:28
Online Resources For Web Developers (No Downloading)
@JGustavoX
JGustavoX / arraybuffer2base64.js
Last active January 24, 2019 23:50
By default, NodeJS parse database's BLOB imagesto array buffer. This function converts array buffer to base64.
/*
* Example of use:
*
* var bytes = new Uint8Array(blob);
* img.src = 'data:image/png;base64,'+encode(bytes);
*/
function encode (input) {
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var output = "";
@Dinamiko
Dinamiko / boton_02.php
Last active September 13, 2017 20:44
<?php
/**
* Plugin Name: Boton
* Description: Un ejemplo de shortcode
*/
if ( ! defined( 'ABSPATH' ) ) exit;
/**
* Crea shortcode [boton]
* [boton url="" color="#ff6c00"]texto[/boton]