View lastexport.py
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 python | |
#-*- coding: utf-8 -*- | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
View OIBUS_UAVCAN_DEBUGGER.py
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
from multiprocessing import Process, Queue | |
import uavcan | |
from contextlib import closing | |
import tkinter | |
def node_status_callback(event): | |
print('#',event.transfer.source_node_id,': ', event.message.uptime_sec) | |
# Messages, service requests, service responses, and entire events |
View canSimpleTest.js
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
const { adapters } = require('slcan'); | |
const { dataTypes } = require('uavcan'); | |
let body = { | |
dataTypeID: 'uavcan.protocol.param.GetSet', | |
value: { | |
index: 0, | |
value: { | |
integerValue: 123 |
View sendWithHologram
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
const Net = require('net'); | |
const HologramKey = process.env.HOLOGRAM_KEY | |
const HologramHost = 'cloudsocket.hologram.io' | |
const HologramPort = '9999' | |
let sendWithHologram = function(payload, topic){ | |
let HologramClient = new Net.Socket(); |
View eng209_exo2.cpp
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
/* | |
* exo2.cpp | |
* | |
* Created on: Oct 3, 2016 | |
* Author: sam | |
*/ | |
#include <vector> | |
#include <iostream> | |
using namespace std; |
View rfid_reader.py
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
import serial | |
import sys | |
import wiringpi | |
from time import sleep | |
import Adafruit_Nokia_LCD as LCD | |
import Adafruit_GPIO.SPI as SPI | |
from simplemysql import SimpleMysql | |
from threading import Thread | |
from PIL import Image |
View untitled
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 | |
PIDFILE=/var/run/zim_run.pid | |
case $1 in | |
start) | |
/usr/bin/python /home/pi/zim/mapa.py >/home/pi/log & | |
echo $! > ${PIDFILE}; | |
;; | |
stop) | |
kill `cat ${PIDFILE}` ;; |
View vizviewTTN.json
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
{"version":"2.38.1-0","grid":{"layers":{"View All":{"name":"View All"},"Default layer":{"name":"Default layer"}},"xWidth":10,"yHeight":10},"modules":[{"url":"modules/types/server_interaction/webservice_search/","configuration":{"sections":{"postvariables":[{"sections":{},"groups":{"postvariables":[[{"destination":"data","filter":"none"}]]}}]},"groups":{"group":[{"url":["https://crossorigin.me/http://ttnstatus.org/gateways"],"method":["GET"],"dataType":["form"],"withCredentials":[[]],"showStatus":[[]],"button":[["button"]],"buttonlabel":["Refresh Gateways"],"buttonlabel_exec":["Refreshing Gateways..."],"onloadsearch":[["button"]],"debounce":[0],"resultfilter":["return data;"],"askConfirm":[[]],"confirmText":["Are you sure?"]}],"headers":[[{}]],"searchparams":[[{"destination":"url","fieldtype":"text"}]]}},"layers":{"View All":{"position":{"left":121,"top":0},"size":{"width":16,"height":8},"zIndex":0,"display":true,"title":"","bgColor":[255,255,255,0],"wrapper":true,"created":true,"name":"Default layer"},"Defaul |
View ps3controller_test.js
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
"use strict"; | |
var GamePad = require( 'node-gamepad' ); | |
var Cylon = require('cylon'); | |
var controller = new GamePad( 'ps3/dualshock3' ); | |
var rover_state = { |
View gist:5375964
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
#include <SoftwareSerial.h> | |
#include <SdFat.h> | |
#include <TinyGPS.h> | |
//SD | |
const int chipSelect = 4; | |
// MOSI - pin 11 yellow middle | |
// MISO - pin 12 yellow right | |
// CLK - pin 13 blue | |
// CS - pin 4 green |
NewerOlder