Skip to content

Instantly share code, notes, and snippets.

View pthalamy's full-sized avatar
🚀

Pierre Thalamy pthalamy

🚀
View GitHub Profile
@pthalamy
pthalamy / InterruptionBlockCode.cpp
Last active December 18, 2019 09:52
VisibleSim InterruptionEvent snippet
// Define identifiers for distinguishing between your different interruptions
#define IT_MODE_EXAMPLE_INTERRUPTION 1
#define IT_MODE_EXAMPLE_INTERRUPTION_2 2
// ... Rest of Blockcode code unchanged
void InterruptionBlockCode::processLocalEvent(EventPtr pev) {
/// Other code
;; Default directory for lisp files
(add-to-list 'load-path "~/.emacs.d/lisp")
(add-to-list 'load-path "~/share/emacs/site-lisp/")
;; Melpa
(require 'package) ;; You might already have this line
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(when (< emacs-major-version 24)
;; For important compatibility libraries like cl-lib
@pthalamy
pthalamy / emacs.el
Created March 11, 2019 09:41
My emacs configuration
;; Default directory for lisp files
(add-to-list 'load-path "~/.emacs.d/lisp")
(add-to-list 'load-path "~/share/emacs/site-lisp/")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;; PACKAGES ;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; MELPA
(require 'package)
@pthalamy
pthalamy / OwinRequestExtensions.cs
Last active April 6, 2017 14:05 — forked from randyburden/OwinRequestExtensions.cs
OwinRequest extensions for getting query string, form body, and header parameters as Dictionary<string,string>
/// <summary>
/// Owin Request extensions.
/// <see href="https://gist.github.com/randyburden/42bc688780564ed01107"> Original Gist </see>
/// </summary>
public static class OwinRequestExtensions
{
/// <summary>
/// Gets the combined request parameters from the form body, query string, and request headers.
/// </summary>
/// <param name="request">Owin request.</param>