Skip to content

Instantly share code, notes, and snippets.

View zubairov's full-sized avatar

Renat Zubairov zubairov

View GitHub Profile
@zubairov
zubairov / v41-segments.xsd
Created April 8, 2011 14:31
A generated schema of the UN/EDIFACT header elements
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsd:schema xmlns:unedifact="urn:org.milyn.edi.unedifact.v41" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:org.milyn.edi.unedifact.v41">
<xsd:element name="UNEDIFACT" type="unedifact:UNEDIFACT"/>
<xsd:complexType name="Une">
<xsd:sequence>
<xsd:element form="qualified" name="controlCount" type="xsd:string"/>
<xsd:element form="qualified" name="groupRef" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Ung">
@zubairov
zubairov / SmooksEntityManager.java
Created April 13, 2011 16:31
Entity manager that is (when registered) validates Smooks XML files
/*
* Milyn - Copyright (C) 2006 - 2011
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License (version 2.1) as published by the Free Software
* Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
renat-zubairovs-macbook-2:sandbox zubairov$ mvn clean gwt:run
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Parent pom for the sandbox
[INFO] STS
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Parent pom for the sandbox 4.0
@zubairov
zubairov / MANIFEST.MF
Created July 20, 2011 09:17
How to parse WSDL and associated XML Schemas in Eclipse
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: WSDLParsing
Bundle-SymbolicName: WSDLParsing
Bundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Require-Bundle: org.eclipse.wst.wsdl;bundle-version="1.2.104",
org.junit;bundle-version="3.8.2",
org.eclipse.emf;bundle-version="2.6.0",
org.eclipse.emf.ecore;bundle-version="2.6.1",
@zubairov
zubairov / tRESTDemo.java
Created October 4, 2011 14:16
REST Provider
// ============================================================================
//
// Copyright (c) 2005-2010, Talend Inc.
//
// This source code has been automatically generated by_Talend Open Studio for ESB
// / JobDesigner (CodeGenerator version 5.0.0.NB_r69277)
// You can find more information about Talend products at www.talend.com.
// You may distribute this code under the terms of the GNU LGPL license
// http://www.gnu.org/licenses/lgpl.html).
//
@zubairov
zubairov / MyRouteBuilder.java
Created October 10, 2011 14:48
ESB Features in Camel Route proposal
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@zubairov
zubairov / JobWithMap.java
Created October 19, 2011 13:23
Job with tXMLMap enabled that does not work on runtime
// ============================================================================
//
// Copyright (c) 2005-2010, Talend Inc.
//
// This source code has been automatically generated by_Talend Open Studio for ESB
// / JobDesigner (CodeGenerator version 5.0.0.NB_r70466)
// You can find more information about Talend products at www.talend.com.
// You may distribute this code under the terms of the GNU LGPL license
// http://www.gnu.org/licenses/lgpl.html).
//
@zubairov
zubairov / gist:1404830
Created November 29, 2011 13:39
Defaults are not inherited in backbone.js
suite('Bug', function() {
suite('Backbone.js basic functionality', function() {
test('Defaults are inherited', function() {
var One = Backbone.Model.extend({
defaults : {
children : []
}
});
var Two = One.extend();
@zubairov
zubairov / fabris_issue.js
Created January 26, 2012 11:13
fabric.js issue with groups
var left = this.get('left');
var top = this.get('top');
var title = this.get('title');
fabric.Image.fromURL(this.get('icon'), function(img) {
img.set('left', left + img.width / 2 + 6).set('top', top + img.height / 2 + 6);
var text = new fabric.Text(title, {
fontFamily: 'Delicious_500',
left: left + 38,
top: top + 90,
fontSize: 20,