Skip to content

Instantly share code, notes, and snippets.

View mako34's full-sized avatar
💭
automagickally

manuelBetancurt mako34

💭
automagickally
View GitHub Profile
@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 / atomPlugins.mk
Created June 22, 2017 23:46
Atom plugins
linter JS
apm install linter-xo
debug ReactNative
apm install nuclide
@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,
. Adapter
AdapterView has an adapter. An adapter has data
AdapterView <-- Adapter <-- data
. viewholder
. relacion?, como funciona?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SoloLearn
{
class Program
{
@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
@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();
//https://www.youtube.com/watch?v=G_-aEXmluq8
console.log('emezao');
const AWS = require('aws-sdk');
const docClient = new AWS.DynamoDB.DocumentClient({region:'us-east-1'});
exports.handler = function (e, ctx, callback){
@mako34
mako34 / lambda2dynamo
Created February 8, 2017 06:29
lambda 2 dynamo
//https://www.youtube.com/watch?v=G_-aEXmluq8
console.log('emezao');
const AWS = require('aws-sdk');
const docClient = new AWS.DynamoDB.DocumentClient({region:'us-east-1'});
exports.handler = function (e, ctx, callback){
If, doing SSH to thing
error:
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
Do:
$ rm -f ~/.ssh/known_hosts