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
<?XML version="1.1" encoding="UTF-8"?> | |
<!DOCTYPE keyboard PUBLIC "" "file://localhost/System/Library/DTDs/KeyboardLayout.dtd"> | |
<!--Last edited by Ukelele version 2.1.10 on 2012-05-10 at 19:14 (BST)--> | |
<keyboard group="0" id="13361" name="British - PC" maxout="1"> | |
<layouts> | |
<layout first="0" last="0" modifiers="Modifiers" mapSet="ANSI"/> | |
</layouts> | |
<modifierMap id="Modifiers" defaultIndex="0"> | |
<keyMapSelect mapIndex="0"> | |
<modifier keys=""/> |
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
/* | |
* Copyright (C) 2010-2011 Chris Beswick <chris.beswick@gmail.com> | |
* | |
* This file is part of avs2pipe. | |
* | |
* avs2pipe is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* |
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 | |
abstract class PPI_Model | |
{ | |
protected $_dsName = 'default'; | |
protected function __construct() | |
{ | |
$this->_connection = PPI_DataSources::get($this->_dsName); | |
} |
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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
use epoll; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; |
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
/* | |
Possible SHA1 values 2^160 = 1.46150164 × 10^48 | |
RAND() returns a float from 0 to 1 ~= 10^16 | |
CONCAT(RAND(), RAND(), RAND()) | |
*/ |
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 | |
function compilePatterns($pattern) { | |
$repl = array(); | |
$replace = function($value) use (&$repl) { | |
$key = ':::' . count($repl) . ':::'; | |
$repl[$key] = $value[0]; | |
return $key; | |
}; | |
$pattern = preg_replace_callback('/\{[0-9,]+\}/', $replace, $pattern); |
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 | |
namespace lambent\core; | |
use ReflectionClass; | |
class Object | |
{ | |
protected static $_defaults = array( | |
'_config' => 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 | |
class Registry_Compat { | |
private $_imp; | |
public function __construct($imp) | |
{ | |
$this->_imp = $imp; | |
} | |
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 | |
function update_user { | |
local user=$1 | |
local email=$2 | |
local pass=$3 | |
local wiki_pass=$(htpasswd -nb $user $pass) | |
local email_pass=$(md5pass $user) |
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
<html> | |
<head> | |
<title>Carlsberg don't do websites, so we got this pap instead</title> | |
<meta http-equiv="refresh" content="1"> | |
</head> | |
<body> | |
<?php | |
$db = new mysqli( 'localhost', 'user', 'password', 'weatherdb'); |
NewerOlder