Skip to content

Instantly share code, notes, and snippets.

View ryanvade's full-sized avatar
💭
42

Ryan Owens ryanvade

💭
42
View GitHub Profile
@ryanvade
ryanvade / Survey.ts
Last active November 17, 2019 23:07
DynamoDB ODM API Example
// Survey.ts
import { Table, HashKey, RangeKey, Attribute, GlobalSecondaryIndex } from "@foobar/core";
import { Stateful, StateAttribute, State, DefaultState } from "@foobar/stateful";
export class CreatedState extends State {}
export class OpenState extends State {}
export class ClosedState extends State {}
export class DisabledState extends State {}
export class DeletedState extends State {}
<?php
namespace Csb\Traits;
use Csb\User;
use Csb\Follow;
/**
* Trait Followable
*
* Created by Ryan Owens
*
* @package Csb\Traits
// given an array of teams
let teams = teamprovider.getTeams(); // don't remember the exact function name
// Create a Map
const map = new Map();
teams.forEach((team) => {
// get the 'key'
const key = team.name;
// get a collection by the 'key'
const collection = map.get(key);
<!-- app.html -->
<ion-menu [content]="content">
<ion-header>
<ion-toolbar>
<ion-title>Menu</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<ion-list>
export default class MapsPlacesProvider {
constructor(map) {
this.map = map;
this.service = new google.maps.places.PlaceService(map);
}
function search(placesString) {
let request = {
query: placesString
};
<?php
namespace Csb\Filters;
use Illuminate\Http\Request;
abstract class Filter
{
protected $request;
protected $builder;
>>> sm.send_command("ohai")
b'kthxbai'
>>> sm.send_command("ohai")
b''
>>> sm.send_command("ohai")
b''
>>> sm.send_command("ohai")
b''
con = serial.Serial("/dev/ttyACM0", 9600)
con.write(b'ohai')
waiting = con.in_waiting
response = con.read(waiting)
print(response)
con.close()
Driver:
[ERROR] [1499027600.570503661]: Compressed Depth Image Transport - Compression requires single-channel 32bit-floating point or 16bit raw depth images (input format is: rgb8).
RVIZ:
[ WARN] [1499027592.613674685]: MessageFilter [target=map ]: Dropped 100.00% of messages so far. Please turn the [ros.rviz.message_notifier] rosconsole logger to DEBUG for more information.
---
header:
seq: 4788
stamp:
secs: 1498441595
nsecs: 327647168
frame_id: fcu
orientation:
x: 0.00255543092603
y: 0.0057328469324