This file contains hidden or 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.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Newtonsoft.Json; | |
namespace UDPSample | |
{ |
This file contains hidden or 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
# If you have many Raspberry Pis that you want to setup from a common image, | |
# add this to `/etc/rc.local` before you create the image, but do not run it. | |
# On first-run it will change the name from `raspberrypi` to `crowd-XXXXXX` where XXXXXX | |
# is the serial number of the Raspberry Pi. (Change 'crowd' in the line below.) | |
MAC="crowd-""$(grep 'Serial' /proc/cpuinfo | sed 's/^Serial.*000\([1-9a-f][0-9a-f]*\)$/\1/')" | |
CURRENT_HOSTNAME=$(cat /proc/sys/kernel/hostname) | |
if [ $CURRENT_HOSTNAME != $MAC ] |
This file contains hidden or 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
/* | |
This example Syslog service receives Syslog messages over UDP and publishes them internally using Rx | |
to an observable stream `Messages`. | |
If you point all your Ubiquity (TPLink or other) SysLog messages to a device running this code listening on | |
port 514 you can parse the messages and: | |
1) Determine which access point each cell phone is connected to. | |
2) Generate an alert every time a new device connects to your network. | |
3) Track guests by creating a 'honeypot' SSID like "Google Starbucks" that catches most visitors with Wifi on. |
This file contains hidden or 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.Collections.Generic; | |
using System.Linq; | |
using System.Dynamic; | |
using MongoDB.Bson; | |
using MongoDB.Bson.Serialization.Attributes; | |
using ImpromptuInterface; | |
using log4net; | |
using System.Collections.Concurrent; | |
using System.Diagnostics; |
This file contains hidden or 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.Collections; | |
using System.Dynamic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using MongoDB.Bson.IO; | |
using MongoDB.Bson.Serialization; | |
using MongoDB.Bson.Serialization.Serializers; | |
using MongoDB.Bson; | |
using MongoDB.Bson.Serialization.IdGenerators; |
This file contains hidden or 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.Collections.Generic; | |
using System.Linq; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
namespace Abodit | |
{ | |
public class JPatch | |
{ | |
public string op { get; set; } // add, remove, replace |
This file contains hidden or 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.Diagnostics; | |
namespace AboditUnits.Graph | |
{ | |
public partial class Graph<TNode, TRelation> | |
{ | |
/// <summary> | |
/// A relationship between two objects | |
/// </summary> | |
[DebuggerDisplay("{Start} -- {Predicate} --> {End}")] |
This file contains hidden or 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.Collections.Generic; | |
using System.Linq; | |
using System.Threading; | |
using Csp; | |
using Csp.Constraints; | |
using NUnit.Framework; | |
namespace TestConstraintSolver | |
{ |
This file contains hidden or 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.Collections.Concurrent; | |
using AboditNLP; | |
using log4net; | |
using MargieBot.Models; | |
using MargieBot.Responders; | |
using Services; | |
namespace NLPService | |
{ |