Skip to content

Instantly share code, notes, and snippets.

View carbolymer's full-sized avatar
🤔
Building castles of abstraction

Mateusz Galazyn carbolymer

🤔
Building castles of abstraction
View GitHub Profile
[Adblock Plus]
! Title: CookieInfoBlocker
! Last modified: 25 Feb 2015 0:00 GMT
! Expires: 2 days (update frequency)
! Homepage: https://gist.github.com/
oracle.com#[class*="overlay"]
function dodajGmineDoBazy(nazwa)
{
var dupa;
var id = $.post("/ajaxuser/","todo=dodajGmineDoBazy&nazwa="+nazwa,function(resp)
{
dupa = resp;
});
alert(dupa);
}
function dodajGmineDoBazy(nazwa)
{
var id = $.post("/ajaxuser/","todo=dodajGmineDoBazy&nazwa="+nazwa,function(resp)
{
;
});
return 1;
}
<?php
$f = function(&$a)
{
$a = 'b';
};
$o = new stdClass;
$o->u = 5;
call_user_func($f,$o->u);
$vsn_config
['HttpRouter'] = array(
'subfolder' => '/',
'domain' => 'vsn.lc.carbolymer.pl',
'controller_folder' => &$this->core['controller_folder'],
'default_route' => 0,
'routes' => array(
array(
'pattern' => "/:controller,:action*",
'key' => array(),
<?php
namespace enum;
function Create($sName,$aValues, $sNamespace = __NAMESPACE__)
{
if(preg_match("#[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*#si",$sName) === 0)
throw new InvalidName;
if(class_exists('\enum\\'.$sName))
throw new NameExists;
$sValues = 'array(';
foreach($aValues as $sValue)
<?php
class RequestType extends SplEnum
{
const POST =1;
const GET =2;
};
class HttpRequest
{
public function __construct(RequestType $oType)
.:
components
core
exceptions
fldrlist.txt
libraries
notify-server.php
notify-server.php~
templates
TODO.txt
$('a#searchFormSubmit').click(function()
{
$("form#searchForm").submit();
return false;
});
<form action="/szukaj/wyswietl" method="POST" name="searchForm" id="searchForm">
<fieldset>
<label>Województwo<br />
<select name="wojewodztwoId" id="wojewodztwoId">
<option value="0">- wybierz -</option>
<option value="1" title="/images/herby/mini/woj-dolnoslaskie.png">dolnośląskie</option>
<option value="2" title="/images/herby/mini/woj-kujawsko-pomorskie.png">kujawsko-pomorskie</option>
<option value="3" title="/images/herby/mini/woj-lubelskie.png">lubelskie</option>
<option value="4" title="/images/herby/mini/woj-lubuskie.png">lubuskie</option>