Skip to content

Instantly share code, notes, and snippets.

View mako34's full-sized avatar
💭
automagickally

manuelBetancurt mako34

💭
automagickally
View GitHub Profile
@mako34
mako34 / Xamarin C# quick note
Created February 17, 2017 07:19
UI elements in App.xaml
***
{
public partial class App : Application
{
public App()
{
//open an actual form template...
//InitializeComponent();
//MainPage = new MainPage();
@mako34
mako34 / logging xamarin
Created February 18, 2017 00:09
log on xamarin debug
using Xamarin.Forms;
using System.Diagnostics; //the library!
namespace CsharpMob
{
public partial class CsharpMobPage : ContentPage
{
public CsharpMobPage()
{
Debug.WriteLine("Hello, world!"); //on debug mode, no console :p
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SoloLearn
{
class Program
{
. Adapter
AdapterView has an adapter. An adapter has data
AdapterView <-- Adapter <-- data
. viewholder
. relacion?, como funciona?
@mako34
mako34 / reactNotes.txt
Created June 14, 2017 04:29
react native dev notes
react
de FB e insta,
. objetivo, experto en mobile devices!
. un appsita en react! la de bjj!
. empiezo con mod de app boba
wow la muestro aqui le saco plata, y me sirve para montarme en siguiente nave!
. entender modelo UI, modelo logica state,
@mako34
mako34 / atomPlugins.mk
Created June 22, 2017 23:46
Atom plugins
linter JS
apm install linter-xo
debug ReactNative
apm install nuclide
@mako34
mako34 / okhttp3_async_droid.mk
Created June 23, 2017 02:22
android OKHTTP3 async GET
Log.d("mk", "chapas");
//call pelada
// final OkHttpClient client = new OkHttpClient();
//with stetho,
final OkHttpClient client = new OkHttpClient.Builder().addNetworkInterceptor(new StethoInterceptor()).build();
final Request request = new Request.Builder()
.url("http://www.mocky.io/v2/573336c90f0000902cead88d")
@mako34
mako34 / upload.js
Created July 18, 2018 07:40
node S3 upload
const fs = require('fs');
const AWS = require('aws-sdk');
const s3 = new AWS.S3({
accessKeyId: 'aaa',
secretAccessKey: 'bbb+oeyjn8zGANuDyCIY',
region: 'ap-southeast-2'
// accessKeyId: process.env.AWS_ACCESS_KEY,
// secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
@mako34
mako34 / Presigned URL for s3
Created July 19, 2018 06:05
S3 create presigned URL
// const aws = require('aws-sdk');
const AWS = require('aws-sdk');
const fs = require('fs');
const s3 = new AWS.S3({
accessKeyId: 'AA',
secretAccessKey: 'BB+oeyjn8zGANuDyCIY',
region: 'ap-southeast-2'
// accessKeyId: process.env.AWS_ACCESS_KEY,
const AWS = require("aws-sdk");
//security settings to use after advice from devOps will be CHANGED!!
AWS.config.update({
accessKeyId: 'accessKey###',
secretAccessKey: 'secretAccessKey###',
region: 'us-east-1'
});
const ses = new AWS.SES({ apiVersion: "2010-12-01" });