Skip to content

Instantly share code, notes, and snippets.

View aleperaltabazas's full-sized avatar
⛹️‍♂️

Alejandro Peralta Bazas aleperaltabazas

⛹️‍♂️
  • Despegar.com
View GitHub Profile
#include <stdlib.h>
#include <stdio.h>
typedef struct {
int longitud;
char *texto;
} t_texto;
int length(char* str) {
int length = 0;
@aleperaltabazas
aleperaltabazas / che.hs
Last active November 4, 2019 19:50
"Che google, cómo hago para hacer plata?"
#!/usr/bin/runhaskell
import Control.Monad
import Data.Char
import System.Process
import System.Environment
import Data.List.Split
google = "google"
yt = "youtube"
@aleperaltabazas
aleperaltabazas / gitclean.hs
Last active September 20, 2019 13:22
Delete local branches that are no longer on the remote
#!/usr/bin/runhaskell
import System.Process
import System.Exit
import Data.List.Split
import Data.List
import Control.Exception
main :: IO ()
main = do