Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Jose ponyesteves

🏠
Working from home
View GitHub Profile
@ponyesteves
ponyesteves / categories.html.eex
Last active May 6, 2019
Selection Panel Live View
View categories.html.eex
<div>
<%= selection_panel(@conn, @f,
[ %{
key: :number,
panels: [
%{
title: "select_category_type",
collection: Mu.Misc.Constants.localized_category_types
}
]
View Day6.ex
defmodule Day6 do
@moduledoc """
Documentation for Day6.
"""
@doc """
Gets the largest finite area
iex> Day6.get_area_whitin_distance("1, 1
...>1, 6
View day5_part1.ex
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
View keybase.md

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:

@ponyesteves
ponyesteves / comandosUtiles.md
Last active Aug 10, 2016
Comandos Utiles Ubuntu
View comandosUtiles.md
  • 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

You can’t perform that action at this time.