This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# Converts VCard to org-mode/org-contacts files | |
# | |
# 2012 by Simon Thum | |
# | |
# Requires the vpim gem, which in turn needs patches to run (github xing/vpim) | |
# | |
# To the extent possible under law, the author(s) have dedicated all | |
# copyright and related and neighboring rights to this software to the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doc "An annotation context defines a context in which \"detached\" | |
annotations are associated to annotable program elements. | |
Annotations are detached if they are not defined in the source code of | |
the corresponding program element. | |
The annotation context makes it possible to view source-code annotations and detached | |
annotations as equals. It thus enables to use annotations in cases that traditionally | |
required switching to other (less type-checked) means of configuration. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[X] makeTuple1<X>([X*] s) { | |
"The sequence does not have enough elements." | |
assert(exists v = s.first); | |
return [v]; | |
} | |
shared X[2] makeTuple2<X>([X*] s) { | |
"The sequence does not have enough elements." | |
assert(exists v = s.first); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Concurrent; | |
using System.Diagnostics; | |
using System.Linq; | |
namespace CrashMeHarder; | |
/// <summary> | |
/// This tries to answer a bold question: Just how hard do you fail when you fail | |
/// to use thread-safe access on dictionaries where you should have. |