Skip to content

Instantly share code, notes, and snippets.

View develar's full-sized avatar

Vladimir Krivosheev develar

  • JetBrains
  • Kronach, Bavaria
View GitHub Profile
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy element plugins</id>
<goals>
<goal>copy</goal>
</goals>
<configuration>
JPanel:
- JScrollPane(name=scroll1): JTextArea(name=source,font=Monospaced,editable=false)
- MigLayout: |
[200,grow] [right] [200,grow] [200,grow]
scroll1+1+* "Last name:" txtLName "First Name" txtFName
"Phone:" txtPhone "Email:"+2,txtEmail
"Address 1:" txtAddress1+*
"Address 2:" txtAddress2+*
"City:" txtCity
"State:" txtState "Postal Code:" txtPostal
Compact YAML syntax
-------------------
Although the base YAML format is already pretty concise, JavaBuilders adds a custom extension to it
that we call "virtual constructor flow", otherwise referred to simply as compact YAML. It allows to specify
the child properties of an object in the same line of text as the object definition.
Here's a pure YAML example::
JFrame:
Permission denied: Permission denied
java.net.BindException: Permission denied
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:97)
at com.jetbrains.actionscript.profiler.ProfilingConnection$2.run(ProfilingConnection.java:155)
at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:332)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
<?xml version="1.0"?>
<Group xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="library://ns.adobe.com/flex/spark">
<layout>
<VerticalLayout/>
</layout>
<HGroup>
<Label text="Label 1"/>
<TextInput/>
</HGroup>
export M2_HOME=/opt/local/share/java/maven3
export M2=$M2_HOME/bin
export M2_OPTS="-Xms256m -Xmx512m"
export PATH=/opt/local/bin:/opt/local/sbin:$M2:$PATH
*flash Трава. Вот это трава. Явно в офисах Adobe сотрудникам не предоставляют легкий доступ к напиткам и они с жажды такое чудят. http://youtrack.jetbrains.net/issue/IDEA-56342 А вся штука в том, что знаете как в байткоде представлен name для implements IDataOutput? Как multiname {"private", "", "flash.net", "flash.net", "flash.utils"} (два раза flash.net это не моя опечатка). Вопрос, как же нам сформировать FQN? А никак.
swfdump, инструмент, входящий во Flex SDK, тупо перечесляет через запятую "private,,flash.net,flash.net,flash.utils:IDataOutput"
Инструменты декомпиляции, типа Sothink/Trillix FQN не строят — выкидывают к чертям дубликаты, пустые строчки и private и добавляют import statement как import flash.events.*; import flash.utils.*; (импорта flash.net нет, так как в данном примере класс Socket в пакете flash.net).
Самое смешное, как решает эту проблему компилятор — во Flex SDK есть три класса MultiName (при этом с самого рождения флекса у Adobe есть желание, видное по комментариям "TODO Try to remo
package com.intellij.flex.uiDesigner.test {
import flash.display.DisplayObject;
import flash.display.Sprite;
[DefaultProperty("mxmlContent")]
public class FlashContainer extends Sprite {
private var _mxmlContent:Vector.<DisplayObject>;
public function set mxmlContent(value:Vector.<DisplayObject>):void {
if (value == _mxmlContent) {
return;
From ecd7497ba3b8343e9dfb78e8afc395ac0a47b1fe Mon Sep 17 00:00:00 2001
From: develar <develar@gmail.com>
Date: Wed, 18 Apr 2012 16:52:37 +0400
Subject: [PATCH] ack on event
---
dist/socket.io.js | 29 +++++++++--------------------
1 file changed, 9 insertions(+), 20 deletions(-)
diff --git a/dist/socket.io.js b/dist/socket.io.js