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
<img src="{{ $vendor->image }}" onerror="ImgError(this)"> | |
<script type="text/javascript"> | |
function ImgError(source){ | |
source.src = 'http://bbb.test/assets/images/placeholder.png'; | |
source.onerror = ""; | |
return true; | |
} | |
</script> |
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
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..." |
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
[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 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
mysql -u root -p laravel_and_vite < /home/darkside/Downloads/world.sql |
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
docker run --rm -v $(pwd):/app -w /app php php artisan serve | |
docker run --rm -v $(pwd):/app composer install | |
https://docs.docker.com/engine/reference/commandline/container_ls/ | |
docker container ls --all | |
docker rm -vf $(docker ps -aq) | |
docker kill $(docker ps -q) | |
docker kill <container_id> | |
docker rm <container_id_or_name> |
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 <vector> | |
#include <algorithm> | |
vector<int> findTopThree(vector<int>& score) { | |
vector<int> topThree; | |
int f = INT_MIN, s = INT_MIN, t = INT_MIN; | |
for (int i = 0; i < score.size(); i++) { | |
if (score[i] > f) { |
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
https://picsum.photos/400/300 | |
https://dummyimage.com/250/ffffff/000000 | |
https://dummyimage.com/250x300 | |
https://dummyimage.com/300.png/09f/fff | |
https://dummyimage.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
/** | |
* Circular Double Linked List | |
* | |
*/ | |
#include "iostream" | |
using namespace std; | |
struct Node { |
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 "memory" | |
struct StackHolder { | |
std::string data; | |
}; | |
class Stack { | |
private: | |
int idx = -1; |
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
/** | |
* Dequeue: | |
* Dequeue is also known as Double Ended Queue. | |
* As the name suggests double ended, | |
* it means that an element can be inserted or removed from both ends of the queue, unlike the other queues | |
* in which it can be done only from one end. Because of this property, it may not obey the First In First Out property. | |
* | |
* implement using doubly linked list | |
* | |
* Operation Description Time Complexity |
OlderNewer