Skip to content

Instantly share code, notes, and snippets.

View vanduc1102's full-sized avatar
🐛
💯 💯 💩 😆 🐢

Duke Nguyen vanduc1102

🐛
💯 💯 💩 😆 🐢
View GitHub Profile
{
"data" : {
"children" : [],
"ivyIdEmployee" : ""
},
"resultStatus" : {
"successful" : false,
"message" : "Error when reading JSON for employee data",
"code" : "cstart_ManageEmployee - startCreate/UpdateEmployee - Read JSON",
@vanduc1102
vanduc1102 / NullPointerExeception1.json
Created June 16, 2016 03:46
this is some result for nullPointerException
{"person":{"id":57052,"guid":"155571CD5F142AD1","validFrom":"2016-06-16T09:49:15.507+07:00","civility":{"code":"Dr."},"title":{"code":"D"},"firstName":"Review","lastName":"#34526","birthDate":"2016-06-15T00:00:00.000+07:00","sex":{"code":"M"},"deathDate":"2016-07-01T00:00:00.000+07:00","identifiers":[{"id":72139,"value":"","indentifierType":{"code":"A"}},{"id":72140,"value":"","indentifierType":{"code":"DD"}},{"id":72141,"value":"","indentifierType":{"code":"EE"}},{"id":72142,"value":"","indentifierType":{"code":"fff"}},{"id":72143,"value":"756.1971.0487.89","validFrom":"2016-06-16T00:00:00.000+07:00","indentifierType":{"code":"NSS"}}],"maritalStatus":{"code":"MA"},"isSingleParent":false,"nationalities":[{"id":33089,"country":{"id":8100,"countryName":"Suisse","countryIsoAlpha2":"CH","countryIsoAlpha3":"CHE","countryIsoUn":756}}],"origins":[{"id":27018,"state":{"id":5,"stateName":"Schwyz","stateIso":"SZ","countryId":8100},"municipality":{"id":1301,"municipalityName":"Einsiedeln","stateIso":"SZ","districtId":0}
@vanduc1102
vanduc1102 / fulldata.json
Created June 29, 2016 02:59
errror with employeeNumerExist
employee with number:
{"person":{"id":60302,"guid":"14DFBAD0BBC82D3F","number":"123412341234","validFrom":"2016-06-29T00:00:00.000+07:00","civility":{"code":"Dr."},"title":{"code":"P"},"firstName":"Duc","lastName":"NGUYEN","birthDate":"2015-05-31T00:00:00.000+07:00","sex":{"code":"M"},"identifiers":[{"id":75650,"value":"1","indentifierType":{"code":"A","name":"Abreviation"}},{"id":75651,"value":"","indentifierType":{"code":"NSS","name":"NSS"}}],"passports":[{"id":32276,"number":"123123123","validFrom":"2016-05-29T00:00:00.000+07:00","validTo":"2016-06-23T00:00:00.000+07:00","country":{"id":8100,"countryName":"Suisse","countryIsoAlpha2":"CH","countryIsoAlpha3":"CHE","countryIsoUn":756},"passportType":{"code":"ICN"}}],"ldapSymbol":"23333222","maritalStatus":{"code":"MA"},"isSingleParent":false,"nationalities":[{"id":36211,"country":{"id":8100,"countryName":"Suisse","countryIsoAlpha2":"CH","countryIsoAlpha3":"CHE","countryIsoUn":756}}],"origins":[{"id":29041,"state":{"id":5,"stateName":"Schwyz","stateIso":"SZ"
@vanduc1102
vanduc1102 / account.js
Last active August 18, 2016 10:37
account csv
[{"accountNumber":"10.20","label":"HOTEL DE VILLE ","subAccounts":[{"accountNumber":"10.200.312.00","label":"CHAUFFAGE ","type":"CHAUFFAGE","years":[{"name":2015,"amount":36751.60,"kwh":0.00,"type":"CHAUFFAGE"},{"name":2014,"amount":30858.80,"kwh":0.00,"type":"CHAUFFAGE"},{"name":2013,"amount":39328.95,"kwh":0.00,"type":"CHAUFFAGE"}]},{"accountNumber":"10.200.312.01","label":"ENERGIE ELECTRIQUE ","type":"INDETERMINE","years":[{"name":2015,"amount":38040.15,"kwh":0.00,"type":"INDETERMINE"},{"name":2014,"amount":37755.65,"kwh":0.00,"type":"INDETERMINE"},{"name":2013,"amount":40840.90,"kwh":0.00,"type":"INDETERMINE"}]},{"accountNumber":"10.200.390.00","label":"HOTEL DE VILLE, CONSOMMATION EAU","type":"EAU","years":[{"name":2015,"amount":7720.75,"kwh":0.00,"type":"EAU"},{"name":2014,"amount":5007.45,"kwh":0.00,"type":"EAU"},{"name":2013,"amount":3383.00,"kwh":0.00,"type":"EAU"}]}]},{"accountNumber":"10.40","label":"CADASTRE, AFFAIRES IMMOBILIERES","subAccounts":[{"accountNumber":"10.400.312.00","label":"CHAUFFAG
@vanduc1102
vanduc1102 / dev.bat
Created September 15, 2016 07:54
Webapp development with Maven Front End Plugin
Taskkill /IM node.exe /F
rem call svn update .
call mvn install -P dev
@vanduc1102
vanduc1102 / employee.json
Created October 17, 2016 08:55
employee.json
{
"person": {
"id": 14983,
"guid": "157C2A2A678FFCE3",
"number": "123123",
"validFrom": "2016-10-17T00:00:00.000+07:00",
"civility": {
"code": "Mrs"
},
"title": {
@vanduc1102
vanduc1102 / balance.json
Created October 27, 2016 06:49
balance data
{
"totalCount": 0,
"data": [ {
"future": [ {
"id": "CP",
"year": "2016",
"label": "Congés payés 2016 2017",
"balance": 6.24,
"isCounter": true,
"acquired": 6.24,
@vanduc1102
vanduc1102 / nature.json
Created October 27, 2016 10:01
Nature json
{
"data": [
{
"id": "CP",
"year": "2015",
"label": "Congés payés 2015 2016",
"balance": 25,
"isCounter": true,
"acquired": 25,
"taken": 0,
@vanduc1102
vanduc1102 / calendars.json
Created October 28, 2016 08:41
calendarList
{
"data": [ {
"FRANCE": [
{
"date": "2016-01-01",
"part": "PM",
"balanceLabel": "Jour férié",
"backgroundColor": "#BBBBBB",
"letter": "F",
"fontColor": "",
@vanduc1102
vanduc1102 / WriteHugeString.java
Last active February 15, 2017 08:22
WriteHugeString to File java
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
public class WriteHugeString {
public static void main(String[] args) throws IOException {
String hugeString = "https://www.google.com.vn/search?q=ejb+get+data+from+future+object&oq=ejb+get+data+from+future+object&aqs=chrome..69i57.9047j0j4&sourceid=chrome&ie=UTF-8#q=ejb+get+data+from+future+object+example";
Path temp = Files.createTempFile("aaaaaa", "hugeString");
Files.write(temp, hugeString.getBytes());
System.out.println("Path : "+temp.toFile().getAbsolutePath());