#Inspection Tools with homebrew-php#
##Prerequisites##
- Homebrew is installed
##Step 1: Installing homebrew-php##
brew tap homebrew/dupes
brew tap josegonzalez/homebrew-php
brew install PHP53
(or other version of your choice)
import { Directive, ElementRef, HostListener, Input, Output, EventEmitter } from '@angular/core'; | |
import * as XLSX from 'xlsx' | |
@Directive({ | |
selector: '[appXlsx]' | |
}) | |
export class XLSXDirective { | |
@Output() onSuccess = new EventEmitter() | |
constructor(private el: ElementRef) { | |
} |
import { Injectable } from '@angular/core'; | |
import { environment } from '../../../environments/environment'; | |
import { HttpHeaders, HttpClient, HttpParams } from '@angular/common/http'; | |
import { Observable } from 'rxjs/Rx'; | |
import { Router } from '@angular/router'; | |
import 'rxjs/add/operator/map'; | |
import 'rxjs/add/operator/catch'; | |
import { JwtService } from './jwt.service'; |
<?php | |
namespace App\Meetvote\PDF; | |
abstract class PDF | |
{ | |
protected $phpWord; | |
protected $docx_path; | |
protected $templateProcessor; | |
public function __construct($templateName) | |
{ | |
$this->templateProcessor = new \PhpOffice\PhpWord\TemplateProcessor(resource_path('views/template-pdf/'.$templateName)); |
addCart(product) { | |
this.cartService.addCart(); | |
} |
#Inspection Tools with homebrew-php#
##Prerequisites##
##Step 1: Installing homebrew-php##
brew tap homebrew/dupes
brew tap josegonzalez/homebrew-php
brew install PHP53
(or other version of your choice)import * as request from 'request-promise'; | |
export class Kong { | |
constructor( | |
private readonly baseUrl, | |
) { } | |
get(path) { | |
return this.request('GET', path); | |
} | |
post(path, body) { |
export enum GlobalState { | |
Layout = 1, | |
User = 3, | |
MaxColumn = 5 | |
} |
usort($courses, function($a, $b) { | |
$vala = $a['courseCode']; | |
$valb = $b['courseCode']; | |
if($vala >= 1000000){ | |
$vala = intval($vala/100); | |
} | |
if($valb >= 1000000){ | |
$valb = intval($valb/100); | |
} | |
if($vala < $valb){ |
##cloud Hosted | |
socket.io | |
pusher.com | |
Faye https://github.com/faye/faye | |
Scaledrone https://www.scaledrone.com | |
Ably: https://www.ably.io | |
Contus Fly | |
Fanout: http://fanout.io/ | |
Firebase https://www.firebase.com | |
Gamooga: http://www.gamooga.com/ |
#!/bin/bash | |
LIVE_DATA=$(curl -s "$1" | grep __NEXT_DATA__ | sed 's/__NEXT_DATA__ =//g') | |
STATUS=$(echo $LIVE_DATA | jq '.props.live.status' | sed 's/"//g') | |
if [ $STATUS == "inactive" ] | |
then | |
echo "ERROR: live status is $STATUS" | |
exit -1 | |
fi |