Skip to content

Instantly share code, notes, and snippets.

View erikwco's full-sized avatar
💻
building the next world wide hit!

Erik Chacon erikwco

💻
building the next world wide hit!
View GitHub Profile
@erikwco
erikwco / having-multiple-jdk-macos.md
Created May 6, 2023 00:27 — forked from gramcha/having-multiple-jdk-macos.md
Managing multiple Java versions in MacOS

Installing different versions of open jdk through Homebrew(assuming already installed) and already having Java 8.

We need to install a tool called jenv - Java version manager which is similar to nvm(nodeJs version manager).

brew install jenv

Export the jenv path to .bash_profile or .zshrc - whatever you are using. I am using .zshrc

@erikwco
erikwco / flutter-instalaciones.md
Created April 14, 2023 21:28 — forked from Klerith/flutter-instalaciones.md
Instalaciones del curso de Flutter - Móvil de cero a experto
@erikwco
erikwco / validar NIT Guatemala.py
Created November 1, 2022 16:56 — forked from monroy95/validar NIT Guatemala.py
Script para validar NIT Guatemala. Python
def validar_nit(nit):
'''Funcion para validar NIT'''
# Elimina espacios en blanco
nit_n = nit.replace(' ', '')
# Elimina el guion del nit
nit_ok = nit_n.replace('-', '')
# Base para multiplicar
base = 1
# Guarda el digito validador, el ultimo
@erikwco
erikwco / elotech.cs
Created May 1, 2022 23:12 — forked from luizvaz/elotech.cs
Elotetch - C# SOAP XML Sign Oasis WSSecurity - Palotina/PR
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Security;
using System.Reflection;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
@erikwco
erikwco / Commit_Message.md
Created June 16, 2021 03:21 — forked from apurvajain/Commit_Message.md
Commit Message Template

Commit Message Convention

type(scope): subject 

<body>
<footer>

1. Type of commit

@erikwco
erikwco / advance_commands.vim
Created July 25, 2017 04:49 — forked from fakemelvynkim/advance_commands.vim
advanced vim commands to review
da< (or) da( (or) da{ // delete the block including <,(,{ and >,),} rsply
di< (or) di( (or) di{ // simillarly, but excluing <,(,{ and >,),} rsply
yi< (or) yi( (or) yi{ // yanks simillarly. Simillarly for ciw, viw, etc
df<Space> // delete from current char including the next space
daw // delete current word including the next space
diq // delete current word excluding the next space
yiw // yank current word excluding the next space
yaw // yank current word including the next space
@erikwco
erikwco / main.dart
Created November 19, 2019 19:44 — forked from netsmertia/main.dart
flutter image drawing in canvas
import 'package:flutter/material.dart';
import 'dart:ui' as ui;
import 'package:flutter/services.dart' show rootBundle;
import 'dart:async';
import 'dart:typed_data';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@erikwco
erikwco / general-info-v0.dart
Last active October 14, 2019 21:54
Flutter Communication With Streams
import 'dart:async';
import 'package:flutter/material.dart';
class ClientInformationPage extends StatefulWidget{
ClientInformationPage();
@override
@erikwco
erikwco / main-v1.dart
Created October 14, 2019 17:28
Flutter Communication Stream
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
//* ***************************************
//* Main
//* ***************************************
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
@erikwco
erikwco / main-v0.dart
Created October 14, 2019 17:01
Flutter Communication With Stream
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
//* ***************************************
//* Main
//* ***************************************
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override