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 | |
namespace Caco\Password; | |
/** | |
* Mcrypt wrapper class. | |
* | |
* @author Guido Krömer <[email protected]> | |
* @package Caco\Password | |
*/ | |
class Mcrypt |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Google Feed API JSONP Example displaying some Images - wwww.cacodaemon.de</title> | |
<script type="text/javascript"> | |
function processResults (response) { | |
var entries = response.responseData.feed.entries; | |
var images = document.getElementById('images'); |
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 | |
/** | |
* Converts the questions from the "OCA Java SE 7 Programmer 1 Study Guide (Exam 1Z0-803)" book CD into a readable JSON format. | |
* The dBASE files from the book disc have to be exported to a csv file first. | |
* | |
* @autor Guido Krömer <[email protected]> | |
*/ | |
$fileQuestions = 'Questions.csv'; | |
$fileAnswers = 'Answers.csv'; |
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
function Vector2(x, y) { | |
this.x = x ? x : 1; | |
this.y = y ? y : 1; | |
this.add = function(vector2) { | |
return new Vector2(this.x + vector2.x, this.y + vector2.y); | |
}; | |
this.sub = function(vector2) { | |
return new Vector2(this.x - vector2.x, this.y - vector2.y); |
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
/* | |
* Simple JavaScript game manager. | |
* | |
* By Guido Krömer <[email protected]> 2013 | |
* | |
*/ | |
function GameManager () { | |
var canvas = null; | |
var ctx = null; | |
var delta = 0; |
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 | |
/** | |
* Creates some kind of combined image from a given set of images. | |
* All images should have the same resolution. | |
* Used and explained at www.cacodaemon.de | |
* | |
* Autor Guido Krömer | |
* E-Mail: mail<at>cacodaemon.de | |
* | |
*/ |
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
/* | |
* Simple JavaScript game manager. | |
* | |
* By Guido Krömer <[email protected]> | |
* | |
*/ | |
function GameManager () { | |
var canvas = null; | |
var ctx = null; | |
var delta = 0; |
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
/* | |
* Simple JavaScript game manager. | |
* | |
* (c) 2012 Guido Krömer <[email protected]> | |
* | |
*/ | |
function GameManager () { | |
var canvas = null; | |
var ctx = null; | |
var delta = 0; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>JSONP example</title> | |
<script> | |
var script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.src = 'http://cacodaemon.de/tutorials/jsonp_example.js'; | |
document.getElementsByTagName('head')[0].appendChild(script); |
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
module.exports.ChatClient = function () { | |
if (module.exports.ChatClient.instance) { | |
return module.exports.ChatClient.instance; | |
} | |
module.exports.ChatClient.instance = this; | |
this.host = null; | |
this.welcomeTime = 0; | |
var interval = null; |