Creating a new PHPExcel Object.
$this->PHPExcel = new PHPExcel();
Creating a new sheet:
// | |
// UIColor+Hex.h | |
// | |
// Created by Tom Adriaenssen on 13/01/11. | |
// | |
@interface UIColor (Hex) | |
+ (UIColor*) colorWithCSS: (NSString*) css; | |
+ (UIColor*) colorWithHex: (NSUInteger) hex; |
// | |
// UIDeviceHardware.h | |
// | |
// Used to determine EXACT version of device software is running on. | |
#import <Foundation/Foundation.h> | |
@interface UIDeviceHardware : NSObject | |
- (NSString *) platform; |
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.github.io | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
*/ |
<!doctype html> | |
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
<html> | |
<head> | |
<title>iOS 8 web app</title> | |
<!-- CONFIGURATION --> |
/** | |
* Underscore string descending sortBy | |
* usage: | |
* Sort by name ascending `_.sortBy(data, string_comparator('name'));` | |
* Sort by name descending `_.sortBy(data, string_comparator('-name'));` | |
*/ | |
var string_comparator = function(param_name, compare_depth) { | |
if (param_name[0] == '-') { | |
param_name = param_name.slice(1), | |
compare_depth = compare_depth || 10; |
<!DOCTYPE html> | |
<head> | |
<title>HTML5 Camera Fun</title> | |
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script> | |
<script src="http://www.nihilogic.dk/labs/exif/exif.js" type="text/javascript"></script> | |
<script src="http://www.nihilogic.dk/labs/binaryajax/binaryajax.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
// Wrapper around MPL-licensed http://www.nihilogic.dk/labs/binaryajax/binaryajax.js | |
// to support JavaScript typed arrays since binary strings are not supported in IE 10 | |
var createBinaryFile = function(uintArray) { |
var mongoose = require('mongoose'); | |
mongoose.connect('mongodb://localhost/test'); | |
var db = mongoose.connection; | |
db.on('error', function() { | |
return console.error.bind(console, 'connection error: '); | |
}); | |