Skip to content

Instantly share code, notes, and snippets.

View joeesteves's full-sized avatar
🇦🇷
🧉 Working from home 🧉

Joe Esteves joeesteves

🇦🇷
🧉 Working from home 🧉
View GitHub Profile
@joeesteves
joeesteves / comandosUtiles.md
Last active August 10, 2016 14:12
Comandos Utiles Ubuntu
  • Para transferir archivos dentro de una red local

    • server: tar -cz . | udp-sender
    • client: udp-receiver | tar -xz la aplicacion se llama UPDCast, utiliza protocolo UDP que es mas rápido que TCP aunque menos controlado. Tasa de transmision con cable directo > 90 mbps

    Para misma funcion (mas lento y mas control de errors) usar netcat

    • server: tar -cz . | nc -q 10 -l -p 45454
    • client: nc -w 10 ipServer 45454 | tar -xz
  • Otra forma es

Keybase proof

I hereby claim:

  • I am ponyesteves on github.
  • I am ajesteves (https://keybase.io/ajesteves) on keybase.
  • I have a public key ASCL0ieSY21ECjZf1WCmAST7F-5a0eVpIAGBUHbegL7fRQo

To claim this, I am signing this object:

defmodule Day5 do
@doc """
Removes adjacents when they have opposite polarity (determined by case Aa), it recurses over result until there are no further adyacent oposites
iex> Day5.slice_polarity_matches("dabAcCaCBAcCcaDA", "")
"dabCBAcaDA"
"""
def slice_polarity_matches(string, prev_string) when is_binary(prev_string) do
cond do
String.length(string) == String.length(prev_string) ->
string
defmodule Day6 do
@moduledoc """
Documentation for Day6.
"""
@doc """
Gets the largest finite area
iex> Day6.get_area_whitin_distance("1, 1
...>1, 6
@joeesteves
joeesteves / categories.html.eex
Last active May 6, 2019 13:42
Selection Panel Live View
<div>
<%= selection_panel(@conn, @f,
[ %{
key: :number,
panels: [
%{
title: "select_category_type",
collection: Mu.Misc.Constants.localized_category_types
}
]
defmodule Challenge do
def resolve(stocks,target) do
map = build_map(stocks, target)
count_matching(stocks, map)
end
defp build_map(stocks, target) do
Enum.reduce(stocks, %{}, fn stock, acc ->
Map.put(acc, (stock - target) * -1, true)
@joeesteves
joeesteves / .vimrc
Created August 12, 2022 17:02
Vim Config
set tabstop=2
set softtabstop=2
set shiftwidth=2
set expandtab
set nu
set ignorecase
set autoread
set printoptions=number:y
set undofile
set undodir=$HOME/.vim_undo
We can't make this file beautiful and searchable because it's too large.
43478826
43814068
43623907
43682694
43486777
43813334
43736823
43365001
43582476
43810096
id index status taxon url
32208305 not listed
32069235 listed jewelry > bracelets > bangle https://admin.therealreal.com/admin/products/ippolita
32491542 listed jewelry > rings > band https://admin.therealreal.com/admin/products/chrome
31431157 listed women > clothing > tops > button ups
31274312 staging
32262836 listed women > clothing > jackets > blazers https://admin.therealreal.com/admin/products/rag
32302145 not listed
31279299 listed women > clothing > tops > short > sleeve https://admin.therealreal.com/admin/products/helmut