Skip to content

Instantly share code, notes, and snippets.

View danielpataki's full-sized avatar

Daniel Pataki danielpataki

View GitHub Profile
@danielpataki
danielpataki / list.html
Last active May 4, 2017 16:54
Vanilla Javascript
<ul id="myList">
<li>List Item One</li>
<li>List Item Two</li>
</ul>
@danielpataki
danielpataki / link.css
Last active May 15, 2017 09:55
Microinteractions
@danielpataki
danielpataki / Buttons.html
Last active March 20, 2017 17:29
Customizing Video Headers
<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>
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 February 5, 2021 09:32
Customizer Tutorial
$wp_customize->add_section( 'cd_colors' , array(
'title' => 'Colors',
'priority' => 30,
) );
@danielpataki
danielpataki / footer.php
Created January 10, 2017 20:07
Simple theme for customizer project
@danielpataki
danielpataki / custom-header.css
Last active July 13, 2018 21:55
Custom post type templates
.site-content-contain {
position: static;
}
#review-head {
position: absolute;
top:55px;
left:0px;
padding:22px;
color:#fff;
function getNumber(): int {
return 6;
}
// Returns an integer so all is well
function getNumber(): int {
return 'six';
}
@danielpataki
danielpataki / all.sh
Last active October 8, 2018 19:20
WP-CLI
wp @all plugin update-all
@danielpataki
danielpataki / add-3.js
Last active October 8, 2018 19:16
Gulp
var cleanCSS = require('gulp-clean-css');
var autoprefixer = require('gulp-autoprefixer');
var sass = require('gulp-sass');