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.Diagnostics; | |
using System.Runtime.InteropServices; | |
using System.Threading; | |
namespace ConsoleApplication2 | |
{ | |
class Program | |
{ | |
struct Fuck |
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.Reflection; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var allocate = typeof(RuntimeTypeHandle).GetMethod("Allocate", BindingFlags.NonPublic | BindingFlags.Static); | |
var math = allocate.Invoke(null, new[] { typeof (Math) }); |
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.Reflection; | |
interface ILoveCats | |
{ } | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
#define WIN32_LEAN_AND_MEAN // just say no to MFC | |
#define INIT_GUID | |
#include "hge.h" | |
#include <hgesprite.h> | |
#include <hgefont.h> | |
#include <hgecolor.h> |
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
$local_key = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*' | |
$machine_key = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*' | |
$machine_key6432 = 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*' | |
$items = Get-ChildItem @($local_key, $machine_key, $machine_key6432) | |
$ErrorActionPreference = 'Stop' | |
foreach ($item in $items) { | |
Write-Output $item.PSPath | |
$null = Get-ItemProperty $item.PSPath | |
} |
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.Runtime.InteropServices; | |
namespace ConsoleApplication2 | |
{ | |
[StructLayout(LayoutKind.Explicit)] | |
internal struct Barbeque | |
{ | |
[FieldOffset(0)] public int Barbe; | |
[FieldOffset(0)] public bool Que; |
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
******************************************************************************* | |
* WarCraft III Replay action format description * | |
* * | |
* document version: 1.01 * | |
* document date : 2006-03-25 * | |
* document authors: blue, nagger * | |
* * | |
* For more informtion about w3g file format, please visit: * | |
* http://w3g.deepnode.de * | |
* * |
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
open System | |
type Del = delegate of int -> int | |
let convert1 (d: Func<int, int>): Del = (# "" d : Del #) | |
let convert2 (d: Func<int, int>): Del = Del(fun x -> d.Invoke x) | |
[<EntryPoint>] | |
let main argv = | |
let x = Func<int, int>(fun x -> x) |
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.Reflection; | |
public interface ITest | |
{ | |
void TestFun(int arg); | |
} | |
public class TestClass : ITest | |
{ |
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.Linq; | |
using System.Reflection; | |
class Program | |
{ | |
class MyClass | |
{ | |
} |
OlderNewer