I hereby claim:
- I am NZSmartie on github.
- I am nzsmartie (https://keybase.io/nzsmartie) on keybase.
- I have a public key whose fingerprint is 0448 F8EA A55E 7DC5 2F93 019F B7E1 258B 1896 B531
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#include <stdint.h> | |
#include <stdbool.h> | |
#include <stddef.h> | |
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#include "Timers.h" | |
#define TIMER_CALLBACKS_MAX 16 |
import usb | |
import hidparser | |
if __name__ is not "__main__": | |
exit() | |
class MyDevice: | |
def __init__(self, interface: usb.core.Interface): |
using System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using NUnit.Framework; | |
namespace NunitTest | |
{ | |
public delegate Task AsyncEventHandler(object sender, EventArgs e); | |
public class MyEventClass |
public class MyClass | |
{ | |
public event EventHandler OnSomeEvent; | |
public void TriggerSomeEvent() | |
{ | |
try | |
{ | |
OnSomeEvent?.Invoke(this, new EventArgs()); | |
} |
thatClass.OnSomeEvent += (sender, args) => Console.WriteLine(“Some event happened”); |
thatClass.OnSomeEvent += async (sender, args) => | |
{ | |
await Task.Yield(); | |
throw new Exception(); | |
} |
/*++ | |
Copyright (c) Microsoft Corporation | |
Module Name: | |
afunix.h | |
Abstract: |
# TODO: Get latest release, not aa fixed version | |
sudo wget https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 -O /usr/bin/go-dep | |
sudo chmod u=rwx,go=rx /usr/bin/go-dep | |
cat > $HOME/.bashrc <<EOL | |
# Alias 'go dep' to go-dep | |
go() { | |
if [[ $@ == dep\ * ]]; then |
import pcbnew | |
import re | |
board = pcbnew.GetBoard() | |
for item in board.GetModules(): | |
if re.match('D\d+-\d+$',item.GetReference()) is None: | |
continue | |
print "found %s" % item.GetReference() |