Shuveccha nin amar pokkho theke
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
public function store(Request $request) | |
{ | |
$this->validate($request, [ | |
'title' => 'required', | |
'body' => 'required' | |
]); | |
// Create Post | |
$post = new Post; | |
$post->title = $request->input('title'); |
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
render() { | |
return ( | |
<View > | |
<View > | |
<FlatList | |
data = {this.state.busLists} | |
renderItem = {({item}) => ( | |
<View> | |
<Text>{item}</Text> | |
</View> |
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
const express = require('express'); | |
const router = express.Router(); | |
const fetch = require('node-fetch'); | |
router.get('/:platform/:platformUserIdentifier', async (req, res) => { | |
try { | |
const headers = { | |
'TRN-Api-Key': process.env.TRACKER_API_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
import { BrowserModule } from '@angular/platform-browser'; | |
import { NgModule } from '@angular/core'; | |
import { AppComponent } from './app.component'; | |
import { UserComponet } from './components/user/user.component'; | |
@NgModule({ | |
declarations: [ | |
AppComponent, | |
UserComponet |
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
import React, { Component } from 'react' | |
import { Consumer } from '../../context'; // importing the consumer from the context.js | |
class Tracks extends Component { | |
render() { | |
return ( | |
<Consumer> | |
{value => { | |
// the value will be passed from the context.js |
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
{ | |
"query": { | |
"bool": { | |
"must": [ | |
{ | |
"match": { | |
"business_name": "jo hukum" | |
} | |
} | |
], |
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
{ | |
"query": { | |
"bool": { | |
"must": [ | |
{ | |
"term": { | |
"business_name": "softopark" | |
} | |
} | |
], |
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
{ | |
"query": { | |
"bool": { | |
"must": [ | |
{ | |
"regexp": { | |
"business_name.keyword": "jo[a-zA-Z ]*hukum" | |
} | |
} | |
], |
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
{ | |
"query": { | |
"bool": { | |
"must": [ | |
{ | |
"prefix": {"business_name_filtered": "johukum"} | |
} | |
] | |
} | |
} , |