Skip to content

Instantly share code, notes, and snippets.

View juli1's full-sized avatar
🎯
Focusing

Julien Delange juli1

🎯
Focusing
View GitHub Profile
wefwefwefwef
wef
wefwef
const foo = "bar";
const updateFoo = bla ? "baz" : foo;
var foo = "bar";
if (bla) {
foo = "baz";
}
const { loading, data, error } = useQuery(GRAPHQL_REQUEST);
if (error) {
/* error handling */
}
const { loading, data } = useQuery(GRAPHQL_REQUEST);
@juli1
juli1 / database.sql
Last active May 18, 2021 20:33
Database definition
CREATE TABLE [IF NOT EXISTS] users (user_id int ,
user_name VARCHAR(50) NOT NULL,
user_last VARCHAR(50) NOT NULL,
login_id VARCHAR(60) NOT NULL,
user_phone INT (15),
rol_id INT NOT NULL,
PRIMARY KEY (user_id),
FOREIGN KEY (login_id) REFERENCES login(login_id),
FOREIGN KEY (rol_id) REFERENCES role(role_id)
);
diff --git a/org.osate.xtext.aadl2/src/org/osate/xtext/aadl2/validation/Aadl2JavaValidator.java b/org.osate.xtext.aadl2/src/org/osate/xtext/aadl2/validation/Aadl2JavaValidator.java
index b962369..8dbc324 100644
--- a/org.osate.xtext.aadl2/src/org/osate/xtext/aadl2/validation/Aadl2JavaValidator.java
+++ b/org.osate.xtext.aadl2/src/org/osate/xtext/aadl2/validation/Aadl2JavaValidator.java
@@ -3564,7 +3564,7 @@
Property dataSizeProperty = GetProperties.lookupPropertyDefinition(dataImplementation, MemoryProperties._NAME, MemoryProperties.SOURCE_DATA_SIZE);
try {
LongWithUnits implementationSize = new LongWithUnits((IntegerLiteral)PropertyUtils.getSimplePropertyValue(dataImplementation, dataSizeProperty));
- List<Optional<LongWithUnits>> subcomponentSizes = getSizesForSubcomponents(dataImplementation, dataSizeProperty).collect(Collectors.toList());
+ List<Optional<LongWithUnits>> subcomponentSizes = (List<Optional<LongWithUnits>>) getSizesForSubcomponents(dataImplementation, dataSizeProperty).collect(
This file has been truncated, but you can view the full file.
package producer_consumer
public
with Deployment;
with Data_Model;
----------
-- Data --
----------
data Alpha_Type
package icd
public
with base_types;
with data_model;
data pedal_value
package RAMSES_buses
public
bus rtl8029
end rtl8029;
end RAMSES_buses;