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
1 Aggregator | |
1 Auth_remoteuser | |
1 Citation | |
1 Description | |
1 DisableSpecialPages | |
1 EnhanceContactForm | |
1 FootNote | |
1 FormPreloadPostCache | |
1 GlobalNotice | |
1 GoogleDocs4MW |
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 | |
define('MEDIAWIKI', 1); | |
require_once dirname( __FILE__ ) . '/languages/Names.php'; | |
require_once dirname( __FILE__ ) . '/includes/json/FormatJson.php'; | |
// Based on http://www.thefutureoftheweb.com/blog/use-accept-language-header | |
$langs = array(); | |
if ( isset( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) ) { | |
// break up string into pieces (languages and q factors) |
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
- Checkout the svn USERINFO folder into a directory. | |
- Setup this script right next to it and cd to that directory. | |
((ie: You should have ./USERINFO and ./useremails.rb sitting in front of you)) | |
((Note: Users who don't have an e-mail set are omitted from outputs)) | |
- `ruby useremails.rb` will give you a list of svn users, their name, and e-mail | |
- `ruby useremails.rb list` will give you that same list but in a comma separated "Name <email>" format | |
- `ruby useremails.rb obfuscated` will filter the list to only users who have obfuscated their e-mail | |
- `ruby useremails.rb obfuscated list` will take that filtered list and put it in the "Name <email>" format |
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 | |
/** | |
* Scalar | |
* | |
* @file | |
* @ingroup Skins | |
*/ | |
if( !defined( 'MEDIAWIKI' ) ) | |
die( -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
<?php | |
namespace Gareth\GarethWebBundle\Libs; | |
class GarethGit { | |
private $path; | |
public function __construct( $path ) { | |
$this->path = $path; |
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 Application { | |
// [...] | |
function getOwners() { | |
$res = $db->select( | |
array( 'user', 'application_owner' ), | |
User::selectFields(), | |
array( 'ao_app' => $this->getID() ), | |
__METHOD__, | |
null, |
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
var time = 0; | |
[ | |
[ 0, 'This is the new notification system.' ], | |
[ 6, 'As you can see it has autohide just like the previous one.' ], | |
[ 6, 'And clicking on a message will also hide it just like before.' ], | |
[ 6, 'But this time arround.' ], | |
[ 1, 'We support multiple messages.' ], | |
[ 2, 'Any sane number of them, really.' ], | |
[ 6, 'Auto-hide is good and all. But frankly sometimes you just HAVE to have a notification stick around.' ], | |
[ 1, 'This one uses { autoHide: false }', { autoHide: false } ], |
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 TemplateNode { | |
} | |
class TemplateText extends TemplateNode { | |
} | |
class TemplateCondition extends TemplateNode {} |
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 | |
$wgResourceModules['skins.yourskin'] = array( | |
'styles' => array( | |
'yourskin/yourskin.css' => array( 'media' => 'screen' ), | |
), | |
'remoteBasePath' => &$GLOBALS['wgStylePath'], | |
'localBasePath' => &$GLOBALS['wgStyleDirectory'], | |
); |
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
import logging, gevent | |
from gevent import monkey | |
from stompest.config import StompConfig | |
from stompest.protocol import StompSpec | |
from stompest.sync import Stomp | |
## Ideally this code (or something like it) would work without the following two lines | |
monkey.patch_socket() | |
monkey.patch_select() |