This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Approach 01 | |
@Inject private TypeReferences typeReferences; | |
private LightweightTypeReference getGenericType(ITypeComputationState state, Class<?> t, Class<?>... t1) { | |
var resourceSet = state.getReferenceOwner().getContextResourceSet(); | |
var rawType = typeReferences.getTypeForName(t, resourceSet).getType(); | |
var typeParam = typeReferences.getTypeForName(t1[0], resourceSet); | |
return state.getReferenceOwner() | |
.toLightweightTypeReference(typeReferences.createTypeRef(rawType, typeParam);) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import org.apache.flink.api.common.RuntimeExecutionMode; | |
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment; | |
/** | |
* Flink Streaming Dataflow (source -> map operator -> sink) | |
* The code is translated into a graph of tasks, as shown here - https://ci.apache.org/projects/flink/flink-docs-release-1.11/learn-flink/#parallel-dataflows | |
*/ | |
public class HelloWorldFlink { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DefinitionGenerator extends JvmModelGenerator { | |
override protected _internalDoGenerate(EObject obj, IFileSystemAccess fsa) { | |
generateSchema(obj as Definition, fsa) | |
generateDotNetCore(obj as Definition, fsa) | |
} | |
def void generateSchema(Definition definition, IFileSystemAccess fsa) { | |
fsa.generateFile( | |
definition.name + ".sql", // |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://wiki.eclipse.org/Equinox/p2/FAQ#Why_are_my_uninstalled_bundles_being_reloaded.21.3F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
XPrimaryExpression returns xbase::XExpression: | |
super | | |
XRepeatExpression; | |
XRepeatExpression returns xbase::XExpression: | |
{XRepeatExpression} 'repeat' numTimes=INT 'times' expression=XExpression; | |
------------------------------------------------------------------------ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/eclipse/xtext-core/blob/master/org.eclipse.xtext/src/org/eclipse/xtext/documentation/impl/MultiLineCommentDocumentationProvider.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR: out of shared memory | |
HINT: You might need to increase max_locks_per_transaction. | |
# Solution | |
1. Open /data/postgresql.conf | |
2. set max_locks_per_transaction = 1024 | |
3. Save and Restart postgresql. | |
# Restarting Postgresql | |
1. Winkey + R |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eLang - https://github.com/vorburger/eLang | |
ptolemy - https://github.com/hallvard/ptolemy | |
raas4emf - https://github.com/patins1/raas4emf | |
sm - https://github.com/djnemeth/sm | |
kortargyalo-MDSD-2016 - https://github.com/ftsrg-mdsd/kortargyalo-MDSD-2016/tree/ee27d3e56095b4e253be869dd166366a2eb4d50f | |
emfacade - https://github.com/hallvard/emfacade | |
xklaim - https://github.com/LorenzoBettini/xklaim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to - list all the files in a commit? | |
https://stackoverflow.com/questions/424071/how-to-list-all-the-files-in-a-commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RPackage: | |
'pkg' name=QualifedName | |
importDec=ImportDeclaration?; | |
ImportDec: | |
'imports' '{'imports+=Import*'}'; | |
Import: | |
importedNamespace=QNWildcard; | |
Problems with the above grammar: 1) You have to overwrite `ImportedNamespaceAwareLocalScopeProvider#internalGetImportedNamespaceResolvers()`, and in that you have to write special handling code to deal with the `ImportDec` (PS code below), 2) In real world projects, you'll see 1000's of models files created, which means equal number of `ImportDec` are created in the memory. It increases the memory requirement, and also increases the work of the garbage collector. |
NewerOlder