Skip to content

Instantly share code, notes, and snippets.

View hotpaw2's full-sized avatar

Ronald Nicholson hotpaw2

View GitHub Profile
100 rem BLE peripheral button service emulation
102 rem for HotPaw Basic 1.7.7 , 2017-12 , by rhn@nicholson.com
104 rem Provides the same button service as a TI SensorTag
106 rem Tap on the iPhone display to send a BLE notification
108 rem Enter any character to exit
110 rem
120 fn btle.init()
130 print "Initializing ..."
140 fn sleep(1) : fn sleep(1)
160 fn btle.name(1,"HotPaw Button Test")
@hotpaw2
hotpaw2 / nsurl.dtask.test1.swift
Created May 6, 2017 22:07
test of command-line Swift for an NSURLSession dataTask
//
// command-line Swift test of an NSURLSession dataTask
// 2017-May-06 rhn@nicholson.com (hotpaw)
//
// compile and run using:
//
// swiftc nsurl.dtask.test1.swift -o mytest1
// ./mytest1
//