Navigation Menu

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
alvivi / flake.nix
Created December 15, 2022 23:53
Pinning Elixir and Erlang altogether
{
description = "Pinning Elixir & Erlang altogether";
# https://github.com/erlang/otp/archive/refs/tags/OTP-${VERSION}.zip
# https://github.com/elixir-lang/elixir/archive/refs/tags/v${VERSION}.zip
inputs = {
flake-utils.url = "github:numtide/flake-utils";
};
@alvivi
alvivi / c2ec
Created February 28, 2018 08:41
A little tool to convert css to elm-css Snippets
#!/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");
export interface IChecker {
check: (word: string) => boolean;
};
export interface ClumsyEntry {
valid: boolean;
children: ClumsyEntries;
}
#include <stdio.h>
#include "HsFFI.h"
#ifdef __APPLE__
#include <objc/objc.h>
#include <objc/objc-runtime.h>
#endif
#include <SDL.h>
{-# LANGUAGE ForeignFunctionInterface #-}
module HSMain where
import Main
foreign export ccall hs_main :: IO ()
hs_main :: IO ()
hs_main = main