Skip to content

Instantly share code, notes, and snippets.

Nathan Phillip Brink binki

Block or report user

Report or block binki

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@binki
binki / FuncUtil.cs
Last active Dec 12, 2019
AsyncEx-3.0.1 AsyncConditionVariable deadlock repro
View FuncUtil.cs
using System;
namespace AsyncExAsyncProducerConsumerQueueDeadlock
{
class FuncUtil
{
public static T Invoke<T>(Func<T> func) => func();
}
}
@binki
binki / zebra-symbol-rs507-hid-keyboard-wedge-pairing-guide.md
Last active Nov 21, 2019
Zebra Symbol RS507 HID Keyboard Wedge Pairing Guide
View zebra-symbol-rs507-hid-keyboard-wedge-pairing-guide.md

Zebra Symbol RS507 HID keyboard wedge pairing

In the reference manual (via support page), find the instructions for HID (Human Interface Device Mode) under “RS507 Bluetooth Connection Using HID and SPP Profiles”. There are instructions to:

  1. Remove battery.
  2. Hold down “Restore” key.
  3. Replace battery.
  4. Wait 5 seconds until chirps and tritone.
  5. Release the “Restore” key.
  6. Scan the HID bar code from the manual and wait for chirps.
@binki
binki / SimpleCsvQuoteString.cs
Last active Oct 22, 2019
Example of quoting CSV in C#
View SimpleCsvQuoteString.cs
using System;
public static class Program {
public static void Main() {
var num = 23;
var value = "This is some text, but it is free-form and might have double quotes (\") in it";
var value2 = "Text with a\r\nnewline";
Console.WriteLine(QuoteCsvString(value) + "," + QuoteCsvString(value2) + "," + num);
}
public static string QuoteCsvString(string value) {
return "\"" + value.Replace("\"", "\"\"") + "\"";
@binki
binki / SimpleCsvQuoteString.vb
Last active Oct 22, 2019
Example of quoting CSV in VB.Net
View SimpleCsvQuoteString.vb
Imports System
Public Module Program
Public Sub Main()
Dim num = 23
Dim value = "This is some text, but it is free-form and might have double quotes ("") in it"
Dim value2 = "Text with a" & Environment.NewLine & "newline"
Console.WriteLine(QuoteCsvField(value) & "," & QuoteCsvField(value2) &"," & num)
End Sub
Public Function QuoteCsvField(value As String) As String
Return """" & value.Replace("""", """""") & """"
View gist:a19bf55c21fe71b2775e957cdb69a53d
void setup()
{
byte b[] = loadBytes("ih.mid");
for (int i = 0; i < b.length && i < 16; i++)
{
if ((i % 10) == 0)
{
println();
}
@binki
binki / oyakodon-recipe.md
Last active Jan 30, 2020
Oyakodon Recipe (親子丼)
View oyakodon-recipe.md
@binki
binki / rendang-daging.md
Last active Oct 7, 2019
Beef Rendang (Rendang Daging)
View rendang-daging.md
@binki
binki / rockford-community-band-2019-fall-calendar.md
Created Sep 10, 2019
Rockford Community Band 2019 Fall Calendar
View rockford-community-band-2019-fall-calendar.md

2019-2020 Rockford Community Band Calendar

Date Description Time
Monday, September 9 Rehearsals Begin
East Rockford MS Bandroom
Subsequent rehearsals each Monday evening
7:00–9:00pm
Monday, October 21 Performance at Porter Hills
Call time: 6:00pm
7:00pm
Monday, October 28 Performance at Breton Woods
Call time: 6:00pm
7:00pm
Sunday, December 8 Holiday Concert
Rockford HS Auditorium
Call time: 2:00pm
3:00pm
Monday, December 9 Performance at Covenant Village
Call time: 6:00pm
7:00pm
Monday, January 6 Rehearsals resume
East Rockford MS Bandroom
*Subsequent rehearsals each Monday evenin
@binki
binki / count-to-100.sql
Last active Sep 2, 2019
Counting to 100 with recursive CTEs in SQL Server
View count-to-100.sql
WITH number AS (SELECT
CAST(1 AS BIGINT) Value
UNION ALL SELECT
n.Value + 1
FROM number n
WHERE n.Value < 100)
SELECT n.Value
FROM number n
ORDER BY n.Value
;
You can’t perform that action at this time.