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 java.io.BufferedReader; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.io.IOException; | |
public class main { | |
public String[] unsortString; | |
public String[] sortedString; | |
public static void main(String[] args){ |
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
#include <stdio.h> | |
#include <string.h> | |
int main(){ | |
int i; | |
const char allData[3][100] = {"TutorialsPoint" , "Tuopoint" , "aws"}; | |
char pattern[10]; | |
char *ret; | |
scanf("%s" , pattern); | |
printf("[Result]\n\n"); |
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
#include <stdio.h> | |
#include <string.h> | |
int * findIndexOfString(char stringofData[], char stringToFind[]) { | |
static int indexOfString[2]; | |
int i, j; | |
int loopCounter = strlen(stringofData) - strlen(stringToFind); | |
for (i = 0; i < strlen(stringofData); i++) { | |
for (j = 0; j < strlen(stringToFind); j++) { |
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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
char alphabet[] = { | |
'A', | |
'B', | |
'C', | |
'D' | |
}; |
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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
char alphabet[] = { | |
'A', | |
'B', | |
'C', | |
'D' |
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
const MongoClient = require('mongodb').MongoClient; | |
const url = "mongodb://localhost:27017/"; | |
MongoClient.connect(url, {useNewUrlParser: true}, function (err, db) { | |
if (err) throw err; | |
const dbo = db.db("mydb"); | |
//Create a collection name "customers": |
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
pipe = (...fns) => x => fns.reduce((v, f) => f(v), x) | |
const array = [1, 2, 3, 4, 5, 6] | |
notEqualFive = (array) => { | |
console.log("first function running") | |
return array.filter((value) => { | |
console.log("not Equal five", value) | |
return value !== 5 | |
}) | |
} | |
filterSix = (array) => { |
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
package restaurant; | |
import java.util.Scanner; | |
public class Restaurant { | |
public static void main(String[] args) { | |
// a array that use to store list of price of Rice | |
// String[] listOfRice = | |
int[] listOfPriceOfRice = {10 , 15 , 15 , 20}; | |
int[] listOfPriceOfSideDish = {10 , 15 , 5 , 10 , 20}; |
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
package test; | |
import java.util.Scanner; | |
class menu2 { | |
public static void main(String[] args) { | |
int x = 0, i = 0, v = 0; | |
int[] price = { 10, 15, 15, 20 }; | |
int[] price2 = { 10, 15, 5, 5, 10, 20, 5 }; |
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
$push:{ | |
activityLog:{ | |
status:2, // status number when the driver change | |
remark:this.quote.REMARK, // if the driver has remark, fill it. If the driver hasn't remark, file "" | |
byUser:{ | |
id:this.forwarderId, // the driver Id | |
name:this.forwarderName, // if it nothing, fille "driver" or "" | |
} | |
} | |
} |