Skip to content

Instantly share code, notes, and snippets.

@rkennedy
rkennedy / dabblet.css
Created April 10, 2014 17:21 — forked from anonymous/dabblet.css
Demo for Xichen Li
/**
* Demo for Xichen Li
* http://stackoverflow.com/a/22994816/33732
*/
body {
font-family: 'Times';
}
blockquote {
background-color: #eee;
border-left: 3px solid #00f;
@rkennedy
rkennedy / JclWideFormat.pas
Last active December 1, 2022 06:20
My Unicode-enabled Format function for Delphi. It was part of the JCL, but was removed in 2010 when the JCL dropped support for older Delphi versions. Newer versions already included a comparable function, although this version includes some extensions that Delphi doesn't have (see FORMAT_EXTENSIONS).Source: https://github.com/project-jedi/jcl/c…
{**************************************************************************************************}
{ }
{ Project JEDI Code Library (JCL) }
{ }
{ The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); }
{ you may not use this file except in compliance with the License. You may obtain a copy of the }
{ License at http://www.mozilla.org/MPL/ }
{ }
{ Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF }
{ ANY KIND, either express or implied. See the License for the specific language governing rights }
@rkennedy
rkennedy / boost-join-example.cpp
Created January 27, 2012 02:48
Demonstration of Boost.Range to join multiple containers into a single sequence
#include <vector>
#include <deque>
#include <string>
#include <iostream>
#include <boost/range/join.hpp>
int main() {
// Iterated-over containers can be different types, as long as the
// value types are the same (string, in this case).
std::vector<std::string> vec1 = { "one", "two", "three" };
@rkennedy
rkennedy / RTFPaint.pas
Created December 15, 2011 17:39
Using the windowsless RTF control from Delphi: http://www.cs.wisc.edu/~rkennedy/windowless-rtf
// Demonstration of using TOM.pas, the windowless rich-edit control, and
// the text object model
// http://www.cs.wisc.edu/~rkennedy/windowless-rtf
// Copyright © 2003-2006 Rob Kennedy. Some rights reserved.
// For license information, see http://www.cs.wisc.edu/~rkennedy/license
unit RTFPaint;
interface