Creating a new PHPExcel Object.
$this->PHPExcel = new PHPExcel();
Creating a new sheet:
| // Lefalet shortcuts for common tile providers - is it worth adding such 1.5kb to Leaflet core? | |
| L.TileLayer.Common = L.TileLayer.extend({ | |
| initialize: function (options) { | |
| L.TileLayer.prototype.initialize.call(this, this.url, options); | |
| } | |
| }); | |
| (function () { | |
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| body{ | |
| background: #f06; | |
| background: linear-gradient(45deg, #f06, yellow); | |
| min-height: 100%; | |
| font-size: 0; | |
| letter-spacing: -1; | |
| } |
| /** | |
| * Pass Container | |
| */ | |
| /*background: #f06; | |
| background: linear-gradient(45deg, #f06, yellow); | |
| min-height: 100%;*/ | |
| * { | |
| box-sizing: border-box; | |
| } |
| #!/usr/bin/env bash | |
| echo ">>> Starting Install Script" | |
| # Update | |
| sudo apt-get update | |
| # Install MySQL without prompt | |
| sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
| sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| https://github.com/curl/curl/blob/master/lib/vtls/nss.c | |
| http://www.theblog.ca/converting-php-curl-ssl-tls-cipher-names | |
| static const cipher_s cipherlist[] = { | |
| /* SSL2 cipher suites */ | |
| {"rc4", SSL_EN_RC4_128_WITH_MD5}, | |
| {"rc4-md5", SSL_EN_RC4_128_WITH_MD5}, | |
| {"rc4export", SSL_EN_RC4_128_EXPORT40_WITH_MD5}, | |
| {"rc2", SSL_EN_RC2_128_CBC_WITH_MD5}, | |
| {"rc2export", SSL_EN_RC2_128_CBC_EXPORT40_WITH_MD5}, |
This gist assumes:
| Specifically, this gruntfile will perform the following. | |
| - CSS: | |
| -- Compile SCSS | |
| -- Add vendor prefixes for the last 10 browser versions | |
| - JS: | |
| -- Run scripts through jshint to detect errors and potential problems in code. | |
| -- Compile scripts to your destination folder in their original state. Use these in development environments as they'll be easier to debug with as their code doesn't exist on 1 line, nor is it obfuscated. | |
| -- Minify and concatenate scripts into one all.min.js. Uglify will also obfuscate code if you set mangle to true, leave as false if using AngularJS. |
| #!/bin/bash | |
| now=`date +"%Y-%m-%d" -d "05/06/2012"` | |
| end=`date +"%Y-%m-%d" -d "05/23/2012"` | |
| while [ "$now" != "$end" ] ; | |
| do | |
| now=`date +"%Y-%m-%d" -d "$now + 1 day"`; | |
| echo $now | |
| done |