Skip to content

Instantly share code, notes, and snippets.

View werring's full-sized avatar

Werring werring

  • The Netherlands
View GitHub Profile
@werring
werring / .htaccess
Last active September 24, 2015 19:53
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /mediawiki/$1
@werring
werring / collection.php
Created January 6, 2015 09:02
Magento Category Collection
<?php
/**
* @author T. Werring [email protected]
* @project MagentoVPS
* @created 30/12/14 16:57
*/
require_once 'app/Mage.php';
<?php
require_once 'app/Mage.php';
/**
* Error reporting
*/
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1);
@werring
werring / crypt.php
Created December 23, 2014 10:14
Encryption Class
<?php
/**
* @author T. Werring <[email protected]>
* @created 1-9-14 11:56
*/
/**
* Class Crypt
*
(function() {
var codes = [];
var codeCount = 0;
window.addEventListener('keyup', function(e) {
if (codes.length == 10) codes.shift();
codes.push(e.keyCode);
if (codes.join(",") == "38,38,40,40,37,39,37,39,66,65") {
codeCount++;
var event = new CustomEvent('konami');
event.konamiCount = codeCount;
<!DOCTYPE html>
<html>
<head>
<title>Hex Puzzle Teaser</title>
</head>
<body>
<canvas width="800" height="669" id="mazecanvas">Your browser does not support HTML5, you really should consider updating or downloading a better browser.</canvas>
<noscript>JavaScript is not enabled. To play the game, you need to enable it.</noscript>
<!DOCTYPE html>
<html>
<head>
<title>East Egg</title>
<style>
body {
background-color: grey;
}
</style>
<script>
<?php
namespace Model;
use Base\Exceptions\DatabaseConnect;
use Base\Log;
class Database extends Main {
private static $instances = array();
/**
<!DOCTYPE html>
<html>
<head>
<title>Creatifly puzzel</title>
<script type="application/javascript">
const PUZZLE_DIFFICULTY = 5;
const PUZZLE_HOVER_TINT = '#545454';
var _canvas;
var _stage;
/*
Theme Name: Meia Wippoo
Theme URI:
Author: <jouw naam>
Author URI:
Description: My wordpress theme
Version: 1.3
License: Creative Commons
License URI: http://creativecommons.org/licenses/by/3.0/deed
Tags: