Skip to content

Instantly share code, notes, and snippets.

A future blog will certainly be covering this issue in detail, but as an important aside, novelists who write about cops seek a great deal of information in order to honor the accuracy of what law enforcement does to protect and serve. But it is often difficult to find this information with any specificity, since it is proprietary, for the most part, to those who work in law enforcement. Thanks will *not* go, therefore, to realpolice.net, which has a forum section wherein officers are supposedly glad to provide information about police work to writers. I was met with condescension and mean-spirited insults, (bordering on misogyny and homophobia), as well as the ultimate double standard when my rebuttal to a particularly haughty officer resulted in the deletion of my post, since it was a "personal attack." Ironic, considering it was self-defense from the attack on me by a particular officer. Police, police thyself.
"D039LL9"
""
""
"| ***R1*** "
"| "
"| ***Z1*** rise "
"|------------| "
" |0---------->|"
" ***I1*** ***DR*** "
"END"
@gulbanana
gulbanana / buildlog.txt
Created December 16, 2016 11:53
msbuild log
This file has been truncated, but you can view the full file.
Microsoft (R) Build Engine version 15.1.458.808
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Program Files\dotnet\sdk\1.0.0-preview4-004233\MSBuild.dll.exe /Logger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,C:\Program Files\dotnet\sdk\1.0.0-preview4-004233\dotnet.dll /m /t:Build /v:m /verbosity:diag .\netcoretest.csproj
Build started 16/12/2016 7:41:20 PM.
Environment at start of build:
ConEmuConfig =
PLINK_PROTOCOL = ssh
DISPLAY = needs-to-be-defined
CscToolExe = C:\Program Files\dotnet\sdk\1.0.0-preview4-004233\RunCsc.cmd
@gulbanana
gulbanana / SuggestionBox.cs
Created August 25, 2016 07:18
SuggestionBox control
public class SuggestionBox : Control
{
static SuggestionBox() { DefaultStyleKeyProperty.OverrideMetadata(typeof(SuggestionBox), new FrameworkPropertyMetadata(typeof(SuggestionBox))); }
public static DependencyProperty SelectedItemProperty =
DependencyProperty.Register("SelectedItem", typeof(string), typeof(SuggestionBox), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, (d, bv) => (d as SuggestionBox).OnSelectedItemChanged()));
public string SelectedItem
{
get { return (string)GetValue(SelectedItemProperty); }
using System;
using System.Dynamic;
class LookImUsingRuby
{
static void Main(string[] args)
{
var x = new { Foo = 1, Bar = "data" }; // anonymous object!
Console.WriteLine(x.Foo); // this is type-checked because within this method, we know Foo exists
using System;
class A
{
public string ToUpper() => "A";
}
class Program
{
static void Main(string[] args)
@gulbanana
gulbanana / Program.cs
Last active August 10, 2016 02:19
pr15
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApplicationList
{
class Program
{
static IEnumerable<long> BuildLatticeRow(int size)
{
using System;
interface IFoo
{
void Do();
}
class A : IFoo
{
public void Do() {}
}
using System;
class A {}
class B : A {}
class Badarray
{
static void Main(string[] args)
{
var x = new A[2];
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Euler
{
static void Main(string[] args) => Console.WriteLine(
File.ReadAllText("./p022_names.txt")
.Replace("\"", "")