Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Clunis orospakr

View GitHub Profile
View gist:90fd2b147785f8641502d612f61f87c2
import Foundation
import RoverCampaigns
@objcMembers @objc
public class RoverWrapper : NSObject {
public static func startRover() {
// The following is the same as you have seen in the Rover documentation:
// Initialize Rover Campagins with its modules
View gist:215274bda8175fb3cd05f3b5eebdc5f7
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN graphql-gateway No repository field.
npm WARN graphql-gateway No license field.
npm ERR! path /rover/graphql-gateway/node_modules
npm ERR! code EBUSY
npm ERR! errno -16
npm ERR! syscall mkdir
npm ERR! EBUSY: resource busy or locked, mkdir '/rover/graphql-gateway/node_modules'
@orospakr
orospakr / open-notification-example.swift
Last active Jun 13, 2019
Example of how to open a Rover Notification manually.
View open-notification-example.swift
// NOTE: a future update is going to render this code unnecessary.
let notification = // get a reference to the Rover Notification using your own table data source.
// Resolve various Rover subsystems from the SDK that you will need to do the below logic.
// (Change `RoverCampaigns` to `Rover` if you are still targetting 2.x)
let notificationStore = RoverCampaigns.shared!.resolve(NotificationStore.self)!
let router = RoverCampaigns.shared!.resolve(Router.self)!
let dispatcher = RoverCampaigns.shared!.resolve(Dispatcher.self)!
View gist:84abafb6d7fb8fcbfb16e654ca61af7d

Rover 2.0 Debug App

rv-inbox://presentSettings

rv-inbox://presentExperience?id=5b89513b045f150012698fb1

rv-inbox://presentNotificationCenter

View gist:8c665f2e0c0d2aae1433512932f3b94a
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
View gist:40ad7f61af7c8f163ba67a3a99d76403
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
View configuration.nix
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
View gist:de6474c4c672856a0e624fb2af8759d3
adb I 90270 17586402 adb_io.cpp:99] writex: fd=7 len=4 4641494c FAIL
adb I 90270 17586402 adb_io.cpp:99] writex: fd=7 len=33 3030316464657669636520275a583147 001ddevice 'ZX1G
adb I 90270 17586402 sockets.cpp:739] SS(0): okay transport
adb I 90270 17586402 sockets.cpp:345] LS(1146): fd=7 post peer->enqueue(). r=0
adb I 90270 17586402 fdevent.cpp:373] --- --- waiting for events
adb I 90270 17586402 fdevent.cpp:241] poll(), pollfds = 7(R) 6(R) 9(R) 4(R)
adb I 90270 17586402 fdevent.cpp:249] for fd 7, revents = 11
adb I 90270 17586402 fdevent.cpp:274] (fdevent 7 AR) got events 5
adb I 90270 17586402 fdevent.cpp:287] fdevent_call_fdfunc (fdevent 7 AR)
adb I 90270 17586402 sockets.cpp:252] LS(1146): event_func(fd=7(==7), ev=0005)
@orospakr
orospakr / gist:181af5ebe83a1a0b07dd
Created Sep 11, 2014
Rdio segfault on start (3.0.0.4)
View gist:181af5ebe83a1a0b07dd
D/AbstractMetricsFactoryImpl( 3341): record : No data points in metrics event
I/Timeline( 1379): Timeline: Activity_launch_request id:com.rdio.android.ui time:255699771
I/ActivityManager( 784): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.rdio.android.ui/rdio.android.activities.MainActivity bnds=[48,285][282,547] (has extras)} from pid 1379
D/AbstractMetricsFactoryImpl(31079): record : No data points in metrics event
V/Zygote (13354): Switching descriptor 33 to /dev/null
V/Zygote (13354): Switching descriptor 10 to /dev/null
I/ActivityManager( 784): Start proc com.rdio.android.ui for activity com.rdio.android.ui/rdio.android.activities.MainActivity: pid=13354 uid=10142 gids={50142, 3003, 1028, 1015}
I/MicrophoneInputStream(11273): mic_close fib@429cba80
V/audio_hw_primary( 217): in_standby: enter
V/audio_hw_primary( 217): stop_input_stream: enter: usecase(4: audio-record)
View gist:d11f38deeea340f8cb53
E/mono-rt (18639): Stacktrace:
E/mono-rt (18639):
E/mono-rt (18639): at <unknown> <0xffffffff>
E/mono-rt (18639): at (wrapper managed-to-native) Rdio.Android.Player.RdioNativePlayer.createPcmAudioPlayer (uint,uint) <0xffffffff>
E/mono-rt (18639): at Rdio.Android.Player.RdioNativePlayer.Initialize (bool,uint,uint) <0x000c7>
E/mono-rt (18639): at Rdio.Android.Player.MediaPlayerManager..ctor (int,Pulser.Rdio.Player.IAudioPlayerListener,bool) <0x00117>
E/mono-rt (18639): at Rdio.Android.Player.AndroidPlayerBackend..ctor (Android.Content.Context,Android.Content.ComponentName) <0x0020f>
E/mono-rt (18639): at Rdio.Android.Application.OnCreate () <0x00a1f>
E/mono-rt (18639): at Android.App.Application.n_OnCreate (intptr,intptr) <0x00037>
E/mono-rt (18639): at (wrapper dynamic-method) object.828fc99a-b44b-4f10-b6ce-e0a7868fd8b6 (intptr,intptr) <0x0003b>