Skip to content

Instantly share code, notes, and snippets.

View muchrm's full-sized avatar
😃

Pongpanot Chuaysakun muchrm

😃
  • LINE THAILAND
  • Thailand
  • 21:21 (UTC +07:00)
View GitHub Profile
@muchrm
muchrm / php-code-inspection.md
Created September 17, 2017 07:21
How to install PHP code inspection tools using homebrew-php and how to integrate with JetBrain's IntelliJ or PhpStorm

#Inspection Tools with homebrew-php#

##Prerequisites##

  • Homebrew is installed

##Step 1: Installing homebrew-php##

  1. brew tap homebrew/dupes
  2. brew tap josegonzalez/homebrew-php
  3. brew install PHP53 (or other version of your choice)
@muchrm
muchrm / add-products.component.ts
Last active September 8, 2017 04:57
ของอิ้น
addCart(product) {
this.cartService.addCart();
}
<?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));
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';
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) {
}