Skip to content

Instantly share code, notes, and snippets.

View luc-tielen's full-sized avatar

Luc Tielen luc-tielen

View GitHub Profile
@luc-tielen
luc-tielen / bitbake-output.txt
Last active April 7, 2016 06:21
Yocto build error for var-som-mx6 (ti-compat-wireless)
~/yocto/build/conf$ bitbake core-image-minimal
Parsing recipes: 100% |########################################################| Time: 00:02:54Parsing of 2064 .bb files complete (0 cached, 2064 parsed). 2579 targets, 153 skipped, 3 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.26.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-14.04"
TARGET_SYS = "arm-poky-linux-gnueabi"
@luc-tielen
luc-tielen / arm-none-eabi-gcc.sh
Created January 26, 2017 12:35 — forked from cjmeyer/arm-none-eabi-gcc.sh
Bash: Build Binutils, GCC, Newlib, and GDB for ARM EABI (Cross-compiler).
#! /usr/bin/env bash
# Target and build configuration.
TARGET=arm-none-eabi
PREFIX=/opt/arm-none-eabi-4.7.1
# Sources to build from.
BINUTILS=binutils-2.23.1
GCC=gcc-4.7.1
NEWLIB=newlib-1.20.0
@luc-tielen
luc-tielen / Makefile
Created October 11, 2017 08:41
Seed works fine locally, but not in docker container?
# NOTE: using alpine-elixir-phoenix docker image
DOCKER_ID=$(shell docker ps -aqf "name=webserver")
.PHONY: run
run:
docker-compose up
@luc-tielen
luc-tielen / gui.rs
Created October 28, 2017 15:42
Bug in relm_attributes/outdated docs?
use relm::Widget;
use relm_attributes::widget;
use gtk;
use gtk::{WidgetExt, ButtonExt, LabelExt, OrientableExt};
use gtk::Orientation::Vertical;
// Had to add this code, even though docs say it can be auto generated?
pub struct Model {
counter: i32,
### Keybase proof
I hereby claim:
* I am luc-tielen on github.
* I am luctielen (https://keybase.io/luctielen) on keybase.
* I have a public key ASBFC-6uqoyrwZEMgSfRJxpWTh-m1oQSQN68Fls0XF-7oAo
To claim this, I am signing this object:
@luc-tielen
luc-tielen / Bad.hs
Created June 16, 2019 11:41
MultiRec in combination with "Trees That Grow" approach
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module Bad where
import Prelude
import Data.Kind ( Type )
import Generics.MultiRec.TH
@luc-tielen
luc-tielen / Client.sh
Created August 1, 2019 17:07
Bash: run command passed via args on incoming connection
#!/bin/bash
nc -z 127.0.0.1 8421 &> /dev/null
@luc-tielen
luc-tielen / 1. Title
Last active November 26, 2020 16:24
souffle-haskell talk info
Leverage the power of logic programming with souffle-haskell
@luc-tielen
luc-tielen / BTree.hs
Created September 15, 2021 17:33
Playing around with types in llvm-hs
{-# LANGUAGE RecursiveDo #-}
module Eclair.Data.BTree
( Meta(..)
, SearchIndex
, SearchType(..)
, codegen
) where
import Protolude hiding ( Type, Meta )
@luc-tielen
luc-tielen / bf.ll
Created November 17, 2021 16:10
Demo of "Generating fast and expressive code using LLVM & Haskell" talk, extras
; ModuleID = 'bf'
source_filename = "<string>"
declare i8* @malloc(i32)
declare void @free(i8*)
declare void @llvm.memset.p0i8.i64(i8*, i8, i64, i1)
declare i32 @putchar(i32)