This file contains hidden or 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
// 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 {} |
This file contains hidden or 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
<?php | |
namespace Csb\Traits; | |
use Csb\User; | |
use Csb\Follow; | |
/** | |
* Trait Followable | |
* | |
* Created by Ryan Owens | |
* | |
* @package Csb\Traits |
This file contains hidden or 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
// 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); |
This file contains hidden or 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
<!-- app.html --> | |
<ion-menu [content]="content"> | |
<ion-header> | |
<ion-toolbar> | |
<ion-title>Menu</ion-title> | |
</ion-toolbar> | |
</ion-header> | |
<ion-content> | |
<ion-list> |
This file contains hidden or 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
export default class MapsPlacesProvider { | |
constructor(map) { | |
this.map = map; | |
this.service = new google.maps.places.PlaceService(map); | |
} | |
function search(placesString) { | |
let request = { | |
query: placesString | |
}; |
This file contains hidden or 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
<?php | |
namespace Csb\Filters; | |
use Illuminate\Http\Request; | |
abstract class Filter | |
{ | |
protected $request; | |
protected $builder; |
This file contains hidden or 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
>>> sm.send_command("ohai") | |
b'kthxbai' | |
>>> sm.send_command("ohai") | |
b'' | |
>>> sm.send_command("ohai") | |
b'' | |
>>> sm.send_command("ohai") | |
b'' |
This file contains hidden or 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
con = serial.Serial("/dev/ttyACM0", 9600) | |
con.write(b'ohai') | |
waiting = con.in_waiting | |
response = con.read(waiting) | |
print(response) | |
con.close() |
This file contains hidden or 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
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. |
This file contains hidden or 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
--- | |
header: | |
seq: 4788 | |
stamp: | |
secs: 1498441595 | |
nsecs: 327647168 | |
frame_id: fcu | |
orientation: | |
x: 0.00255543092603 | |
y: 0.0057328469324 |
NewerOlder