Skip to content

Instantly share code, notes, and snippets.

View Hitman666's full-sized avatar

Nikola Brežnjak Hitman666

View GitHub Profile
<ion-header>
<ion-navbar>
<ion-title>
Ionic Blank
</ion-title>
</ion-navbar>
</ion-header>
<ion-content>
<ion-item>
<Panel ux:Class="Predavaci">
<JavaScript>
var Observable = require("FuseJS/Observable");
var data = Observable();
fetch('http://nikola-breznjak.com/_testings/mecoders.json')
.then(function(response) { return response.json(); })
import { Component } from '@angular/core';
import { Http, Response } from '@angular/http';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'app works!';
/* tslint:disable:no-unused-variable */
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
describe('App: GiphyA2', () => {
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
import { bootstrap } from '@angular/platform-browser-dynamic';
import { enableProdMode } from '@angular/core';
import { HTTP_PROVIDERS } from '@angular/http';
import { AppComponent, environment } from './app/';
if (environment.production) {
enableProdMode();
}
bootstrap(AppComponent, [HTTP_PROVIDERS]);
import { Component } from '@angular/core';
import { Http, Response } from '@angular/http';
@Component({
moduleId: module.id,
selector: 'app-root',
templateUrl: 'app.component.html',
styleUrls: ['app.component.css']
})
import { Component } from '@angular/core';
import { Http, Response } from '@angular/http';
@Component({
moduleId: module.id,
selector: 'app-root',
templateUrl: 'app.component.html',
styleUrls: ['app.component.css']
})
performSearch(searchTerm: string): string {
console.log(`User unio: ${searchTerm}`);
return searchTerm;
}
it('should have a function performSearch',
inject([AppComponent], (app: AppComponent) => {
expect(app.performSearch).toBeTruthy();
}));
@Hitman666
Hitman666 / tsHello.ts
Last active September 14, 2016 10:16
const msg: string = "Hello, hello!";
function myFunc (msg: string): string {
return 'I like to repeat what you said, therefore: ' + msg;
}
console.log(myFunc(msg));
<div class="form-bottom">{{#config.googleoauth}}
<a class="zocial google" href="/auth/login">Sign in with Google</a>
{{/config.googleoauth}}{{^config.googleoauth}}
<form class="login-form" action="" method="post">
<div class="form-group"><label class="sr-only" for="form-username">{{lang.login.username}}</label>
<input id="form-username" class="form-username form-control" tabindex="1" name="username" type="text" placeholder="{{lang.login.username}}" /></div>
<div class="form-group"><label class="sr-only" for="form-password">{{lang.login.password}}</label>
<input id="form-password" class="form-password form-control" tabindex="2" name="password" type="password" placeholder="{{lang.login.password}}" /></div>
<button class="btn" type="submit">{{lang.login.login}}</button>