Skip to content

Instantly share code, notes, and snippets.

View tarun-nagpal-github's full-sized avatar
💭
Code is like humor. When you have to explain it, it’s bad.

Tarun Nagpal tarun-nagpal-github

💭
Code is like humor. When you have to explain it, it’s bad.
View GitHub Profile
@tarun-nagpal-github
tarun-nagpal-github / data-structure-and-logical.js
Last active March 19, 2020 02:08
Logical and Data Structure Questions
// Increment Questions
x = 5;
y = ++x;
z = y++;
console.log(x);
console.log(y);
console.log(z);
// String and number compare
{
"id": "8b4e7171-afc5-4ed1-8296-5c3836f71ea6",
"participantSessionId": "1a6148aa-2090-4e65-9ffe-aa2c58a4331f",
"graderId": "a32b2725-fb7e-499d-9e71-b585c96354b9",
"socialArchetype": "PERFORMER",
"historicalArchetype": "STRATEGIST",
"preferenceArchetype": "DIPLOMAT_PLUS",
@tarun-nagpal-github
tarun-nagpal-github / get-choices-based-on-question.json
Created February 13, 2020 05:03
get-choices-based-on-question.json
{
"total": 4,
"limit": 100,
"skip": 0,
"data": [
{
"id": "284c6218-e6c6-41f4-9b48-ac9cef99c745",
"questionId": "549d0442-41c9-4eec-8076-a3efa16d8304",
"temperament": "CHOLERIC",
"title": "Bold",
@tarun-nagpal-github
tarun-nagpal-github / participants-response.js
Created February 5, 2020 06:00
Participants Response
{
"total": 7,
"limit": 100,
"skip": 0,
"data": [
{
"id": "95f84932-9007-49df-bee2-bdb76e062a41",
"applicationId": "03261323-0067-479b-ac61-5e55df577515",
"platformIdentifier": "aaaa",
"firstName": "Prashant",
@tarun-nagpal-github
tarun-nagpal-github / self-assessment-archetype-rules.json
Created February 5, 2020 05:01
Get Call - self-assessment-archetype-rules
{
"total": 17,
"limit": 100,
"skip": 0,
"data": [
{
"id": "c4a2ebb1-cafe-40a2-96e7-9b5bba8d81f9",
"graderId": "771d1dd8-468c-4f2d-a429-e452d33439cf",
"archetype": "MOTIVATOR",
"firstTemperament": "CHOLERIC",
@tarun-nagpal-github
tarun-nagpal-github / improper-message.js
Created January 23, 2020 06:37
improper-message.js
{
"name":"BadRequest",
"message":"insert into \"self_assessment_archetype_rules\" (\"archetype\", \"created_at\", \"first_temperament\", \"grader_id\", \"second_temperament\", \"updated_at\") values ($1, $2, $3, $4, $5, $6) returning \"id\" - insert or update on table \"self_assessment_archetype_rules\" violates foreign key constraint \"self_assessment_archetype_rules_grader_id_foreign\"",
"code":400,
"className":"bad-request",
"errors":{
}
}
{
"broadcast": {
"broadcastText": "广播",
"modaltitle": "新的广播",
"autocompletetext": "添加Office位置o",
"writehere": "写在这里",
"addTitle" : "添加标题",
"saveSuccess": "广播数据已成功保存",
"saveFailure": "保存广播数据时出错,请重试",
"submit": "提交"
import React, { useEffect, useState } from "react";
import { observer } from "mobx-react-lite";
import {
Alert,
Card,
CardText,
CardBody,
CardTitle,
CardSubtitle,
Row,
{
"data": [
{
"moduleId": 1,
"moduleName": "Dashboard",
"pageId": 2,
"pageName": "Dashboard",
"pageUrl": "dashboard",
"actionId": 1,
"actionName": "View Dashboard",
@tarun-nagpal-github
tarun-nagpal-github / get-actions-by-page-id.json
Created November 18, 2019 11:11
get-actions-by-page-id.json
{
"data": {
"roles": [
{
"userModulePageActions": [
{
"pageId": 3,
"page": "Create User",
"actionId": 1,
"action": "create-user",