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
li { | |
margin: 0; | |
padding: 10px 0 10px 20px; | |
list-style: none; | |
background-image: url(); | |
background-repeat: no-repeat; | |
background-position: left center; | |
background-size: 20px; | |
} |
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 | |
require_once 'login.php'; | |
$conn = new mysqli($hn, $un, $pw, $db); | |
if ($conn->connect_error) die($conn->connect_error); | |
$query = "DESCRIBE <Имя таблиц>"; | |
$result = $conn->query($query); | |
if (!$result) die ("Database access failed: " . $conn->error); | |
$rows = $result->num_rows; |
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
Atishay-Jain.All-Autocomplete | |
bmewburn.vscode-intelephense-client | |
CoenraadS.bracket-pair-colorizer | |
dbaeumer.vscode-eslint | |
eg2.tslint | |
eg2.vscode-npm-script | |
esbenp.prettier-vscode | |
felixfbecker.php-debug | |
felixfbecker.php-intellisense | |
felixfbecker.php-pack |
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
…or create a new repository on the command line | |
echo "# test" >> README.md | |
git init | |
git add README.md | |
git commit -m "first commit" | |
git remote add origin https://github.com/domosedov-dev/test.git | |
git push -u origin master | |
…or push an existing repository from the command line | |
git remote add origin https://github.com/domosedov-dev/test.git | |
git push -u origin master |
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 | |
$loop = new WP_Query( array( | |
'post_type' => 'Property', | |
'posts_per_page' => -1 | |
) | |
); | |
?> | |
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?> |
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
$search_value = 'xyz'; // whatever | |
$field_value = sprintf( '^%1$s$|s:%2$u:"%1$s";', $search_value, strlen( $search_value ) ); | |
$args = array( | |
'post_type' => 'post', | |
'meta_query' => array( | |
array( | |
'key' => 'user_field', | |
'value' => $field_value, | |
'compare' => 'REGEXP' |
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
$args = array( | |
'author' => get_current_user_id(), | |
'post_type' => 'YOUR_CUSTOMPOST_TYPE', | |
); | |
$author_posts = new WP_Query( $args ); | |
if ($author_posts->have_posts()): while ($author_posts->have_posts()) : $author_posts->the_post(); | |
//DISPLAY CONTENTS HERE | |
endwhile; endif; |
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
parcel watch /path/to/filename.js -d /path/to/dist --public-url . (for sourcemap) |
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 handleSubmit(event) { | |
event.preventDefault(); | |
const formData = new FormData(event.target); | |
const data = [...formData.entries()]; | |
const asString = data | |
.map(x => `${encodeURIComponent(x[0])}=${encodeURIComponent(x[1])}`) | |
.join('&'); | |
console.log(asString); | |
} |
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
<IfModule mod_rewrite.c> | |
RewriteRule ^(api)($|/) - [L] | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.html$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-l | |
RewriteRule . /index.html [L] | |
</IfModule> |
OlderNewer