Skip to content

Instantly share code, notes, and snippets.

Avatar
🤖
Building communities in the Redmond area

Jim Bennett jimbobbennett

🤖
Building communities in the Redmond area
View GitHub Profile
View gist:5a2aee98d356fc2e31004fa0969356ec
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: lghub_agent [2727]
Path: /Applications/lghub.app/Contents/Frameworks/lghub_agent.app/Contents/MacOS/lghub_agent
Identifier: com.logi.ghub.agent
Version: 2022.3.242300
Code Type: X86-64 (Translated)
Parent Process: lghub [2672]
View HackathonStarterTemplates.md
@jimbobbennett
jimbobbennett / AzureForStudents.md
Last active Jan 10, 2020
Azure for students link
View AzureForStudents.md

aka.ms/FreeStudentAzure

View Academic_Links.md
@jimbobbennett
jimbobbennett / BigIoTHack.md
Last active May 2, 2019
Useful links for the Basingstoke Big IoT Hack
View BigIoTHack.md

Free Azure account

Sign up here - aka.ms/BigIoTFree

  • 12 months of free services
  • £150 credit
  • Other services always free

You need a credit card for verification only - we do not charge you unless you choose to upgrade to a Pay as You Go subscription. We just need to verify you are not a bot!

View AddInBuild.log
Cleaning: XamarinStudio.TechTalk.SpecFlow (Debug)
Build started 5/16/2016 7:32:50 PM.
__________________________________________________
Project "/Users/JimBennett/GitHub/SpecFlow/IdeIntegration/XamarinStudioIntegration/XamarinStudio.TechTalk.SpecFlow.csproj" (Clean target(s)):
Initial Properties:
__CF_USER_TEXT_ENCODING = 0x1F5:0x0:0x0
Apple_PubSub_Socket_Render = /private/tmp/com.apple.launchd.MtpcFNxwWQ/Render
@jimbobbennett
jimbobbennett / NearablesViewController.cs
Created Oct 8, 2015
Nearables example that doesn't work
View NearablesViewController.cs
public override void ViewDidLoad()
{
base.ViewDidLoad();
var beaconManager = new BeaconManager();
beaconManager.AuthorizationStatusChanged += (s, e) =>
{
var manager = new NearableManager();
@jimbobbennett
jimbobbennett / lock.ps1
Created Jul 2, 2015
Code to put an exclusive lock on a file
View lock.ps1
param([string]$fileName)
#Open the file in read only mode, without sharing (I.e., locked as requested)
$file = [System.io.File]::Open($fileName, 'Open', 'Read', 'None')
#Wait in the above (file locked) state until the user presses a key
Write-Host "Press any key to continue ..."
$null = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
#Close the file
@jimbobbennett
jimbobbennett / BeaconRanging
Created Jun 28, 2015
Ranging using the default Estimote iBeacon UUID
View BeaconRanging
var uuid = new NSUuid ("B9407F30-F5F8-466E-AFF9-25556B57FE6D");
var region = new BeaconRegion(uuid, "MyRegion");
_beaconManager.StartRangingBeacons(region);
@jimbobbennett
jimbobbennett / GetColourForBeacon
Created Jun 24, 2015
Code to get a UIColour to match the BeaconColor enum for Estimote iBeacons
View GetColourForBeacon
public UIColor GetColourForBeacon(BeaconColor beaconColor)
{
switch (beaconColor)
{
case BeaconColor.Blueberry:
return UIColor.FromRGB(72, 61, 139);
case BeaconColor.Mint:
return UIColor.FromRGB(173, 255, 47);
case BeaconColor.Ice:
return UIColor.FromRGB(72, 209, 204);