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 <iostream> | |
| using namespace std; | |
| class Node { | |
| public: | |
| int data; | |
| Node* next; | |
| }; |
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 <iostream> | |
| using namespace std; | |
| class SortedList { | |
| private: | |
| int items[100]; // Fixed-size array to store sorted items | |
| int size; | |
| void recursiveInsert(int item, int low, int high) { |
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 <iostream> | |
| #include <string> | |
| using namespace std; | |
| class ParenthesesChecker { | |
| public: | |
| ParenthesesChecker(const string& parentheses) : inputParentheses(parentheses) {} | |
| bool isBalanced() { |
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
| /* | |
| * There are some key problems with the React code below. | |
| * Assume fetchUserProfile exists elsewhere. | |
| */ | |
| import React, { Suspense, useState, useEffect } from "react"; | |
| const SuspensefulUserProfile = ({ userId }) => { | |
| const [data, setData] = useState({}); | |
| useEffect(async () => { | |
| fetchUserProfile(userId).then((profile) => setData(profile)); |
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
| #!/usr/bin/env bash | |
| function program_doesnt_exist { | |
| local return_=1 | |
| type $1 >/dev/null 2>&1 || { local return_=0; } | |
| # return $return_ instead of printing | |
| return $return_ | |
| } | |
| # install nodejs | |
| if program_doesnt_exist node; then |
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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDO5M5V689SVK6WPYbSd0xeEz3JIFV73myzl7y5awUPrwYrdaZUnjPdwZVkvECWSF+z2rnRbOfigCOr9Ec6yKqHSeB3M97TA061RcW9QVaOI5K5lkyTFmNLLdldcsAOj/EVOM3OXss6SBbJNrEZgjclAADLyLED5koAKRaJTYZJyBLTu6SoD5FtwiANIDs+qAmyI90ivFcIbHPSuo30Vd0aX4Qwbi/OpaAN4xfkeMMh7Ag0hB4Tu1zksyAVmyp8WGqD4t5Bzc3BT71zMT642Gj6ysV2/VbAvl7MeU3TyEGrxFTU4XCX+aIN6+f4F8C71WAlUz7zKcD46ZBvDbJmJpbD3DXSpgpTMEsfkmOYkjv6r7Xpps5jWxzJSNuxTXyjOTec3vidmKIaGDfxm47fIMI5T55zCVbJEoChyNHHax0ylCtmd9ehx+K4dyktQbSp3tzbxGeaf88evm8L10Eut2QKTNb466SSexKA8RbrZLCFFq/f7Wq1IzlGP/u48iRloAr/4i9Dq9eBN5RfGTiCMgc6ExUr/cHEupaftC8sCfrUC0cLDmjSuIXCx7DXQ9gXUdDgf81vV1f3U4FUblcSLDgq3GsxFpx0F0yGHoLKs2dDHGkS0bzqv3Q82SXN6VaIQaeBnerl566naLoJ1qhrG6lpJbRXAG8eHHU69uOoZTRdrw== arif25169@gmail.com |
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
| Open the find/replace dialog. | |
| At the bottom will be some Search mode options. Select "Extended (\n \r \t \0 \x...)" | |
| In either the Find what or the Replace with field entries, you can use the following escapes: | |
| \n new line (LF) | |
| \r carriage return (CR) | |
| \t tab character | |
| \0 null character | |
| \xddd special character with code ddd |
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
| <button onclick="generate()">Generate PDF</button> | |
| <table id="table" style="display: none;"> | |
| <thead> | |
| <tr> | |
| <th>ID</th> | |
| <th>First name</th> | |
| <th>Last name</th> | |
| <th>Email</th> | |
| <th>Country</th> |
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
| sudo mysql -u root | |
| ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'test'; |
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 React from 'react'; | |
| import axios from 'axios'; | |
| import ss from './ss.jpg'; | |
| import { width } from 'window-size'; | |
| class FeaturePage extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = {temperature: '', weather: ''}; | |
| } |
NewerOlder