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
Put this in your ProjectConfiguration.class.php: | |
sfConfig::set('sf_log_date', date('Y-m-d')); | |
And in factories.yml: | |
prod: | |
logger: | |
class: sfAggregateLogger | |
param: | |
session_name: vvd_website | |
level: err |
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
class Configuration | |
{ | |
private static $connection; | |
/** | |
* @static | |
* @return array | |
*/ | |
public static function getConfig() | |
{ |
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
// ==UserScript== | |
// @name Tweakers.net old carrousel | |
// @namespace http://tweakers.net | |
// @include http://tweakers.net/ | |
// @include http://www.tweakers.net/ | |
// ==/UserScript== | |
var $; | |
(function(){ | |
if (typeof unsafeWindow.jQuery == 'undefined') { |
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
/* | |
Copyright (C) 2021 Pascal de Vink (Tweakers.net) | |
This library is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Lesser General Public | |
License as published by the Free Software Foundation; either | |
version 2.1 of the License, or (at your option) any later version. | |
This library is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
/* | |
* Beware, that this is not for the faint of heart! | |
* No documentation is provided. New versions of <redacted> will not feature | |
* upgradescripts, this must be done by hand. | |
*/ |
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
BOOL is_Object(const id b) | |
{ | |
if (b != nil) { | |
if (b->isa != (id)0x0) { | |
if (b->isa!= (id)0x7f) { | |
if (b->isa!= (id)0x7f7f7f7f) { | |
return YES; | |
} | |
} | |
} |
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
{ socket: | |
{ _handle: | |
{ writeQueueSize: 0, | |
owner: [Circular], | |
onread: [Function: onread] }, | |
_pendingWriteReqs: 1, | |
_flags: 0, | |
_connectQueueSize: 0, | |
destroyed: false, | |
errorEmitted: false, |
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
├── [email protected] | |
├─┬ [email protected] | |
│ ├── [email protected] | |
│ └── [email protected] | |
├── [email protected] | |
├─┬ [email protected] | |
│ ├── [email protected] | |
│ ├─┬ [email protected] | |
│ │ ├── [email protected] | |
│ │ ├─┬ [email protected] |
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
//we changed this function so you can add a class 'ignore-link' to an element | |
//this way the click is registered, but not followed | |
function ns_onclick(i, b, c, h, j) { | |
var e = ""; | |
if (typeof ns_pixelUrl == "string") { | |
e = ns_pixelUrl.substring(0, ns_pixelUrl.indexOf("?") + 1) | |
} | |
e += c; | |
e += "&ns_type=" + h + "&ns_action=view"; | |
e += "&ns__t=" + (new Date()).getTime(); |
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
{ | |
"user": { | |
"name": "Bob", | |
"email": "[email protected]", | |
}, | |
"data": { | |
"prescriptionNumber": 12345, | |
"dateAndTime": "2014-08-26 16:45:22 UTC-1", | |
"prescribingMedic": { | |
"name": "Bob", |