Skip to content

Instantly share code, notes, and snippets.

View waynepiekarski's full-sized avatar

Wayne Piekarski waynepiekarski

View GitHub Profile
@waynepiekarski
waynepiekarski / NotificationExamplesMainActivity
Last active July 16, 2018 08:34
Example of using stack and page notifications with the Android Wear SDK
package testing.blog.waynepie.blogtesting;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.app.Notification;
import android.app.PendingIntent;
import android.content.Intent;
@waynepiekarski
waynepiekarski / cv2ff.cpp
Created January 16, 2018 20:52 — forked from yohhoy/cv2ff.cpp
Convert from OpenCV image and write movie with FFmpeg
/*
* Convert from OpenCV image and write movie with FFmpeg
*
* Copyright (c) 2016 yohhoy
*/
#include <iostream>
#include <vector>
// FFmpeg
extern "C" {
#include <libavformat/avformat.h>
SSG_B748-I_11_cockpit.obj:ATTR_manip_push button 1.000000 0.000000 sim/EICAS/master_pushr_sw WARN_CAUT R
SSG_B748-I_11_cockpit.obj:ATTR_manip_push button 1.000000 0.000000 sim/EICAS/master_pushl_sw WARN_CAUT L
SSG_B748-I_11_cockpit.obj:ATTR_manip_axis_knob rotate_medium 0.000000 1.000000 0.100000 0.500000 sim/LGT/compass_brt_sw COMPASS BRT SW
SSG_B748-I_11_cockpit.obj:ATTR_manip_toggle button 1.000000 0.000000 sim/FB/fb_power FB ON SW
SSG_B748-I_11_cockpit.obj:ATTR_manip_axis_knob up_down 0.000000 1.000000 0.100000 0.500000 sim/LGT/fb_brt_sw FB BRT SW
SSG_B748-I_11_cockpit.obj:ATTR_manip_radio button 1.000000 sim/FB/pages FB TOP 6
SSG_B748-I_11_cockpit.obj:ATTR_manip_radio button 2.000000 sim/FB/pages FB TOP 5
SSG_B748-I_11_cockpit.obj:ATTR_manip_radio button 3.000000 sim/FB/pages FB TOP 4
SSG_B748-I_11_cockpit.obj:ATTR_manip_radio button 5.000000 sim/FB/pages FB TOP 2
SSG_B748-I_11_cockpit.obj:ATTR_manip_radio button 6.000000 sim/FB/pages FB TOP 1