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
#!/usr/bin/python | |
# Adapted from original written by Bob Steinbeiser (https://medium.com/@xtalker) | |
import socket | |
import struct | |
import binascii | |
def tide_button(arp_detailed): | |
dest_ip = socket.inet_ntoa(arp_detailed[8]) | |
print 'Tide button pressed, IP = ' + dest_ip |
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
#!/usr/bin/env node | |
// Based on the 'replace text' hook found here: http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/ | |
// This hook should be placed in the 'after_prepare' hook folder. | |
// The hook relies on a JSON file located at '<project_root>/resources/build_number.json' to track the build number. | |
// build.json content: | |
// { "major": 1, "minor": 2, "build": 3 } | |
// this example would generate build number "1.2.4" (because the build is incremented before, so build_number.json reflects the most recent build.) |