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
| a |
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
| #user nobody; | |
| worker_processes 1; | |
| #error_log logs/error.log; | |
| #error_log logs/error.log notice; | |
| #error_log logs/error.log info; | |
| #pid logs/nginx.pid; | |
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
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name ms.local; | |
| #charset koi8-r; | |
| root /Users/hasnayeen/www/ms-api/public; | |
| index index.php index.html index.htm; |
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
| alias art='php artisan' | |
| alias erase='git checkout -f' | |
| alias clean='git clean -f' | |
| alias szsh='source ~/.zshrc' | |
| alias diff='git diff' | |
| alias clean='git clean -f' | |
| alias linuxv='lsb_release -a' | |
| alias version='cat /etc/*-release' | |
| alias portainer='docker start portainer' | |
| alias cm='git add --all && git commit' |
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
| GNU nano 2.2.6 File: /home/hasnayeen/.homestead/Homestead.yaml | |
| --- | |
| ip: "192.168.10.10" | |
| memory: 2048 | |
| cpus: 1 | |
| provider: virtualbox | |
| authorize: ~/.ssh/id_rsa.pub |
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
| $var1 = array("Black-Jacket" => array("value" => "Black-Jacket", "label" => "Black-Jacket"), "lays" => array("value" => "lays", "label" => "lays"), "t-shirt" => array("value" => "t-shirt", "label" => "t-shirt")); | |
| $var2 = array("0" => "Black-Jacket", "1" => "t-shirt"); | |
| if(in_array_r($var2, $var1)) { | |
| echo "Found!"; | |
| } else { | |
| echo "Not Found :("; | |
| } |
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
| $(document).ready(function(){ | |
| setInterval(function(){ | |
| second = Math.floor(((((jQuery.now()/1000)%86400) + 86400) % 86400) % 60); | |
| var time = new Date(); | |
| $("#time").text(time.getHours()%12 + ":" + time.getMinutes() + ":" + second); | |
| time.getHours() > 12 ? $("#time").append(" PM") : $("#time").append(" AM"); | |
| }); | |
| }); |
NewerOlder