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.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
namespace Client | |
{ | |
/// <summary> | |
/// Simplest possible socket client to connect and send a SCPI command to | |
/// an ethernet device | |
/// </summary> |
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
//everybody to give/recieve a gift | |
List<string> players = new List<string> { "Peter", "Emma", "John", "Chris", "Patty", "Karen", "Jenny", "Sloane" }; | |
players.Sort(); | |
Dictionary<string,List<string>> restrictions = new Dictionary<string,List<string>>(); | |
// Rule: players can't give to themselves | |
players.ForEach(p => restrictions.Add(p, new List<string> { p })); |
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
/* | |
Adapted from https://create.arduino.cc/projecthub/debanshudas23/getting-started-with-stepper-motor-28byj-48-3de8c9 | |
and the arduino "sweep" example | |
*/ | |
#include <Servo.h> | |
#define A 2 | |
#define B 3 | |
#define C 4 | |
#define D 5 |
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
#!/bin/bash | |
# | |
# start/stop Active MQ | |
# | |
# chkconfig: 2345 90 10 | |
# | |
# Description: ActiveMQ init script | |
# Source function library. | |
. /etc/init.d/functions |
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
#!/bin/bash | |
# | |
# apollo start/stop Apollo MQ | |
# | |
# chkconfig: 2345 90 10 | |
# | |
# Description: ApolloMQ init script | |
# Source function library. | |
. /etc/init.d/functions |
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
PyGameDemo |