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
/* | |
@author Hasan Masum | |
@date 26 aug, 2021 | |
tutorial followed: https://cs.stackexchange.com/questions/11620/fractional-knapsack-in-linear-time/11622#11622 | |
*/ | |
#include<bits/stdc++.h> | |
using namespace std; | |
// fractional knapsack | |
struct item{ |
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
// app level | |
plugins { | |
id 'com.android.application' | |
//id 'com.google.gms.google-services' | |
//to read key from local.properties | |
id 'com.google.secrets_gradle_plugin' version '0.5' | |
} | |
// https://guides.codepath.com/android/Storing-Secret-Keys-in-Android#hidden-in-buildconfigs |
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
public class Api { | |
public static Api instance = new Api(); | |
public Endpoints endpoints; | |
private Api(){ | |
HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor(); | |
interceptor.level(HttpLoggingInterceptor.Level.BODY); | |
OkHttpClient client = new OkHttpClient.Builder().addInterceptor(interceptor) |
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 'dart:convert'; | |
import 'dart:developer'; | |
import 'package:html/dom.dart' as dom; | |
import 'package:html/parser.dart'; | |
import 'package:http/http.dart' as http; | |
class GoogleSheetParser { | |
/// Parses the google sheet and returns a list of maps | |
/// with the keys being the column names and the values being the values | |
/// in the column |
Login in psql
psql -U postgres -h localhost
See list of database
\l
See list of users with list of roles
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
<html> | |
<head> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> | |
</head> | |
<body> | |
<div class="mb-3"> | |
<label for="inputCategoryLogo" class="form-label">Logo Image</label> | |
<input type="file" | |
accept="image/*" | |
class="form-control form-control-sm" |
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 <Wire.h> //Library for I2C communication | |
#include "LiquidCrystal_I2C.h" //I2C LCD library | |
#include<Servo.h> | |
#include "DHT.h" | |
#include <SoftwareSerial.h> | |
// HC-SR04 : sonar sensor | |
#define TRIGPIN 5 | |
#define ECHOPIN 6 |
OlderNewer