Skip to content

Instantly share code, notes, and snippets.

View arielsrv's full-sized avatar
🏠
Working from home

Ariel Piñeiro arielsrv

🏠
Working from home
View GitHub Profile
@arielsrv
arielsrv / container.go
Created November 21, 2022 16:00
restfactory
package app
import (
"fmt"
"github.com/go-chassis/go-archaius"
"log"
"regexp"
"time"
"github.com/src/main/app/config/env"
@arielsrv
arielsrv / main.go
Created October 20, 2022 07:42
rest_client rest_client
package main
import (
"bytes"
"container/list"
"encoding/json"
"io"
"log"
"net/http"
"sync"
@arielsrv
arielsrv / scratch.go
Created October 18, 2022 09:31
rest_concept_concurrency
package main
import (
"container/list"
"fmt"
"github.com/tjarratt/babble"
"sync"
"sync/atomic"
"time"
"unsafe"
@arielsrv
arielsrv / scratch.go
Created October 18, 2022 09:05
concurrency
package main
import (
"container/list"
"fmt"
"github.com/tjarratt/babble"
"sync"
"sync/atomic"
"unsafe"
)
@arielsrv
arielsrv / main.go
Created October 17, 2022 15:00
futures
package main
import (
"container/list"
"fmt"
"github.com/tjarratt/babble"
"sync"
"sync/atomic"
"unsafe"
)
namespace MyExtensions.Test;
public static class IEnumerableExtensions
{
public static double Median(this IEnumerable<double>? source)
{
if (source == null) throw new ArgumentNullException(nameof(source));
List<double> elements = source.OrderBy(x => x).ToList();
@arielsrv
arielsrv / command.go
Last active August 17, 2022 18:19
Command pattern in go
package main
import (
"fmt"
"sync"
)
func main() {
command1 := NewCreateDirectory("/foo")
command2 := NewDeleteDirectory("/doe")
DECLARE @COLUMN_NAME AS sysname
DECLARE @TABLE_NAME AS sysname
DECLARE @IDValue AS int
SET @COLUMN_NAME = 'app_id'
SET @TABLE_NAME = 'ik_application'
SET @IDValue = 1207841
DECLARE @sql AS varchar(max) ;
WITH RELATED_COLUMNS
@arielsrv
arielsrv / scratch.json
Created May 5, 2022 11:56
PFHW8A_arielsrv@gmail.com
{
"code": "SmartWebTemp",
"sections": [
{
"indexOrder": 0,
"code": "JourneyBreakDownSmart",
"infoConcepts": [
{
"flightInfo": [
{