Skip to content

Instantly share code, notes, and snippets.

View sigma's full-sized avatar
🏠
Working from Home

Yann Hodique sigma

🏠
Working from Home
View GitHub Profile
@sigma
sigma / noflet.el
Last active July 18, 2017 05:03
noflet based on cl-letf
(defmacro noflet (bindings &rest body)
`(dflet ,(mapcar
(lambda (x)
(list (car x) (cadr x)
`(let ((this-fn ,(symbol-function (car x))))
,@(cddr x))))
bindings)
,@body))
@sigma
sigma / string_type_fix.patch
Created December 5, 2013 18:27
#globalplatform #patch
From 7f1c8669c5991a60b6fada9b1187d2ee6d040223 Mon Sep 17 00:00:00 2001
From: Yann Hodique <yann.hodique@gmail.com>
Date: Thu, 5 Dec 2013 10:18:46 -0800
Subject: [PATCH] compilation fixes
---
globalplatform/src/connection.c | 2 +-
globalplatform/src/dyn_generic.h | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
@sigma
sigma / yubikey-personalization.rb
Created December 5, 2013 03:22
homebrew formula for yubikey-personalization
require 'formula'
class YubikeyPersonalization < Formula
homepage 'http://yubico.github.io/yubico-personalization/'
url 'http://yubico.github.io/yubico-personalization/releases/yubikey-personalization-1.14.1.tar.gz'
sha1 'c5e294b28e56e39f51e8482c44b323d79e73aa9b'
def install
system "autoreconf", "--install"
system "./configure", "--prefix=#{prefix}"
@sigma
sigma / test.el
Last active December 29, 2015 14:19
[test] hosted .emacs
(message "plop")
@sigma
sigma / gist:6338909
Created August 26, 2013 07:39
teensy 7-segment display
/************************************************************************
* Teensy 3.0: Random Numbers on BCD 7-Segment Display Version: 1.00 *
* Functions : Random Numbers between 00 & 99. TURBO-mode, FREEZE-mode *
* MicroCtrlr: MK20DX128 32 bit ARM Cortex-M4 48 MHz *
* Arduino Shield: Alexan Digital Trainer 2 from Alexan Commercial *
************************************************************************
* Arduino IDE v1.0.5 from http://arduino.cc/en/Main/Software *
* Teensyduino v1.14 from http://www.pjrc.com/teensy/td_download.html *
* Configuration: Teensy 3.0 on /dev/ttyACM0 *
* Operating System: Xubuntu Linux 13.10 Saucy Salamander (32-bit) *
@sigma
sigma / gist:5477827
Last active June 27, 2017 05:43
#git weirdness
┌─(yann@jarvis)─[env:default]───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(~magit)─┐
└─(19:09:%)─[master]── git merge --no-ff sergv/master ──(Sun,Apr28)─┘
Merge made by the 'recursive' strategy.
magit-key-mode.el | 1 +
magit.el | 50 +++++++++++++++++++++++++++++++++++++++++++++-----
tests/magit-tests.el | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++-----
3 files changed, 97 insertions(+), 10 deletions(-)
┌─(yann@jarvis)─[env:default]───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(~magit)─┐
└─(19:10:%)─[master]── git co next ──(Sun,Apr28)─┘
Switched to branch 'next'
@sigma
sigma / _INSTALL.md
Created March 14, 2013 20:25 — forked from robinsmidsrod/_INSTALL.md
#ipxe bootstrap

Add the following chunk to your existing ISC dhcpd.conf file.

if exists user-class and ( option user-class = "iPXE" ) {
    filename "http://boot.smidsrod.lan/bootstrap.ipxe";
}
else {
    filename "undionly.kpxe";
}

(or see https://gist.github.com/4008017 for a more elaborate setup

@sigma
sigma / epack.el
Created March 3, 2013 15:38
attempt at introducing cl-like namespaces for emacs
;;; epack.el --- cl-like packages for emacs
;; Copyright (C) 2013 Yann Hodique
;; Author: Yann Hodique <yann.hodique@gmail.com>
;; Keywords:
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
@sigma
sigma / setup.py
Created February 26, 2013 11:19
template for tox-based testing for emacs
from distutils.core import setup
setup(name="magit",
version='0',
)
@sigma
sigma / dflet.el
Last active June 3, 2017 15:03
#emacs dynamic flet
;;; dflet.el --- dynamically-scoped flet
;; Copyright (C) 2012 Yann Hodique
;; Copyright (C) 1993, 2001-2012 Free Software Foundation, Inc.
;; Author: Yann Hodique <yann.hodique@gmail.com>
;; Keywords: lisp
;; Version: 0.1
;; This file is free software; you can redistribute it and/or modify