This file contains hidden or 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
| [ | |
| { | |
| "id":1, | |
| "name":"CSE", | |
| "programList":[ | |
| { | |
| "id":1, | |
| "name":"CS", | |
| "description":"aaaaaaaaaaaa" | |
| }, |
This file contains hidden or 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
| $scope.jsonStr = | |
| [ | |
| "{\"id\":\"2\",\"name\":\"shaiful\"}", | |
| "{\"id\":\"1\",\"name\":\"ferdous\"}" | |
| ] | |
| $scope.students = []; | |
| $scope.prr=function(){ | |
| for(var i = 0; i < $scope.jsonStr.length; i++){ |
This file contains hidden or 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
| @CrossOrigin | |
| @RequestMapping(value = "/fileRead", method = RequestMethod.GET) | |
| public @ResponseBody String fileRead() throws Exception { | |
| File file = new ClassPathResource("countries.txt").getFile(); | |
| FileInputStream fis = null; |
This file contains hidden or 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
| { | |
| "name": "ius-ep-ui", | |
| "version": "0.0.1", | |
| "description": "description", | |
| "main": "index.html", | |
| "moduleType": [], | |
| "keywords": [ "" ], | |
| "authors": [ "Shaiful Islam" ], | |
| "license": "MIT", | |
| "homepage": "index.html", |
This file contains hidden or 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
| @Autowired | |
| private MappingJackson2HttpMessageConverter mappingJackson2HttpMessageConverter; | |
| @RequestMapping(value = "/findFacultyWithDepartment", method = RequestMethod.GET) | |
| public ResponseEntity<List<Faculty>> findFacultyWithDepartment() throws Exception { | |
| System.out.println("findFacultyWithDepartment"); | |
| String str =mappingJackson2HttpMessageConverter.getObjectMapper() | |
| .registerModule(new SimpleModule().addSerializer( | |
| Faculty.class, new FacultySerializer()) |
This file contains hidden or 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 com.fasterxml.jackson.core.JsonProcessingException; | |
| import com.fasterxml.jackson.databind.ObjectMapper; | |
| import java.io.File; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| /**Directory Structure to json*/ | |
| public class DirectoryStructureToJson{ |
This file contains hidden or 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
| #!flask/bin/python3 | |
| from flask import json,jsonify | |
| from flask import Flask, url_for, request | |
| import RPi.GPIO as GPIO # always needed with RPi.GPIO | |
| app = Flask(__name__) | |
| GPIO.setmode(GPIO.BCM) # choose BCM or BOARD numbering schemes. I use BCM | |
| GPIO.setup(2, GPIO.OUT) # motor 1 |
This file contains hidden or 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
| <div> | |
| <table class="table table-bordered table-condensed table-striped table-hover"> | |
| <thead> | |
| <tr> | |
| <th>SL</th> <th>Size</th> <th>Diameter</th> | |
| <th class="text-center"> | |
| <input type="checkbox" name="all" [checked]="isAllChecked()" (change)="checkAll($event)"/> | |
| </th> | |
| </tr> |
This file contains hidden or 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
| <form class="example-form"> | |
| <mat-form-field class="example-full-width"> | |
| <input matInput placeholder="State" aria-label="State" [matAutocomplete]="auto" [formControl]="stateCtrl"> | |
| <mat-autocomplete #auto="matAutocomplete"> | |
| <mat-option (onSelectionChange)="onSelectFn($event,state)" *ngFor="let state of filteredStates | async" [value]="state.name"> | |
| <img style="vertical-align:middle;" aria-hidden src="{{state.flag}}" height="25" /> | |
| <span>{{ state.name }}</span> | | |
| <small>Population: {{state.population}}</small> | |
| </mat-option> | |
| </mat-autocomplete> |