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
// Model定義 のカラムの "JS形式の追加カラム定義" へ追記 | |
{ | |
enableIf: (row) => { | |
// 経費申請Modelで "金額が5000円以上のときにのみ" imageカラムを表示させる | |
// console.log(row) | |
// debugger | |
return row.amount >= 5000 | |
} | |
} |
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
/* Display */ | |
.d-inline-block { display:inline-block !important; } | |
.d-block { display:block !important; } | |
.d-inline { display:inline !important; } | |
.d-block { display:block !important; } | |
/* Float */ | |
.float-left { float:left; } | |
.float-right { float:right; } | |
/* Full-width button */ | |
.button-block .elementor-button { display:block !important; } |
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
FILE_ID="xxxxxxxxxxxxxxxxxxxx" | |
curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=${FILE_ID}" > /dev/null | |
CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)" | |
curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${CODE}&id=${FILE_ID}" -o archive.zip |
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
// Adjust the seach query of Ajax Search Lite with Bogo | |
add_action('asl_query_add_args', 'ajax_search_light_and_bogo_integration', 100, 1); | |
function ajax_search_light_and_bogo_integration( $args ) { | |
global $wpdb; | |
// Bogo saves the page language into the cookie, so we can just pick it. | |
$loc = $_COOKIE['lang']; | |
if(!$loc) { return $args; } | |
$args['where'] .= <<<SQL | |
AND ID IN (( |
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
#!/usr/bin/env bash | |
usage() { | |
echo "Script for rewrite commit time" | |
echo 'Usage: ./gitignore_change_commit_time.sh --num 1 --time "$(date -v-46H)"' | |
echo " --num [NUM] ex: 3" | |
echo " --time [DATETIME] ex: 'Fri Nov 24 16:00:00 2017'" | |
exit 1 | |
} | |
for OPT in "$@" |
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
#======================================= | |
# mautic on kusanagi | |
#--------------------------------------- | |
server { | |
listen 80; | |
server_name mautic.xxx.site ; | |
access_log /home/kusanagi/provision_name/log/nginx/access.log main; | |
error_log /home/kusanagi/provision_name/log/nginx/error.log warn; |
NewerOlder