git remote set-url origin [email protected]:{USERNAME}/{PROJECTNAME}.git
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
.full-width { | |
width: 100vw; | |
position: relative; | |
left: 50%; | |
right: 50%; | |
margin-left: -50vw; | |
margin-right: -50vw; | |
} | |
//mixin to strech container over parent |
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
for /R %f in ("*.wav") do ("C:\Program Files (x86)\sox-14-4-2\sox.exe" −−multi−threaded "%~f" "%~pf%~nf_converted.wav" trim 0.1) |
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
for /R %f in ("*.wav") do (ffmpeg.exe -i "%~f" -ss 0.1 -c copy "%~pf%~nf_converted.wav") |
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
for /R %f in ("*.wav") do (ffmpeg.exe -i "%~f" -acodec mp3 "%~pf%~nf.mp3") |
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
import Swiper from "swiper/bundle"; | |
import "swiper/swiper-bundle.css"; | |
window.addEventListener( | |
"load", | |
() => { | |
// swiper | |
var slider = document.querySelectorAll(".swiper-container"); | |
for (let index = 0; index < slider.length; index++) { | |
slider[index].classList.add("swiper-container-" + index); |
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
// remove meta box on custom template CUSTOM | |
add_action('init', 'remove_editor_CUSTOM'); | |
function remove_editor_CUSTOM() | |
{ | |
if (!is_admin()) { | |
return; | |
} | |
$current_post_id = filter_input(INPUT_GET, 'post', FILTER_SANITIZE_NUMBER_INT); | |
$update_post_id = filter_input(INPUT_POST, 'post_ID', FILTER_SANITIZE_NUMBER_INT); |
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
*-----------------------------------------------------------------------------------*/ | |
/* disable Gutenberg and clean up default meta boxes | |
/*-----------------------------------------------------------------------------------*/ | |
add_filter('use_block_editor_for_post', '__return_false'); | |
add_action('admin_menu', 'mypaletti_remove_meta_box'); | |
function mypaletti_remove_meta_box() | |
{ |
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 show_template() { | |
if( is_super_admin() ){ | |
global $template; | |
print_r($template); | |
} | |
} | |
add_action('wp_footer', 'show_template'); |
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
1. Commit all changes | |
2. git rm -r --cached . | |
3. git add . | |
4. git commit -m ".gitignore fix" |
NewerOlder