Skip to content

Instantly share code, notes, and snippets.

View daslicht's full-sized avatar

Marc Wensauer daslicht

View GitHub Profile
how do you cast the result of the following call to the Type of Slideshow ?, please:
getSlideshows():FirebaseListObservable<Slideshow> {
return this._af.database.list('/slideshows', {}) // returns type:
}
error:
Type 'FirebaseListObservable<any[]>' cannot be converted to type 'Slideshow'.
I have the following class which should represent one Collection in Firebase:
```
export class Slideshow {
index: number;
name: string;
slides;
}
```
When I click a list of Slideshows , one slideshow is set as selected slideshow.
var test = {
autoplay: true,
dots: true,
slidesToShow:1
};
/*var test2 = {
accessibility:true
adaptiveHeight:false
arrows:true
Process: Maschine 2 [1011]
Path: /Applications/Native Instruments/*/Maschine 2.app/Contents/MacOS/Maschine 2
Identifier: com.native-instruments.Maschine 2
Version: 2.5.0 [R5213] (2.5.0 [R5213], Copyright © 2016 Native Instruments GmbH)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Maschine 2 [1011]
User ID: 501
Date/Time: 2016-10-09 14:31:48.554 +0200
when I try this :
<link href="{{ ['assets/scss/theme.scss'] | theme }}" rel="stylesheet">
I get :
/* preg_match() expects parameter 2 to be string, array given */
whats wrong ?
related:
https://octobercms.com/docs/markup/filter-theme
# DOWNLOADS
liner_services_downloads:
label: Liner Services Downloads
type: repeater
tab: Downloads
form:
fields:
title:
default: Document
placeholder: The title of the document
import * as React from "react";
export interface CommentFormProps { }
export interface CommentFormAppState {author:any,text:any }
export class CommentForm extends React.Component<CommentFormProps, CommentFormAppState>{
constructor(props: any) {
super(props);
handleAuthorChange(e) {
this.setState({ author: e.target.value });
}
[ts]
Argument of type '{ author: any; }' is not assignable to parameter of type 'CommentFormAppState'.
Property 'text' is missing in type '{ author: any; }'.
(property) author: any
import * as React from "react";
import * as ReactDOM from "react-dom";
import { CommentForm } from "./CommentForm";
import { CommentList } from "./CommentList";
declare let $:any;
export interface CommentBoxProps { data:any, url:any, pollInterval:any }
interface AppState { data:any}
@font-face {
font-family: Grotesk;
src: url(wp-content/themes/lay-child/Akzidenz_Grotesk_CE_Roman.ttf);
}
#maquee_text {
font-family: Grotesk !important;
}