Skip to content

Instantly share code, notes, and snippets.

@granolocks
granolocks / ieee_802_15_4_sink.py
Created November 16, 2016 19:20 — forked from anonymous/ieee_802_15_4_sink.py
IEEE 802.15.4 packet sink
import Numeric
from gnuradio import gr, gru
import crc16
import gnuradio.gr.gr_threading as _threading
import struct
import cogra
@granolocks
granolocks / ieee_802_15_4_sink.py
Created November 16, 2016 19:20 — forked from anonymous/ieee_802_15_4_sink.py
IEEE 802.15.4 packet sink
import Numeric
from gnuradio import gr, gru
import crc16
import gnuradio.gr.gr_threading as _threading
import struct
import cogra
@granolocks
granolocks / gist:2223850
Created March 28, 2012 05:16 — forked from JosephPecoraro/shell-execution.rb
Shell Execution in Ruby
# Ways to execute a shell script in Ruby
# Example Script - Joseph Pecoraro
cmd = "echo 'hi'" # Sample string that can be used
# 1. Kernel#` - commonly called backticks - `cmd`
# This is like many other languages, including bash, PHP, and Perl
# Returns the result of the shell command
# Docs: http://ruby-doc.org/core/classes/Kernel.html#M001111