Skip to content

Instantly share code, notes, and snippets.

View DragonOsman's full-sized avatar

Osman Zakir DragonOsman

View GitHub Profile
MongooseServerSelectionError: connection <monitor> to 34.198.25.25:27017 closed
at NativeConnection.Connection.openUri (E:\programming\node-auth\node_modules\mongoose\lib\connection.js:819:32)
at E:\programming\node-auth\node_modules\mongoose\lib\index.js:377:10
at E:\programming\node-auth\node_modules\mongoose\lib\helpers\promiseOrCallback.js:32:5
at new Promise (<anonymous>)
at promiseOrCallback (E:\programming\node-auth\node_modules\mongoose\lib\helpers\promiseOrCallback.js:31:10)
at Mongoose._promiseOrCallback (E:\programming\node-auth\node_modules\mongoose\lib\index.js:1220:10)
at Mongoose.connect (E:\programming\node-auth\node_modules\mongoose\lib\index.js:376:20)
at initiateMongoServer (E:\programming\node-auth\config\db.js:7:20)
at Object.<anonymous> (E:\programming\node-auth\index.js:5:1)
<?php
if (isset($_POST["num1"]) && isset($_POST["num2"]) && isset($_POST["op"]))
{
print_r($_POST);
$first_operand = $_POST["num1"];
$second_operand = $_POST["num2"];
$operator = $_POST["op"];
header("Content-Type: application/x-www-form-urlencoded");
$result = 0;
jquery-3.6.0.min.js:2
Uncaught TypeError: S.easing[this.easing] is not a function
at init.run (jquery-3.6.0.min.js:2:57889)
at u (jquery-3.6.0.min.js:2:59565)
at Function.S.fx.tick (jquery-3.6.0.min.js:2:64608)
at ot (jquery-3.6.0.min.js:2:58967)
run @ jquery-3.6.0.min.js:2
u @ jquery-3.6.0.min.js:2
S.fx.tick @ jquery-3.6.0.min.js:2
module rational;
import <iostream>;
import <numeric>;
int gcd(int a, int b)
{
for (;;)
{
if (a == 0)
Build started...
1>------ Build started: Project: currency_converter, Configuration: Release x64 ------
1>Scanning sources for module dependencies...
1>Compiling...
1>currency_converter.cpp
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h(2721,10): error C2467: illegal declaration of anonymous 'struct'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h(14063,10): error C2467: illegal declaration of anonymous 'struct'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h(20246,6): error C2467: illegal declaration of anonymous 'struct'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h(22487,24): error C2133: '_IMAGE_POLICY_METADATA::Policies': unknown size
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\shared\ws2def.h(627,10): error C2467: illegal declaration of anonymous 'struct'
#include <vector>
#include <cctype>
std::vector<std::string> tokenize(const std::string& str, const char delimiter);
bool is_number(const std::string& str);
class Solution {
public:
bool areNumbersAscending(string s) {
std::vector<std::string> tokens{tokenize(s, ' ')};
#include <cctype>
#include <string>
#include <limits>
class Solution {
public:
int myAtoi(string s) {
char sign{};
constexpr int high{ std::numeric_limits<int>::max() };
constexpr int low{ std::numeric_limits<int>::min() };
#include <vector>
#include <algorithm>
#include <string_view>
class Solution {
public:
string longestPalindrome(string s) {
std::size_t s_length{ s.length() };
string longest_palindrome;
#include <vector>
#include <algorithm>
#include <sstream>
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
// Osman Zakir
// 1 / 19 / 2022
// Beginning C++20: From Novice to Professional by Ivor Horton and Peter Van Weert
// Chapter 11 Exercise 4
// Exercise Specs:
/**
* Start again from the solution of Exercise 11-2 and move swap() and
* max_word_length() into an internals module implementation partition.
*/