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
function dodajGmineDoBazy(nazwa)
{
var id = $.post("/ajaxuser/","todo=dodajGmineDoBazy&nazwa="+nazwa,function(resp)
{
;
});
return 1;
}
function dodajGmineDoBazy(nazwa)
{
var dupa;
var id = $.post("/ajaxuser/","todo=dodajGmineDoBazy&nazwa="+nazwa,function(resp)
{
dupa = resp;
});
alert(dupa);
}
<?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>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<title>Wyszukiwarka - Sale Weselne</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="keywords" content="wyszukiwarka, Sale Weselne, Domy Weselne, Sala Weselna" />
<meta name="description" content="Wyszukaj Swoje miejsce na wesele. Sale weselne dla Ciebie." />
<meta name="google-site-verification" content="Znr7TqYk2Xl1Wq8Y1mwqxZhPrdcMCg6wtFsvK-baSF4" />
<base href="http://otosala/" />