Skip to content

Instantly share code, notes, and snippets.

Daniel Pataki danielpataki

Block or report user

Report or block danielpataki

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@danielpataki
danielpataki / list.html
Last active May 4, 2017
Vanilla Javascript
View list.html
<ul id="myList">
<li>List Item One</li>
<li>List Item Two</li>
</ul>
@danielpataki
danielpataki / link.css
Last active May 15, 2017
Microinteractions
View link.css
@danielpataki
danielpataki / Buttons.html
Last active Mar 20, 2017
Customizing Video Headers
View Buttons.html
<button type="button" id="wp-custom-header-video-button" class="wp-custom-header-video-button wp-custom-header-video-play">Pause</button>
<button type="button" id="wp-custom-header-video-button" class="wp-custom-header-video-button wp-custom-header-video-pause">Play</button>
View install-full.sh
wp core download
wp core config --dbname=$1 --dbuser=root --dbpass=root --dbhost=localhost --extra-php <<PHP
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
PHP
wp db create
wp core install --url=http://$1.com --title=$1 --admin_user=admin --admin_password=password --admin_email=admin@$1.com
@danielpataki
danielpataki / add-section.php
Last active Jun 4, 2019
Customizer Tutorial
View add-section.php
$wp_customize->add_section( 'cd_colors' , array(
'title' => 'Colors',
'priority' => 30,
) );
@danielpataki
danielpataki / footer.php
Created Jan 10, 2017
Simple theme for customizer project
View footer.php
@danielpataki
danielpataki / custom-header.css
Last active Jul 13, 2018
Custom post type templates
View custom-header.css
.site-content-contain {
position: static;
}
#review-head {
position: absolute;
top:55px;
left:0px;
padding:22px;
color:#fff;
View return-types.php
function getNumber(): int {
return 6;
}
// Returns an integer so all is well
function getNumber(): int {
return 'six';
}
View all.sh
wp @all plugin update-all
View add-3.js
var cleanCSS = require('gulp-clean-css');
var autoprefixer = require('gulp-autoprefixer');
var sass = require('gulp-sass');
You can’t perform that action at this time.