First: GET /sync Then create the PATCH document
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Utility functions to work with Command Line Interfaces | |
* | |
* @author Peter-Christoph Haider | |
*/ | |
/** | |
* Initilizes CLI arguements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Utility functions to parse and generate Excel files using PHPexcel | |
* | |
* @author Peter-Christoph Haider | |
*/ | |
/** | |
* Parses an excel file into an array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Sorts an array by key | |
* | |
* @param array $arrData | |
* @param string $strKey | |
* @param bool $bolAsc | |
*/ | |
function sortArray($arrData, $strKey, $bolAsc=true) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Checks if an array is associative or numeric | |
* | |
* @param array $arr | |
*/ | |
function isAssoc($arr) { | |
return is_array($arr) ? (array_keys($arr) !== range(0, count($arr) - 1)) : false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
distFolder: 'dist', | |
uglify: { | |
options: { | |
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' | |
}, | |
build: { | |
src: 'dist/<%= pkg.name %>.js', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Creates a markdown document based on the parsed documentation | |
* | |
* @author Peter-Christoph Haider <[email protected]> | |
* @package Apidoc | |
* @version 1.00 (2014-04-04) | |
* @license GNU Lesser Public License | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
if ( !isset($argv[1]) ) { | |
fputs(STDERR, 'Usage: '.basename($argv[0]).' <sqlite-file>'."\n"); | |
exit(1); | |
} | |
$dbFile = $argv[1]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
function dumpSqlite($database) { | |
$path = @tempnam(@sys_get_temp_dir(), 'sqlt'); | |
if ( !$path ) | |
return false; | |
$dump = @shell_exec('php '.escapeshellarg(dirname(__FILE__).DIRECTORY_SEPARATOR.'sqlitedump.php').' '.escapeshellarg($database)); | |
if ( !empty($dump) and @file_put_contents($path, $dump) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
request: | |
url: http://192.168.157.143:50505 | |
log: | |
error: log/error.log | |
default: log/default.log | |
rules: | |
- name: EAN scannen | |
input: ".*" | |
action: |
OlderNewer