Skip to content

Instantly share code, notes, and snippets.

Avatar
🚮
Eat. Sleep. Code. Repeat.

Álvaro Vilanova alvivi

🚮
Eat. Sleep. Code. Repeat.
View GitHub Profile
@alvivi
alvivi / c2ec
Created Feb 28, 2018
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>
#endif
#include <SDL.h>