This file contains hidden or 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 | |
require_once 'vendor/autoload.php'; | |
use Guzzle\Http\Client; | |
$client = new Client('http://192.168.0.5:5280'); |
This file contains hidden or 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
// Basic XMPP bot example for HipChat using node.js | |
// To use: | |
// 1. Set config variables | |
// 2. Run `node hipchat_bot.js` | |
// 3. Send a message like "!weather 94085" in the room with the bot | |
var request = require('request'); // github.com/mikeal/request | |
var sys = require('sys'); | |
var util = require('util'); |
This file contains hidden or 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
{ So richtig ersichtlich ist es nicht für was das zu gebrauchen aber here we go… } | |
{ Diese Klasse speichert das OnChange Event eines TField-Objektes und | |
ersetzt das OnChange-Event mit einer eigenen Funktion. Die eigene | |
Funktion ruft das original OnChange-Event auf und das eigene | |
OnAlert-Event auf, so es denn vorhanden ist. } | |
unit uCCRefreshTitleFieldOnChange; | |
This file contains hidden or 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
def manage(request): | |
if (request.action == 'new_entry'): | |
result = new_entry(request) | |
render(request.format,result) | |
if (request.action == 'new_pin'): | |
result = new_pin(request) | |
render(request.format,result) | |
def render(format,obj): | |
if (format == 'json'): |
This file contains hidden or 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
def new_entry(request): | |
format = "json" | |
if ('format' in request.POST): | |
format = request.POST['format'] | |
if ('submit' in request.POST): | |
# gives us a json: { "text" : "Dies ist eine Meldung", "isPublic" : 1 } | |
# entry_text = | |
# entry_isPublic = | |
# entry_published = datetime.now() | |
# -> save |