Skip to content

Instantly share code, notes, and snippets.

View hpstuff's full-sized avatar
🏠
Working from home

Rumen Rusanov hpstuff

🏠
Working from home
View GitHub Profile
WEBVTT FILE
1
00:00:00.500 --> 00:00:02.000 D:vertical A:start
The Web is always changing
2
00:00:02.500 --> 00:00:04.300
and the way we access it is changing
@hpstuff
hpstuff / parent.ts
Last active January 16, 2017 13:53
//parent
class ParentController {
constructor(private ServiceName: any, private ServiceName2: any) {}
}
//parent tempalte
<component title="Employee History" service="$ctrl.ServiceName">
<component title="Salary History" service="$ctrl.ServiceName2">
//component
<!-- use with image //-->
<HoverComponent [imageUrl]="url">
<div class="article-info">
<time>{{date}}</time>
<h1>{{title}}</h1>
</div>
</HoverComponent>
<!-- use with video //-->
<HoverComponent (onHover)="video.play()">
@hpstuff
hpstuff / Athletehub.html
Last active November 8, 2016 16:18
content pages
<ImageContentComponent [fullWidth]="true" [image]="image_url"></ImageContentComponent>
<TextContentComponent title="Background" [content]="background_content"></TextContentComponent>
<ImageContentComponent [fullWidth]="true" [image]="image_url"></ImageContentComponent>
<TextContentComponent title="Results" [content]="results_content"></TextContentComponent>
@hpstuff
hpstuff / accent-contents.json
Last active November 17, 2016 16:09
api content models
{
"id": 1,
"type": "accent-contents",
"attributes": {
"order": 1,
"content": "<strong font-size=\"30px\">307,000</strong><p>The website managed over 307,000 visitors in the space of the first 2 days</p>"
}
}
@hpstuff
hpstuff / accordion.html
Last active November 7, 2016 09:41
Components
<AccordionComponent>
<AccordionItemComponent *ngFor="item of someItems">
<span header>item.title</span>
<div class="custom-styles">
{{item.content}}
</div>
</AccordionItemComponent>
</AccordionComponent>
import ControllerType from 'controllers-types';
@ControllerType(ControlerTypes.PopOver)
export default Ember.Route.extend({
});
App.PostsRoute = Ember.Route.extend({
renderTemplate: function() {
this.render({ outlet: 'sidebar' });
{
"errors": {
"email": {
"source": {
"pointer": "\/data\/email"
},
"detail": "There are no business hours added for this doctor."
}
}
}
{
"data": [
{
"day": "2",
"fromtime": "00:10:33",
"totime": "00:22:22"
},
{
"day": "3",
"fromtime": "00:01:23",
List<BusinesHours> hours;
List<WeekViewModel> weeks;