This file contains hidden or 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
main.scss | |
@import "_a"; //_a.scss | |
@import "b"; //b.scss | |
Can "b" use mixins defined in _a.scss ? |
This file contains hidden or 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
- use https://github.com/K-S-V/Scripts/blob/master/AdobeHDS.php | |
- extract .f4m URL | |
- php AdobeHDS.php --manifest "your_manifest_url" --delete |
This file contains hidden or 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
Last versions of Ruby (>2) use i18n gem in v0.7 version | |
But MailCatcher seems to be incompatible with this version |
This file contains hidden or 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
# Retrieve MP3s list | |
find . -type f -iname "*.mp3" -print0 | while IFS= read -r -d $'\0' line; do | |
# Use sox to extract a MP3 which ends at 0 seconds of the current file | |
sox "$line" temp.mp3 reverse trim 0 reverse | |
# We retrieve original file and copy durations, as integers | |
ORIGINALDURATION=`sox --i -D "$line"` | |
ORIGINALDURATION=`printf %.0f $ORIGINALDURATION` | |
COPYDURATION=`sox --i -D temp.mp3` | |
COPYDURATION=`printf %.0f $COPYDURATION` |
This file contains hidden or 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 getACFLabel($slug) | |
{ | |
$translated_post_id = icl_object_id($post->ID,'post',false,ICL_LANGUAGE_CODE); | |
$field = get_field_object($slug, $translated_post_id); | |
$value = get_field($slug, $translated_post_id); | |
return $field['choices'][$value]; | |
} |
This file contains hidden or 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
Array | |
( | |
[action] => check_theme_updates | |
[installed_themes] => Array | |
( | |
[divi] => 3.0.27 | |
[museomix] => 1.0.0 | |
) | |
[class_version] => 1.0 |
This file contains hidden or 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
INFO global: Vagrant version: 2.2.9 | |
INFO global: Ruby version: 2.6.6 | |
INFO global: RubyGems version: 3.0.3 | |
INFO global: VAGRANT_EXECUTABLE="C:\\outils\\Vagrant\\embedded\\gems\\2.2.9\\gems\\vagrant-2.2.9\\bin\\vagrant" | |
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="C:\\outils\\Vagrant\\embedded" | |
INFO global: VAGRANT_INSTALLER_ENV="1" | |
INFO global: VAGRANT_INSTALLER_VERSION="2" | |
INFO global: VAGRANT_LOG="debug" | |
WARN global: resolv replacement has not been enabled! | |
DEBUG global: Loading core plugin: C:/outils/Vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/box/plugin.rb |
This file contains hidden or 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
_wp_complete() { | |
local cur=${COMP_WORDS[COMP_CWORD]} | |
local command=${COMP_WORDS[1]} | |
local subcommand=${COMP_WORDS[2]} | |
COMPREPLY="" | |
if [[ "$command" = "plugin" ]] | |
then | |
case "$subcommand" in | |
activate|deactivate|update|delete|get|is-active|path|status|uninstall|verify-checksums) |
OlderNewer