Skip to content

Instantly share code, notes, and snippets.

View annibuliful's full-sized avatar
😥
stressful

jarupong pajakgo annibuliful

😥
stressful
View GitHub Profile
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){
#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");
#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++) {
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
char alphabet[] = {
'A',
'B',
'C',
'D'
};
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
char alphabet[] = {
'A',
'B',
'C',
'D'
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":
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) => {
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};
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 };
$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 ""
}
}
}