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
reqTotal=$(wc -l $1 | awk -F' ' '{print $1}') | |
post=0 | |
get=0 | |
push=0 | |
put=0 | |
while IFS= read -r line; do | |
method=$(echo $line | cut -d' ' -f6) | |
if [ $method == '"POST' ] | |
then |
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
<div class="container"> | |
<form class="from col-auto" #s="ngForm"> | |
<div class="form-row align-items-center"> | |
<div class="col-auto"> | |
<label class="sr-only" for="inlineFormInput">Name</label> | |
<input type="text" class="form-control mb-2" | |
name="username" ngModel placeholder="User Name"> | |
</div> | |
<div class="col-auto"> | |
<input type="date" class="form-control mb-2" name="date" ngModel> |
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
export class Message { | |
content: string; | |
style: string; | |
date: number; | |
constructor(content, style) { | |
this.content = content; | |
this.style = style || 'info'; | |
this.date = new Date().getTime(); |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Web.Http.Routing; | |
namespace DeLoachAero.WebApi | |
{ | |
public class IsValidAccount : IHttpRouteConstraint | |
{ |
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, Renderer2, ElementRef, HostListener, HostBinding, Input } from '@angular/core'; | |
import { MockNgModuleResolver } from '@angular/compiler/testing'; | |
@Directive({ | |
selector: '[appBetterHighlight]' | |
}) | |
export class BetterHighlightDirective { | |
@Input() defaultColor = 'transparent'; | |
@Input() highlightColor = 'blue'; | |
@HostBinding('style.backgroundColor') background: string;; |
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
<div class="container"> | |
<div class="row"> | |
<div class="col-xs-12"> | |
<h3>Bind it!</h3> | |
<div> | |
<app-game-control (addNumber)="showCount($event)"></app-game-control> | |
<div class="row"> | |
<div class="col-xs-6"> | |
<app-even *ngFor="let number of numberCount" [evenNumber]="number"></app-even> | |
</div> |
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 List from '@/components/List' | |
import Vue from 'vue' | |
describe('List.vue', () => { | |
it('displays items from the list', () => { | |
// our test goes here | |
const Constructor = Vue.extend(List) | |
const ListComponent = new Constructor().$mount() | |
expect(ListComponent.$el.textContent).to.contain('play games') | |
}) |
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
<?php | |
namespace App\Http\Controllers; | |
use Log; | |
use Laravel\Lumen\Routing\Controller as BaseController; | |
class Controller extends BaseController | |
{ |