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 | |
function connect(){ | |
$host = "localhost"; | |
$user = "root"; | |
$pass = ""; | |
$dbname = "pami1"; | |
$con = mysqli_connect($host,$user,$pass,$dbname); | |
if ($con) { | |
return $con; | |
# code... |
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
{ | |
"color_scheme": "Packages/Theme - Darcula/Intellij Darcula.tmTheme", | |
"font_face": "Source Code Pro Medium", | |
"font_size": 14, | |
"translate_tabs_to_spaces": true, | |
"highlight_line": true, | |
"default_line_ending": "unix", | |
"open_files_in_new_window": false | |
} |
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
sudo wget https://download-cf.jetbrains.com/webide/PhpStorm-2016.1.2.tar.gz && sudo tar xfvz Phpstorm-2016.1.2.tar.gz && sudo mv Phpstorm-2016.1.2.tar.gz /opt/phpstorm && sudo ln -s /opt/phpstorm/bin/phpstorm.sh /usr/local/bin/phpstorm |
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 | |
$host = "localhost"; | |
$user = "root"; | |
$pass = ""; | |
$db = "test"; | |
try{ | |
$conn = new pdo ("mysql:host=$host; dbname=$db",$user,$pass); | |
} |
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
(function() { | |
var i = window.setInterval(function() { | |
var closeButton = document.querySelector('.pl-video-edit-remove'); | |
if (closeButton) { | |
closeButton.click(); | |
} else { | |
window.clearInterval(i); | |
} | |
}, 500); | |
})(); |
NewerOlder