Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -e
# ppas and downloads
sudo add-apt-repository -y ppa:papirus/papirus
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O ~/Downloads/google-chrome.deb
# update and install apt packages
sudo apt update
sudo apt install -y ~/Downloads/google-chrome.deb chrome-gnome-shell \
grunt.registerTask('default', [
'babel',
'compass:libs',
'compass:app',
'concat:libs',
'concat:flatninja',
'concat:dist',
'concat:css'
]);
<?php
$excel = new \PHPExcel();
$sheet = $excel->getActiveSheet();
$style = new \PHPExcel_Style();
$style
->getFill()
->setFillType(\PHPExcel_Style_Fill::FILL_SOLID)
// it's a solid color, do I have to set start or end? or are both required?
->setStartColor(new \PHPExcel_Style_Color(\PHPExcel_Style_Color::COLOR_RED))
@ctrl-f5
ctrl-f5 / phpoffice-phpexcel-styles.php
Created January 4, 2016 13:39
PHPOffice/PHPExcel cell styling
<?php
$excel = new \PHPExcel();
$sheet = $excel->getActiveSheet();
$sheet->getCell('A1')->setValue('test');
$style = new \PHPExcel_Style();
$style
->getFill()
->setStartColor(new \PHPExcel_Style_Color(\PHPExcel_Style_Color::COLOR_RED))
#testing github gists