Skip to content

Instantly share code, notes, and snippets.

View alvivi's full-sized avatar
Eat. Sleep. Code. Repeat.

Álvaro Vilanova alvivi

Eat. Sleep. Code. Repeat.
View GitHub Profile
alvivi / flake.nix
Created December 15, 2022 23:53
Pinning Elixir and Erlang altogether
View flake.nix
description = "Pinning Elixir & Erlang altogether";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
alvivi / c2ec
Created February 28, 2018 08:41
A little tool to convert css to elm-css Snippets
View c2ec
#!/usr/bin/env node
const fs = require("fs");
const parse = require("css").parse;
const path = require("path");
if (process.argv.length !== 3) {
const exec = path.basename(process.argv[1]);
console.log(`usage ./${exec} input.css`);
console.log("converts css to elm-css snippets");
View TypeScript SpellChecker
export interface IChecker {
check: (word: string) => boolean;
export interface ClumsyEntry {
valid: boolean;
children: ClumsyEntries;
View SDL with Haskell on MacOs
{-# LANGUAGE ForeignFunctionInterface #-}
module HSMain where
import Main
foreign export ccall hs_main :: IO ()
hs_main :: IO ()
hs_main = main
View SDL with Haskell on MacOs
#include <stdio.h>
#include "HsFFI.h"
#ifdef __APPLE__
#include <objc/objc.h>
#include <objc/objc-runtime.h>
#include <SDL.h>