This file contains 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" | |
#define EPSILON 0.0000001 // least minimum value for comparison | |
using namespace std; | |
class Solution { | |
public: | |
int mySqrt(double x) { | |
if (x <= 0) | |
return 0; |
This file contains 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
mysql -u root -p laravel_and_vite < /home/darkside/Downloads/world.sql |
This file contains 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
(http|ftp|https|ws|wss):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-]) |
This file contains 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
let checked = document.querySelectorAll('form#group-store select[name="employees[]"] :checked'); | |
checked = [...checked].map(option => option.value) |
This file contains 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
<?php | |
class WebSocket | |
{ | |
private array $clients = []; | |
private $server; | |
private int $sleep = 0; |
This file contains 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
[Desktop Entry] | |
Version=2021.2.2 | |
Name=PHP Storm | |
Comment=PHP Programing Web IDE Text Editor | |
Keywords=Programming;IDE;Web;Text;Editor | |
Exec=/opt/php-storm-212.5284.49/bin/phpstorm.sh | |
Terminal=false | |
Type=Application | |
Icon=/opt/php-storm-212.5284.49/bin/phpstorm.svg | |
Categories=JetBrain;Programming;WebIDE; |
This file contains 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
<?php | |
namespace App\WebSocket; | |
class Notification extends WebSocket | |
{ | |
} |
This file contains 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 from = document.querySelector('form#group-send-message'); | |
from.onsubmit = (e) => { | |
e.preventDefault(); | |
const selectedGroup = document.querySelector('div[data-active]'); | |
if (! selectedGroup) { | |
swal('Please! first Select a group chat.', 'error'); | |
return; | |
} |
This file contains 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
<!DOCTYPE html> | |
<html lang=""> | |
<head> | |
<meta charset='UTF-8'/> | |
<title>Chat Room</title> | |
</head> | |
<body> | |
<input type="text" name="name"> | |
<input type="text" name="message"/> |
This file contains 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
for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do | |
echo "Resetting trial period for $product" | |
echo "removing evaluation key..." | |
rm -rf ~/.config/$product*/eval | |
# Above path not working on latest version. Fixed below | |
rm -rf ~/.config/JetBrains/$product*/eval | |
echo "removing all evlsprt properties in options.xml..." |