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 | |
class GoogleCloudMessagingHandler{ | |
protected $apiKey; | |
protected $ids=array(); | |
protected $url= 'https://android.googleapis.com/gcm/send'; | |
public function __construct($apiKey){ | |
$this->apiKey = $apiKey; | |
$this->fetchIds(); |
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
CREATE TABLE IF NOT EXISTS `android_registered_ids` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`registrationID` varchar(255) COLLATE utf8_unicode_ci NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=16 ; |
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
package de.schmitt.michael.lebensmittelwarnung.de; | |
import java.io.IOException; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.StatusLine; | |
import org.apache.http.client.ClientProtocolException; | |
import org.apache.http.client.HttpClient; | |
import org.apache.http.client.methods.HttpGet; | |
import org.apache.http.impl.client.DefaultHttpClient; |
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
<ListView android:id="@+id/MyListView" | |
android:layout_height="fill_parent" | |
android:layout_width="fill_parent" | |
android:divider="@android:color/transparent" | |
android:dividerHeight="10.0sp"/> |
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 | |
public function testGetMax52Weeks() { | |
$d = new DateTime('2015-08-01 00:00:00'); | |
$date52WeeksAgo = $d->modify('-52 weeks'); | |
var_dump($date52WeeksAgo->format(DateTime::ISO8601)); | |
$dates =[]; | |
$dates[] = '2014-08-01 00:00:00'; |
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
#!/bin/bash | |
wd=$(pwd) | |
git clone [email protected]:ZF2Buch2/kapitel02.git | |
git clone [email protected]:ZF2Buch2/kapitel03.git | |
git clone [email protected]:ZF2Buch2/kapitel04.git |
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 | |
// Requiring composer autoloader (local or global) | |
foreach ([__DIR__ . '/../../autoload.php', __DIR__ . '/vendor/autoload.php'] as $file) { | |
if (file_exists($file)) { | |
define('COMPOSER_AUTOLOADER', $file); | |
break; | |
} | |
} |
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
// Grunt tasks | |
module.exports = function (grunt) { | |
"use strict"; | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
banner: '/*!\n' + |
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 | |
/** | |
* @author: michael schmitt | |
* @desc: copy file to the / of a wordpress instance | |
* execute on commandline: php user.php username + password | |
*/ | |
if($argc < 3) { | |
die("usage php user.php username password" .PHP_EOL); | |
} | |
$userName= $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
#will improve this later | |
server { | |
listen 80; ## listen for ipv4; this line is default and implied | |
root /var/www/stock-rss.vapesetups.com/; | |
index index.html index.htm index.php; | |
access_log /var/log/nginx/ttrss_access.log; | |
error_log /var/log/nginx/ttrss_error.log info; |
OlderNewer