This file contains 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
#!/bin/bash | |
echo "" | |
echo"" | |
echo " 1 -> NRJ" | |
echo " 2 -> Studio 107.5" | |
echo " 3 -> 107.1 Vinyl" | |
echo " 4 -> The Voice" | |
echo " 5 -> Mix Megapol Radio City Göteborg" | |
echo " 6 -> Flashback Radio" | |
echo " 7 -> Mix MegaPol" |
This file contains 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
{ | |
"name": "tets", | |
"version": "1.0.0", | |
"description": "", | |
"main": "lib/index.js", | |
"source": "src/foo.js", | |
"module": "lib/foo.mjs", | |
"unpkg": "lib/foo.umd.js", | |
"dependencies": {}, | |
"devDependencies": { |
This file contains 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
[ | |
{ | |
"url": "https://www.vegomagasinet.se/basilikagratang/", | |
"name": "BASILIKAGRATÄNG MED SOLTORKADE TOMATER", | |
"image": "https://www.vegomagasinet.se/wp-content/uploads/2018/04/basilikagrata%CC%88ng.jpg" | |
}, | |
{ | |
"url": "https://www.koket.se/per_morberg/varmratter/gronsaker__potatis_och_andra_rotfrukter/per_morbergs_raggmunk_med_flask/", | |
"name": "Raggmunk", | |
"image": "https://mittkok.expressen.se/wp-content/uploads/2013/10/raggmunks-700x700.jpg" |
This file contains 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
import { Directive, Input, TemplateRef, ViewContainerRef, EmbeddedViewRef, ChangeDetectorRef } from '@angular/core'; | |
import { Observable } from 'rxjs/Observable'; | |
import { Subscription } from 'rxjs/Subscription'; | |
@Directive({ | |
selector: '[streamContext][streamContextOn]' | |
}) | |
export class StreamContext { | |
@Input() streamContextOn: Observable<any>; | |
templateRef: TemplateRef<any>; |
This file contains 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
import { Component } from '@angular/core'; | |
@Component({ | |
selector: 'my-input', | |
template: ` | |
<input [(ngModel)]="username"> | |
<!-- | |
Same as: | |
<input [value]="username" (keyUp)="username=$event.target.value"> | |
--> |
This file contains 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
import { Pipe } from '@angular/core'; | |
import { Episode } from '../lib/contracts/episode'; | |
@Pipe({ | |
name: 'nextEpisode' | |
}) | |
class NextEpisodePipe { | |
transform(episodes: Episode[]) { | |
const now = Date.now(); |
This file contains 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
import {Pipe} from 'angular2/core'; | |
@Pipe({ | |
name: 'dateString' | |
}) | |
class DateStringPipe { | |
transform(dateString: string, args: string[]) { | |
const [, year, month, day] = /^(\d\d\d\d)-(\d\d)-(\d\d)$/.exec(dateString) || [,,,,]; | |
} |
This file contains 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
const angular = 1 * '🍎'; | |
const react = 1 * '🍐'; | |
angular > react // false | |
angular < react // false | |
angular === react // false | |
This file contains 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
namespace Demo.Controllers | |
{ | |
public static class HttpSingleton | |
{ | |
private static PainlessHttp.Client.HttpClient instance; | |
public static PainlessHttp.Client.HttpClient Instance | |
{ | |
get |
This file contains 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
'use strict'; | |
var mockKnex = require('mock-knex'); | |
var knex = require('knex')({ | |
client: 'mysql', | |
connection: { | |
host: 'localhost', | |
user: 'user', | |
password: 'password', | |
database: 'database', |
NewerOlder