Skip to content

Instantly share code, notes, and snippets.

View L3n41c's full-sized avatar
🐧

Lénaïc Huard L3n41c

🐧
View GitHub Profile
@L3n41c
L3n41c / .gitignore
Created February 14, 2012 19:29
Interpreted C++
/hello
@L3n41c
L3n41c / hello
Created April 22, 2012 18:15
Polyglot
// #|
#/*
"""
#*/
#include <stdio.h>
#define print puts
int quote,(*princ)(const char *) //|#
// (set-macro-character #\+ #'(lambda (s c) (read s t nil t)))
;int main() { " """; princ=print; quote='\0';
(princ (quote + "Hello World")); """ ";}//"""
@L3n41c
L3n41c / Example
Created April 27, 2012 19:57
luard
lenaic@tatooine:~/doc/prog/luard$ head -n 9999 hello*.cpp
==> hello0.cpp <==
#include <cstdlib>
#include <iostream>
int main()
{
std::cout << "Hello World!" << std::endl;
return EXIT_SUCCESS;
}
@L3n41c
L3n41c / vk_utils.patch
Created August 9, 2013 21:17
Fix valkyrie compilation in AUR PKGFILE
--- src/utils/vk_utils.cpp.orig 2013-08-09 21:55:00.383146691 +0200
+++ src/utils/vk_utils.cpp 2013-08-09 21:55:39.457651779 +0200
@@ -22,6 +22,7 @@
#include "utils/vk_config.h" // vkname()
#include <cstdlib> // exit, mkstemp, free/malloc, etc
+#include <unistd.h> // getpid
#include <QDateTime>
#include <QFile>