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 Main { | |
static void calc_err(float xb, float x) { | |
float erroAbsoluto = Math.abs(x - xb); | |
float erroRelativo = Math.abs(erroAbsoluto/xb); | |
System.out.printf("%.5f %.5f\n", erroAbsoluto, erroRelativo); | |
} | |
public static void main(String[] args) { |
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
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME}#end | |
import androidx.recyclerview.widget.RecyclerView | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import androidx.recyclerview.widget.AsyncListDiffer | |
import androidx.recyclerview.widget.DiffUtil | |
#parse("File Header.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
rs.slaveOk(); | |
db.getCollectionNames().forEach(function(coll) { | |
db[coll].getIndexes().forEach(function(index) { | |
if ("_id_" !== index.name) { | |
print("db." + coll + ".createIndex(" + tojson(index.key) + ")"); | |
} | |
}); | |
}); |
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
#!/bin/bash | |
fuser 9443/tcp | |
fuser 9080/tcp | |
fuser 8878/tcp | |
fuser 8879/tcp | |
fuser 9060/tcp | |
kill -9 `ps -ef | grep java | awk -F" " '{print $2}'` |
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
#!/bin/bash | |
WAS_HOME=/opt/IBM/WebSphere/AppServer/profiles/AppSrv01 | |
EAR=$1 | |
printf "[DEPLOY] --- Gerando versão" | |
printf "\n" | |
mvn -e clean package -DskipTests | |
printf "[DEPLOY] --- Copiando EAR..." |
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
# vim:set ft=dockerfile: | |
# Create image based on the official Node 9.6.1 image from dockerhub | |
FROM php:7.2.2-fpm | |
# Install dependecies | |
RUN apt-get update && apt-get install -y \ | |
zlib1g-dev \ | |
libmemcached-dev \ | |
libfreetype6-dev \ | |
libjpeg62-turbo-dev \ |
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
# vim:set ft=dockerfile: | |
# Create image based on the official Node 9.6.1 image from dockerhub | |
FROM php:7.2.2-fpm | |
# Install dependecies | |
RUN apt-get update && apt-get install -y \ | |
zlib1g-dev \ | |
libmemcached-dev \ | |
libfreetype6-dev \ | |
libjpeg62-turbo-dev \ |
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
{ | |
"resourceType": "Practitioner", | |
"id": "#8295", | |
"contained": [ | |
{ | |
"resourceType": "PractitionerRole", | |
"id": "1", | |
"active": true, | |
"period": { | |
"start": "2017-12-07T00:00:00-03:00" |
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
{ | |
"resourceType": "Bundle", | |
"type": "message", | |
"entry": [ | |
{ | |
"resource": { | |
"resourceType": "MessageHeader", | |
"event": { | |
"system": "http://hl7.org/fhir/message-events", | |
"code": "admin-notify", |
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
curl -X POST \ | |
'http://localhost:8000/api/v1/fhir/$process-message' \ | |
-H 'accept: application/fhir+json' \ | |
-H 'authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU5ZjM4MzM3ZDJhYTRjM2U2N2YwMWY3ZSIsInN1YiI6InZpdG9yLmNvc3RhIiwibmFtZSI6IlZpdG9yIFBhY2hlY28gQ29zdGEiLCJzdXJuYW1lIjoiQ29zdGEiLCJwZXJtaXNzaW9ucyI6WyJhcHA6aG9tZSIsImFwcDpjb21wb3NpY2FvIiwiYXBwOmRhc2hib2FyZCIsImFwcDphdGVuZGltZW50byIsImFwcDpwYWNpZW50ZSIsImFwcDpwcm9udHVhcmlvIiwiYXBwOm9yZ2FuaXphY2FvIiwiYXBwOnByb2Zpc3Npb25hbCIsImFwcDphZG1pbmlzdHJhZG9yIl0sIm1haWwiOiJ2aXRvci5jb3N0YUBzb2x1dGlzLmNvbS5iciIsImlhdCI6MTUwOTEzMTA2MywiZXhwIjoxNTE2OTA3MDYzfQ.t1czVOcY4-Mn30BzDsuLpHbV7hTiHT9b2f-CgDe_bOUOFIi173Ebg7KPJ-0nsU4n1dJU6WEpqO5IPaiNlH-77nGiglpJTQjmvUC-RjPH2DjnBVDSgJ3DfCxo4KWUJj3rggqAUPrKvgztHQVJfsHM2rIdt_j-p7kYlPhXd9x-QJBu2HMyVIV5rmgDY8FCuq8zWVdNbHg61M_V3J20vhurlSHkLfy2jd8RlnoisRlsf21fECj6dcXeZcABuE13Inu1aXSSlTEn16_HHDLPuuS6aOMNYxYnnAogi2JdADWGv_1g3mlEUwdCzgstnBocBI-Yp3rPUzOuAhgJ1diNOt_X6yVrKhGpuo1c5XluW2cwUlh7HcuxS4wf1bkvdhCL65UcqZzwESQBoCGjX |
NewerOlder