Skip to content

Instantly share code, notes, and snippets.

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

Hairol Lucas G. Lucas2k

🏠
Working from home
View GitHub Profile
@Lucas2k
Lucas2k / UploadTask.kt
Created October 17, 2020 00:37
Subir archivos a un servidor con Minio
class UploadTask(val context: Context,
val file : File,
val objectStoreEndpoint: String,
val objectStorePort: String ,
val objectStoreAccessKey: String ,
val objectStoreSecretKey: String ,
val objectStoreBucket: String ,
val objectSignerOverride: String ) : AsyncTask<Any, Any, Any>()
{
private var onListener: UploadListener? = null
ALTER PROCEDURE sp_generate_insertscripts
(
@TABLE_NAME VARCHAR(MAX),
@FILTER_CONDITION VARCHAR(MAX)=''
)
AS
BEGIN
SET NOCOUNT ON
@Lucas2k
Lucas2k / Colors.xml
Created August 19, 2019 16:37
Diferentes colores para android y web
<resources>
<!-- Android style -->
<color name="android_green">#A4C639</color>
<!-- Android Holo style -->
<color name="holo_blue_bright">#ff00ddff</color>
<color name="holo_blue_dark">#ff0099cc</color>
<color name="holo_blue_light">#ff33b5e5</color>
<color name="holo_green_dark">#ff669900</color>
Shortcuts Android Studio
- Ir a declaración (directamente) --> Control + B o Control + Clic
- Comentar/eliminar comentario con comentario de línea --> Control + /
- Comentar/eliminar comentario con comentario de bloque --> Control + Shift + /
- Seleccionar bloques de código crecientes sucesivamente --> Control + W
- Disminuir la selección actual al estado anterior --> Control + Shift + W
- Reformatear código --> Control + Alt + L
- Renombrar --> Shift + F6
- Contraer/expandir bloque de código actual --> Control + menos/más
using System;
using System.Collections.Generic;
using System.Text;
using Xamarin.Forms;
namespace Sample
{
public class Yasea : View
{
public static readonly BindableProperty RtmpUrlProperty =
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
pragma solidity ^0.4.24;
contract MessageStore {
address private owner;
string private message;
constructor() public
{
owner = msg.sender;