Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:access_control_1_0="http://berlinonline.de/schemas/honeybee/config/access_control/1.0"
targetNamespace="http://agavi.org/agavi/config/global/envelope/1.0"
elementFormDefault="qualified"
>
<xs:import namespace="http://berlinonline.de/schemas/honeybee/config/access_control/1.0"
schemaLocation="parts/access_control.xsd" />
@graste
graste / .vimrc
Created June 29, 2014 11:52
.vimrc in working copy root folder based on .git location
" Load .vimrc in the base directory of a git repo, if it exists
let $git_vimrc= expand(system("echo -n $(git rev-parse --show-toplevel)/.vimrc"))
if filereadable($git_vimrc) && $git_vimrc != expand("$HOME/.vimrc")
source $git_vimrc
endif
@graste
graste / validator.php
Last active August 29, 2015 14:04
literalized argument name in agavi validator
<?php
class YourValidator extends AgaviValidator
{
public function validate()
{
if ($this->hasMultipleArguments()) {
$this->throwError('multiple_arguments');
return false;
}
@graste
graste / index.html
Created September 15, 2014 21:37 — forked from anonymous/index.html
Selectbox custom styling
<html>
<head>
<title>Select styles with CSS only</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
background-color: #fff;
font-family: helvetica, sans-serif;
margin: 4% 10%
}
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
/// Bind all events, including self state if `$self` is true.
/// @author Harry Roberts
/// @link https://github.com/csswizardry/csswizardry.github.com/blob/master/css/_tools.mixins.scss#L13 CSSWizardry
/// @param {Bool} $self - Include self state
/// @output `:hover`, `:active` and `:focus`
@graste
graste / .gitignore
Last active April 3, 2016 11:46 — forked from karmi/.gitignore
Example Nginx Configurations for Elasticsearch
nginx/
!nginx/.gitkeep
!nginx/logs/.gitkeep
src/
tmp/
@graste
graste / UrlGeneratorInterface.php
Last active August 29, 2015 14:10
Route and URL generation in PHP frameworks
<?php
interface UrlGeneratorInterface
{
/**
* Generates a URL for the given route name and parameters. The options
* MAY be used to provide hints for the URL generation. This includes
* information about different parts of a URL, e.g. the scheme or port to
* use or whether absolute or relative URLs should be generated.
*
@graste
graste / datetime.php
Last active August 8, 2024 09:07
PHP DateTime class – parsing and formatting ISO8601 dates with or w/o fractions of a second
<?php
echo 'default locale: ' . \Locale::getDefault();
echo PHP_EOL;
echo 'default timezone: ' . \date_default_timezone_get();
echo PHP_EOL;
// see http://tools.ietf.org/html/rfc3339#section-5.8 for example datetimes
// bug report on missing fractions support: https://bugs.php.net/bug.php?id=51950
// feature request for fractions support in constructor: https://bugs.php.net/bug.php?id=49779