Skip to content

Instantly share code, notes, and snippets.

// File: custom_ostream.cpp
// Created: 9/2013
// Author: Vaclav Zeman
//
//
// Copyright (C) 2013, Vaclav Zeman. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modifica-
// tion, are permitted provided that the following conditions are met:
//
@wilx
wilx / gist:7757861
Created December 2, 2013 20:12
My whole .emacs that has urxvt and uxterm troubles with colour setting.
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(color-theme-is-cumulative nil)
'(column-number-mode t)
'(dynamic-fonts-preferred-monospace-point-size 9)
'(dynamic-fonts-preferred-proportional-point-size 10)
'(fill-column 78)
Test suite test-pandoc: RUNNING...
Old:
markdown:
writer:
basic: [OK]
tables: [OK]
lhs to normal: [OK]
lhs to lhs: [OK]
reader:
basic: [OK]
@wilx
wilx / cc-langs.el.diff
Created March 29, 2014 11:15
C++11 keywords to cc-langs.el
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el
index 29dff4a..37c3e18 100644
--- a/lisp/progmodes/cc-langs.el
+++ b/lisp/progmodes/cc-langs.el
@@ -1676,7 +1676,7 @@ but they don't build a type of themselves. Unlike the keywords on
not the type face."
t nil
c '("const" "restrict" "volatile")
- c++ '("const" "volatile" "throw")
+ c++ '("constexpr" "const" "volatile" "throw")

Keybase proof

I hereby claim:

  • I am wilx on github.
  • I am wilx (https://keybase.io/wilx) on keybase.
  • I have a public key whose fingerprint is AFA2 8584 C200 E328 CE58 F415 8E4B 11B6 63B6 B297

To claim this, I am signing this object:

\documentclass[12pt]{extarticle}
\usepackage[a4paper,landscape,margin=0.70in]{geometry}
\usepackage{fontspec}
\usepackage{upquote}
\usepackage{microtype}
\usepackage{multicol}
\usepackage{textcase}
\usepackage{mfirstuc}
\usepackage[hidelinks]{hyperref}
// GB2312-test.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
// 国家标准 in GB2312
char const src[] = "\xB9\xFA\xBC\xD2\xB1\xEA\xD7\xBC";
int main()
{
#include <boost/spirit/include/qi_match.hpp>
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/qi_eol.hpp>
#include <boost/spirit/include/qi_eoi.hpp>
#include <boost/spirit/include/qi_int.hpp>
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/phoenix_core.hpp>
#include <boost/spirit/include/phoenix_operator.hpp>
#include <boost/fusion/include/adapt_struct.hpp>
#include <boost/spirit/include/phoenix_object.hpp>
######## TERMINAL TYPE DESCRIPTIONS SOURCE FILE
#
# Version 11.0.1
# $Date: 2000/03/02 15:51:11 $
# terminfo syntax
#
# Eric S. Raymond (current maintainer)
# John Kunze, Berkeley
# Craig Leres, Berkeley
#
\documentclass[11pt]{extarticle}
\usepackage[paper=a4paper, landscape, margin=0.3in]{geometry}
\usepackage{multicol}
%\setlength\columnseprule{0.5pt}
\setlength\columnsep{2em}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\usepackage{fixltx2e} % provides \textsubscript
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\usepackage[T1]{fontenc}