Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
--[[---------------------------------------- | |
Project: LibClockTST | |
Author: Arne Rantzen (Tyx) | |
Created: 2020-02-16 | |
License: GPL-3.0 | |
----------------------------------------]]-- | |
--- Get the day of the week by the guassian algorithm | |
--@param table should be containing three ints: year, month, day | |
--@return weekday number after ISO norm from 1 = Monday to 7 = Sunday |
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
#!/bin/bash | |
for file in ./**/*$2.pdf; do | |
qpdf --decrypt --password=$1 "$file" "${file/$3.pdf/.pdf}"; | |
done |
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
<?php | |
if ( ! defined( 'ABSPATH' ) ) { | |
die; | |
} | |
function pll_sync_store_rating($post_id, $translation_id, $new_avg_rating, $new_vote_count, $submitted_rating) { | |
// Update rating sum | |
$new_ratings_sum = $submitted_rating; | |
if ( $new_vote_count > 1) { | |
$new_ratings_sum = get_post_meta($post_id, 'rmp_rating_val_sum', true); |
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
@ECHO OFF | |
CLS | |
ECHO ###################################### | |
ECHO # Fast delete folder and sub-folders # | |
ECHO ###################################### | |
ECHO. | |
ECHO. | |
set /P c=Delete %CD% [Y/N]? | |
if /I "%c%" EQU "Y" goto :DELETE | |
if /I "%c%" EQU "J" goto :DELETE |