- Build display.cpp
- Set up pipe on Linux VM
- Run display application
- Run proxy/passthrough on Mac
- Start streaming from Raspberry Pi
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
// Step 1: Generate the request token | |
var jwt = require('jsonwebtoken'); | |
var key = require('./key'); // path to service account JSON file | |
var SERVICE_ID = '...'; // this is the 'host' proprety of the service management's openapi.yaml | |
var now = Math.floor(Date.now() / 1000); | |
var payload = { | |
iat: now, // issued right now | |
exp: now + 3600, // expire after 1 hour |
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
delete from MyTable; |
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 sys | |
import os | |
import urllib | |
import glob | |
import re | |
import urlparse | |
from shutil import copyfile | |
from lxml import html | |
from lxml import etree |
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
(*Get all airports in an area*)GetAirports[area_]:=GeoEntities[area,"Airport"] | |
(*Filter to only public-use airports with at least 1 runway longer than a specified length*) | |
FilterPublicAirportsAndRunwayLength[airports_,rwyLen_: 3000]:=Module[{rwy},rwy=Quantity[rwyLen,"Feet"]; | |
First[Transpose[Select[Transpose[{airports,EntityValue[airports,"LongestRunwayLength"],EntityValue[airports,"Uses"]}],#[[2]]>=rwy \[And] #[[3]][[1]]=="Public"&]]]] | |
(*Get the shortest tour of all the airports*) | |
AirportShortestTour[airports_]:= Module[{shortest}, | |
shortest = FindShortestTour[EntityValue[airports,"Position"]]; | |
{First[shortest], airports[[Last[shortest]]]}] |
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
using System; | |
using Newtonsoft.Json; | |
using System.Collections.Generic; | |
using Newtonsoft.Json.Linq; | |
using System.Text; | |
namespace Grounded | |
{ | |
public class ContentfulLinkConverter : JsonConverter | |
{ |
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
sudo apt-get install git curl | |
# install zsh and mods | |
cd ~ | |
sudo apt-get install git-core highlight zsh perl | |
git clone git://github.com/miohtama/ztanesh.git ~/tools | |
~/tools/zsh-scripts/setup.zsh | |
zsh | |
chsh -s /bin/zsh $USER |
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
// Add this to FrameParsingTests.java | |
@Test | |
public void testPeterAddition() { | |
CommandData data; | |
VariantComponentData comp; | |
ArrayList<Byte> byteQueue = new ArrayList<Byte>(); | |
byteQueue.addAll(Arrays.asList(new Byte[] { 0x01, 0x14, 0x00, 0x04, 0x00, 0x02, 0x0E, (byte)0x7A, 0x02, 0x01, 0x13, (byte)0x03, (byte)0x43, 0x00, 0x00, (byte)0xFF, 0x01, 0x00, 0x2C, 0x01, 0x00, 0x1A })); | |
ReceivedFrame frame = Frame.parseFrame(byteQueue); |
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
<html> | |
<head> | |
<style type="text/css"> | |
.lightbox-container { | |
display:none; | |
} | |
#lightbox { | |
display:none; | |
background: #333333; |
NewerOlder