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
enum Test | |
{ | |
Hello, | |
Heya | |
} | |
var test = Test.Hello; | |
Console.WriteLine(test.GetType().IsEnum); | |
Console.WriteLine("Property Count: {0}", test.GetType().GetProperties().Length); |
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 perl -w | |
use strict; | |
use Mail::SPF; | |
my $spf_server = Mail::SPF::Server->new( | |
# Optional custom default for authority explanation: | |
default_authority_explanation => 'See http://www.%{d}/why/id=%{S};ip=%{I};r=%{R}', | |
max_dns_interactive_terms => 18 | |
); |
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
$ mono lesshaste.exe | |
Prepping Test | |
data50000000.txt | |
Starting Test | |
Started: Total Time | |
Started: Reading Data | |
Started: Read From Disk | |
Finished: Read From Disk in 18871ms |
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
class Test { | |
public static void Main () | |
{ | |
} | |
static void A () | |
{ | |
int[] value = {1}; | |
} |
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
namespace MobileSample_Android | |
{ | |
[Application(Label = "AndroidPlayground")] | |
public class App : Application | |
{ | |
readonly AutoSuspendHelper suspendHelper; | |
public App(IntPtr handle, JniHandleOwnership transfer) | |
: base (handle, transfer) | |
{ |
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 csharp | |
var args = Environment.GetCommandLineArgs (); | |
for (int i = 0; i < args.Length; ++i) { | |
Console.WriteLine ("{0}: {1}", i, args [i]); | |
} |
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
#include <vector> | |
#include <string> | |
#include <iostream> | |
using namespace std; | |
class BigNumber | |
{ | |
private: | |
vector<int> v; | |
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
// SafeHandle.Close()... | |
using System; | |
using System.Runtime.InteropServices; | |
class MySafeHandle : SafeHandle { | |
public MySafeHandle () | |
: base (IntPtr.Zero, ownsHandle:false) | |
{ |
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
class Node { | |
public Node Next; | |
public string Value; | |
} | |
var a = new Node { | |
Value = "a", | |
Next = new Node { | |
Value = "a.b" | |
} |
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
Anonymous UUID: F71F8AE2-95DB-054B-547F-2A6AC263EA0B | |
Mon Jun 1 06:11:26 2015 | |
*** Panic Report *** | |
panic(cpu 2 caller 0xffffff800d934a81): "hfs_UNswap_BTNode: invalid backward link (0x000d2bf9 == 0x000d2bf9)\n"@/SourceCache/xnu/xnu-2782.20.48/bsd/hfs/hfs_endian.c:303 | |
Backtrace (CPU 2), Frame : Return Address | |
0xffffff8755da3a90 : 0xffffff800d52bda1 | |
0xffffff8755da3b10 : 0xffffff800d934a81 | |
0xffffff8755da3b60 : 0xffffff800d925107 |
OlderNewer