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
// external | |
struct Object; | |
bool compare(Object& l, Object& r); | |
std::vector<Object*> objects; | |
// <TODO> | |
template<class T, class Comparator> | |
Comparator<T*> adaptToPtr(Comparator<T&> cmp) { | |
// adapt comparator of T& to T* | |
// must work for both functions and functors |
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
// 'out' and 'inout' arguments for scala | |
object BasicExample { | |
// out param | |
def set(newvalue: Int, x: Int => Unit) { x(newvalue) } | |
// inout param | |
def inc(amount: Int, x: (Int, Int => Unit)) { x._2(x._1 + amount) } | |
} | |
// with wrapper classes |
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/awk -f | |
# Filters INDEX file to remove entries irrelevant to package manager | |
BEGIN { | |
FS="|" | |
# descrfile|bdeps|edeps|pdeps|fdeps | |
skip="^(5|8|11|12|13)$" | |
} |
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
import java.lang.reflect.Field; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* Sequentially executes hooks on shutdown, before any shutdown hook registered | |
* with Runtime#addShutdownHook(Thread). | |
* Not portable, tested with Sun JVM 1.6u22 | |
*/ | |
public class PreShutdown { |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<Module> | |
<ModulePrefs directory_title="GitHub Repositories" | |
title="__UP_username__`s GitHub Repositories" | |
description="Shows a GitHub user's repositories." | |
author="Aupajo" | |
author_email="pete@metanation.com" | |
height="60" | |
screenshot="http://labs.metanation.com/github-google-gadget/screenshot.gif" | |
thumbnail="http://labs.metanation.com/github-google-gadget/logo.gif"> |
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
<hoststat> | |
<host hostname='mail.net1.bg'> | |
<attempts>1</attempts> | |
<last_attempt>Thu Dec 16 15:33:08 2010</last_attempt> | |
<status>unlocked</status> | |
</host> | |
<host hostname='2002:4e08:934d:0:a41d:e29f:9230:fc9a'> | |
<attempts>0</attempts> | |
<last_attempt>Thu Mar 10 15:19:00 2011</last_attempt> | |
<status>unlocked</status> |
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
diff -r 0ea90643ac5a -r 61278776d28c Source/PropertyTools.Wpf/PropertyControl/PropertyControl.cs | |
--- a/Source/PropertyTools.Wpf/PropertyControl/PropertyControl.cs Fri Feb 03 13:45:59 2012 +0100 | |
+++ b/Source/PropertyTools.Wpf/PropertyControl/PropertyControl.cs Fri Feb 10 16:58:49 2012 +0100 | |
@@ -939,12 +939,19 @@ | |
group.Content = categoryItems; | |
tabItems.Children.Add(group); | |
} | |
- | |
+ var propertyGrid = new Grid(); | |
+ Grid.SetIsSharedSizeScope(propertyGrid, true); |
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
diff -r 0ea90643ac5a -r 468f9a9165a4 Source/PropertyTools.Wpf/PropertyControl/PropertyControl.cs | |
--- a/Source/PropertyTools.Wpf/PropertyControl/PropertyControl.cs Fri Feb 03 13:45:59 2012 +0100 | |
+++ b/Source/PropertyTools.Wpf/PropertyControl/PropertyControl.cs Mon Feb 13 12:16:16 2012 +0100 | |
@@ -161,6 +161,16 @@ | |
new FrameworkPropertyMetadata(0, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault)); | |
/// <summary> | |
+ /// The shared size labels property. | |
+ /// </summary> | |
+ public static readonly DependencyProperty SharedSizeLabelsProperty = |
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
*.suo | |
*.*proj.user | |
_ReSharper.*/ | |
Debug/ | |
Release/ |
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
OK boot -d -v -s | |
KDB: debugger backends: ddb | |
KDB: current backend: ddb | |
KDB: enter: Boot flags requested debugger | |
[thread pid 0 tid 0 ] | |
Stopped at kdb_enter+0x3d: movq $0,0xa4b500(%rip) | |
db> c | |
SMAP type=01 base=0000000000000000 len=000000000008f000 | |
SMAP type=02 base=000000000008f000 len=0000000000001000 | |
SMAP type=01 base=0000000000090000 len=000000000000e800 |
OlderNewer